From owner-freebsd-fs@FreeBSD.ORG Tue Jun 26 16:29:51 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 8314B1065670; Tue, 26 Jun 2012 16:29:51 +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 A04EE8FC19; Tue, 26 Jun 2012 16:29:50 +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 TAA04537; Tue, 26 Jun 2012 19:29:43 +0300 (EEST) (envelope-from avg@FreeBSD.org) Message-ID: <4FE9E376.8030209@FreeBSD.org> Date: Tue, 26 Jun 2012 19:29:42 +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> <4FE9CC00.9090501@FreeBSD.org> <4FE9DB60.1030905@FreeBSD.org> <4FE9DE92.3040700@FreeBSD.org> In-Reply-To: <4FE9DE92.3040700@FreeBSD.org> 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 16:29:51 -0000 on 26/06/2012 19:08 Andriy Gapon said the following: > So the correct ARC size breakdown is: hdr_size + data_size + other_size + > l2_hdr_size, where data_size can further be broken down to mfu_size + mru_size + > anon_size. > > I think that users of zfs-stats / arc_summary.pl could benefit from this knowledge > too. > (I will repeat just in case that zfs-stats mistreats kstat.zfs.misc.arcstats.p as > current MRU size whereas it is actually target MRU size) Here's a quick attempt at reflecting my understanding of the stats in zfs-stats code: http://people.freebsd.org/~avg/zfs-stats I think that this variant of the script should produce results more aligned with what top shows with John's patch. -- Andriy Gapon