Date: Tue, 26 Jun 2012 09:55:30 -0400 From: John Baldwin <jhb@freebsd.org> To: "J. Hellenthal" <jhellenthal@dataix.net> Cc: fs@freebsd.org Subject: Re: [PATCH] Simple ARC stats in top Message-ID: <201206260955.30935.jhb@freebsd.org> In-Reply-To: <20120626040235.GA57300@DataIX.net> References: <201206251443.41768.jhb@freebsd.org> <20120626040235.GA57300@DataIX.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206260955.30935.jhb>