[zfs-discuss] Reset ARC stats

Patrick Zwahlen patrick.zwahlen at gmail.com
Mon Aug 22 15:54:47 EDT 2016


Thx,

arcstat.py gives "realtime" results but you still can't get stats starting
from a point in time where you made changes (and would like to see their
impact on arc ratios).

Cheers, Patrick



On Mon, Aug 22, 2016 at 8:55 PM, Nmz via zfs-discuss <
zfs-discuss at list.zfsonlinux.org> wrote:

> Use another tool like arcstats.py from https://github.com/
> zfsonlinux/zfs/tree/master/cmd/arcstat
>
> example
>
> # /usr/src/zfs/cmd/arcstat/arcstat.py -f time,c,arcsz,read,hits,hit%,miss,miss%
> 1
>     time     c  arcsz  read  hits  hit%  miss  miss%
> 18:54:47   10G    10G     0     0     0     0      0
> 18:54:48   10G  10.0G   581   577    99     4      0
> 18:54:49   10G  10.0G    12    11    91     1      8
> 18:54:50   10G  10.0G   105    85    80    20     19
> 18:54:51   10G    10G    38    37    97     1      2
> 18:54:52   10G  10.0G    14    14   100     0      0
> 18:54:53   10G  10.0G    22    22   100     0      0
>
>
> ----- Original Message -----
> From: Patrick Zwahlen via zfs-discuss <
> zfs-discuss at list.zfsonlinux.org>
> To: zfs-discuss at list.zfsonlinux.org
>
> Date: Monday, August 22, 2016, 8:43:07 PM
> Subject: [zfs-discuss] Reset ARC stats
>
>
> Hi,
>
> I'm sorry for the potentially dumb question but is there a way to reset
> the arcstats counters without unloading the module ?
>
> I'm using arcstat.sh and I would like to see the current hit/miss ratio
> instead of a long-term average.
>
> Regards, Patrick
>
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss at list.zfsonlinux.org
> http://list.zfsonlinux.org/cgi-bin/mailman/listinfo/zfs-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.zfsonlinux.org/pipermail/zfs-discuss/attachments/20160822/907b7366/attachment.html>


More information about the zfs-discuss mailing list