[zfs-discuss] zfs-discuss] Reset ARC stats

Patrick Zwahlen patrick.zwahlen at gmail.com
Tue Aug 23 17:03:16 EDT 2016


Thanks you Richard nice read!

On Tue, Aug 23, 2016 at 5:10 AM, Dan Swartzendruber via zfs-discuss <
zfs-discuss at list.zfsonlinux.org> wrote:

> Sounds worth a look. Thanks!
>
> Richard Elling via zfs-discuss <zfs-discuss at list.zfsonlinux.org> wrote:
>
> On Aug 22, 2016, at 1:13 PM, Nmz via zfs-discuss <
> zfs-discuss at list.zfsonlinux.org> wrote:
>
> So you need like arc_summary.py with reset point. Not sure does it exist
> right now but the idea is good.
>
>
> Better yet, get with modern monitoring :-) Currently I use telegraf (the
> zfs plugin captures the arcstats by default),
> influxdb, and grafana to get cache hit/miss information as I've described
> here:
> http://blog.richardelling.com/2016/01/observing-cache-hitmiss-rates.html
>
>   -- richard
>
>
>
> ----- Original Message -----
> From: Patrick Zwahlen <patrick.zwahlen at gmail.com>
> To: zfs-discuss at list.zfsonlinux.org, Nmz <nemesiz at nmz.lt>
> Date: Monday, August 22, 2016, 10:54:47 PM
> Subject: [zfs-discuss] Reset ARC stats
>
>
> 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/
> <https://github.com/zfsonlinux/zfs/tree/master/cmd/arcstat>zfsonl
> inux/zfs/tree/master/
> <https://github.com/zfsonlinux/zfs/tree/master/cmd/arcstat>cmd/arcstat
> <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. <zfs-discuss at list.zfsonlinux.org>org
> <zfs-discuss at list.zfsonlinux.org>>
> To: zfs-discuss at list. <zfs-discuss at list.zfsonlinux.org>zfsonlinux.org
> <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. <zfs-discuss at list.zfsonlinux.org>org
> <zfs-discuss at list.zfsonlinux.org>
> http://list.zfsonlinux.org/
> <http://list.zfsonlinux.org/cgi-bin/mailman/listinfo/zfs-discuss>cgi
> -bin/mailman/listinfo/zfs-
> <http://list.zfsonlinux.org/cgi-bin/mailman/listinfo/zfs-discuss>discuss
> <http://list.zfsonlinux.org/cgi-bin/mailman/listinfo/zfs-discuss>
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss at list.zfsonlinux.org
> http://list.zfsonlinux.org/cgi-bin/mailman/listinfo/zfs-discuss
>
>
>
> _______________________________________________
> 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/20160823/1a1d7b6a/attachment.html>


More information about the zfs-discuss mailing list