From owner-freebsd-fs@FreeBSD.ORG Tue Jun 26 14:08:10 2012 Return-Path: Delivered-To: fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1835D1065677 for ; Tue, 26 Jun 2012 14:08:10 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id E33FD8FC1E for ; Tue, 26 Jun 2012 14:08:09 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 3EDB7B95D; Tue, 26 Jun 2012 10:08:09 -0400 (EDT) From: John Baldwin To: "J. Hellenthal" Date: Tue, 26 Jun 2012 09:55:30 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110714-p17; KDE/4.5.5; amd64; ; ) References: <201206251443.41768.jhb@freebsd.org> <20120626040235.GA57300@DataIX.net> In-Reply-To: <20120626040235.GA57300@DataIX.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201206260955.30935.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Tue, 26 Jun 2012 10:08:09 -0400 (EDT) Cc: fs@freebsd.org Subject: Re: [PATCH] Simple ARC stats in top X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jun 2012 14:08:10 -0000 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