[PATCH] Simple ARC stats in top
John Baldwin
jhb at freebsd.org
Tue Jun 26 14:08:10 UTC 2012
On Tuesday, June 26, 2012 12:02:36 am J. Hellenthal wrote:
>
> On Mon, Jun 25, 2012 at 02:43:41PM -0400, John Baldwin wrote:
> > I have some patches based on a script I got from avg@ that add some
simplistic
> > ARC stats to top so that one can see how much of wired memory is set aside
for
> > ARC, and how that memory is split up. The patch is against 8-stable:
> > http://www.FreeBSD.org/~jhb/patches/top_arc.patch
> >
> > Sample output:
> >
> > Mem: 1245M Active, 1393M Inact, 21G Wired, 309M Buf, 23G Free
> > ARC: 19G Total, 1381M MRU, 17G MFU, 272K Anon, 232M Header, 442M Other
> > Swap: 8192M Total, 8192M Free
> >
> > Comments, etc.?
> >
>
> Run with it!
>
> Only question I can come up with throughout this patch is how would it
> act on a system that was built WITHOUT_ZFS ?
>
> I just tested it out on a machine where there is no ZFS and one where
> there is and its golden. I don't have the resources to test for
> WITHOUT_ZFS though.
It should be fine. It just determines if the sysctl's are present at
runtime. It doesn't use any ZFS libraries, etc. so WITHOUT_ZFS shouldn't
matter.
--
John Baldwin
More information about the freebsd-fs
mailing list