From owner-freebsd-fs@FreeBSD.ORG Tue Jun 26 14:49:49 2012 Return-Path: Delivered-To: freebsd-fs@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 37A96106564A for ; Tue, 26 Jun 2012 14:49:49 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 7F9588FC16 for ; Tue, 26 Jun 2012 14:49:48 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id RAA03058; Tue, 26 Jun 2012 17:49:37 +0300 (EEST) (envelope-from avg@FreeBSD.org) Message-ID: <4FE9CC00.9090501@FreeBSD.org> Date: Tue, 26 Jun 2012 17:49:36 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:13.0) Gecko/20120610 Thunderbird/13.0 MIME-Version: 1.0 To: Mark Felder References: <201206251443.41768.jhb@freebsd.org> In-Reply-To: X-Enigmail-Version: 1.4.2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-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:49:49 -0000 on 26/06/2012 17:29 Mark Felder said the following: > On Mon, 25 Jun 2012 13:43:41 -0500, John Baldwin wrote: >> >> Comments, etc.? >> > > Why do these stats differ from the ones in the zfs-stats script? > > CPU: 0.1% user, 0.0% nice, 0.3% system, 0.1% interrupt, 99.5% idle > Mem: 81M Active, 1118M Inact, 9714M Wired, 76K Cache, 1850M Buf, 6930M Free > ARC: 6026M Total, 128K MRU, 1222K MFU, 24K Anon, 9961K Header, 238K Other Hmm, the above numbers add up to about 10MB... > Swap: 18G Total, 18G Free > > zfs-stats output: > > ARC Size Breakdown: > Recently Used Cache Size: 0.67% 40.11 MiB > Frequently Used Cache Size: 99.33% 5.85 GiB > > Shouldn't your MFU be 5.85GiB and MRU be 40MiB? Please also reproduce the zfs-stats lines preceding the quoted output. Additionally, please run this script http://people.freebsd.org/~avg/arc-sizes.sh -- Andriy Gapon