From owner-freebsd-fs@FreeBSD.ORG Wed Jun 27 10:25:13 2012 Return-Path: Delivered-To: fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0A95F10656D6; Wed, 27 Jun 2012 10:25:08 +0000 (UTC) (envelope-from markus.gebert@hostpoint.ch) Received: from mail.adm.hostpoint.ch (mail.adm.hostpoint.ch [IPv6:2a00:d70:0:a::e0]) by mx1.freebsd.org (Postfix) with ESMTP id B0DE88FC19; Wed, 27 Jun 2012 10:25:07 +0000 (UTC) Received: from [2001:1620:2013:1:d55a:e267:7517:1b17] (port=54536) by mail.adm.hostpoint.ch with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1SjpQo-0009LW-MB; Wed, 27 Jun 2012 12:25:06 +0200 Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=us-ascii From: Markus Gebert In-Reply-To: <201206251443.41768.jhb@freebsd.org> Date: Wed, 27 Jun 2012 12:24:35 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: References: <201206251443.41768.jhb@freebsd.org> To: John Baldwin X-Mailer: Apple Mail (2.1278) 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: Wed, 27 Jun 2012 10:25:13 -0000 Hi John On 25.06.2012, at 20:43, John Baldwin wrote: > I have some patches based on a script I got from avg@ that add some = simplistic=20 > ARC stats to top so that one can see how much of wired memory is set = aside for=20 > ARC, and how that memory is split up. The patch is against 8-stable: > http://www.FreeBSD.org/~jhb/patches/top_arc.patch >=20 > Sample output: >=20 > 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 >=20 > Comments, etc.? Nice feature for top, thanks! I've tested your patch on 8.3p3. When I'm using patched top to display = per-cpu statistics, the ARC line corrupts the third CPU line (CPU 2). = That seems to be exactly the line top would display ARC stats on when = running in normal (i.e. not -P) mode. It doesn't always happen = immediately after starting top, I guess some of the ARC stats actually = need to change for it to break. Example (top -S -P): ---- last pid: 18994; load averages: 0.00, 0.00, 0.00 = = up 4+19:45:05 = 12:14:33 55 processes: 2 running, 52 sleeping, 1 waiting CPU 0: 0.4% user, 0.0% nice, 0.0% system, 0.0% interrupt, 99.6% idle CPU 1: 0.0% user, 0.0% nice, 0.0% system, 40.0% interrupt, 100% idle CPU 2: 0.0% user, 0.0% nice, 0.0% s1009K Anon, 54M Header, 118M Other CPU 3: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle Mem: 629M Active, 23M Inact, 2475M Wired, 1308K Cache, 748M Buf, 4786M = Free ARC: 1535M Total, 455M MRU, 906M MFU, 912K Anon, 54M Header, 118M Other Swap: 8192M Total, 8192M Free ---- Markus