[PATCH] Simple ARC stats in top

Andriy Gapon avg at FreeBSD.org
Tue Jun 26 16:29:51 UTC 2012


on 26/06/2012 19:08 Andriy Gapon said the following:
> So the correct ARC size breakdown is: hdr_size + data_size + other_size +
> l2_hdr_size, where data_size can further be broken down to mfu_size + mru_size +
> anon_size.
> 
> I think that users of zfs-stats / arc_summary.pl could benefit from this knowledge
> too.
> (I will repeat just in case that zfs-stats mistreats kstat.zfs.misc.arcstats.p as
> current MRU size whereas it is actually target MRU size)

Here's a quick attempt at reflecting my understanding of the stats in zfs-stats
code: http://people.freebsd.org/~avg/zfs-stats
I think that this variant of the script should produce results more aligned with
what top shows with John's patch.


-- 
Andriy Gapon



More information about the freebsd-fs mailing list