From owner-freebsd-stable@FreeBSD.ORG Tue Apr 20 05:48:26 2010 Return-Path: <owner-freebsd-stable@FreeBSD.ORG> Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2419C106566C for <freebsd-stable@freebsd.org>; Tue, 20 Apr 2010 05:48:26 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com [209.85.221.181]) by mx1.freebsd.org (Postfix) with ESMTP id C2A2A8FC15 for <freebsd-stable@freebsd.org>; Tue, 20 Apr 2010 05:48:25 +0000 (UTC) Received: by qyk11 with SMTP id 11so6040337qyk.13 for <freebsd-stable@freebsd.org>; Mon, 19 Apr 2010 22:48:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:cc :subject:in-reply-to:message-id:references:user-agent :x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; bh=5RZFZQNceqq2/RRrnNklOxTSuNJXiv2VM8xym6T2zbs=; b=MCAErzsySteCuVExQpTujHfQ8LGB+8RLKErVS2nYMmLxqDVuUEoyNJcRgVn1pTlqMy whIsiZk+BXTbDDLhMTEzx26WISmAbqWlekGtWQ1BfqeK8tGOAyChCTNoPKzFKBIfQplk 4RlqsPzblGRde3534URH8mc8irMdyORX9U3Zg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; b=dCq0uBB4jTFiNUsw0jxe3+XXsylF/kyHxkn/0lA1DlT37nNvVunrPKECB4PobYc7Lg u/gv43oKL5gAQ7p9BfxcoCso+SXiy4BnEI8ZgbGj2fQhnGMxUxQe5Cdu9ic3TL/mxZK8 BgAy6K7+FmNMZW+qtnviO/zZCxtyAvIEkWn2c= Received: by 10.224.60.5 with SMTP id n5mr2052705qah.288.1271742504762; Mon, 19 Apr 2010 22:48:24 -0700 (PDT) Received: from centel.dataix.local (c-71-205-129-194.hsd1.mi.comcast.net [71.205.129.194]) by mx.google.com with ESMTPS id 23sm4517022qyk.15.2010.04.19.22.48.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 19 Apr 2010 22:48:23 -0700 (PDT) Sender: "J. Hellenthal" <jhellenthal@gmail.com> Date: Tue, 20 Apr 2010 01:48:11 -0400 From: jhell <jhell@DataIX.net> To: Barry Pederson <bp@barryp.org> In-Reply-To: <4BB0BC7C.3000801@barryp.org> Message-ID: <alpine.BSF.2.00.1004200141570.23743@pragry.qngnvk.ybpny> References: <cf9b1ee01002150049o43fced71ucb5776a0a1eaf4cf@mail.gmail.com> <20100215090756.GA54764@icarus.home.lan> <20100215105000.101326yj01j0f64g@webmail.leidinger.net> <20100215122744.GA57382@icarus.home.lan> <20100215161105.14071eiflhc9le68@webmail.leidinger.net> <4B79BA9C.3020402@quip.cz> <alpine.BSF.2.00.1002152024040.74553@pragry.qngnvk.ybpny> <4B7AD0A3.9080701@barryp.org> <alpine.BSF.2.00.1002170321200.14189@pragry.qngnvk.ybpny> <4BB0BC7C.3000801@barryp.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: FreeBSD Stable <freebsd-stable@freebsd.org> Subject: Re: ZFS Tuning - arc_summary.pl X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code <freebsd-stable.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-stable>, <mailto:freebsd-stable-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-stable> List-Post: <mailto:freebsd-stable@freebsd.org> List-Help: <mailto:freebsd-stable-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-stable>, <mailto:freebsd-stable-request@freebsd.org?subject=subscribe> X-List-Received-Date: Tue, 20 Apr 2010 05:48:26 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 29 Mar 2010 10:43, Barry Pederson wrote: In Message-Id: <4BB0BC7C.3000801@barryp.org> > I've been using the arc_summary.pl script from here: > > http://jhell.googlecode.com/svn/base/head/scripts/zfs/arc_summary/arc_summary.pl > > and noticed some odd numbers, with the ARC Current Size being larger than the > Max Size, and the breakdown adding up to less than the current size as shown > below > > -------- > ARC Size: > Current Size: 992.71M (arcsize) > Target Size: (Adaptive) 512.00M (c) > Min Size (Hard Limit): 81.82M (arc_min) > Max Size (Hard Limit): 512.00M (arc_max) > > ARC Size Breakdown: > Recently Used Cache Size: 99.84% 511.18M (p) > Frequently Used Cache Size: 0.16% 0.82M (c-p) > -------- > > > From another thread I saw, it sounds like arc_max isn't really > a "Hard Limit" but rather some kind of high water mark. If that's > the case then I wonder if this might make more sense.... > > > > --------- > --- arc_summary.pl.original 2010-02-25 19:23:13.000000000 -0600 > +++ arc_summary.pl 2010-03-29 09:32:28.000000000 -0500 > @@ -121,20 +121,20 @@ > > my $arc_size = ${Kstat}->{zfs}->{0}->{arcstats}->{size}; > my $arc_size_MiB = ($arc_size / 1048576); > -my $mfu_size = $target_size - $mru_size; > +my $mfu_size = $arc_size - $mru_size; > my $mfu_size_MiB = ($mfu_size / 1048576); > -my $mru_perc = 100*($mru_size / $target_size); > -my $mfu_perc = 100*($mfu_size / $target_size); > +my $mru_perc = 100*($mru_size / $arc_size); > +my $mfu_perc = 100*($mfu_size / $arc_size); > > print "ARC Size:\n"; > printf("\tCurrent Size:\t\t\t\t%0.2fM (arcsize)\n", $arc_size_MiB); > printf("\tTarget Size: (Adaptive)\t\t\t%0.2fM (c)\n", $target_size_MiB); > printf("\tMin Size (Hard Limit):\t\t\t%0.2fM (arc_min)\n", > $arc_min_size_MiB); > -printf("\tMax Size (Hard Limit):\t\t\t%0.2fM (arc_max)\n", > $arc_max_size_MiB); > +printf("\tMax Size :\t\t\t%0.2fM (arc_max)\n", > $arc_max_size_MiB); > > print "\nARC Size Breakdown:\n"; > printf("\tRecently Used Cache Size:\t%0.2f%%\t%0.2fM (p)\n", $mru_perc, > $mru_size_MiB); > -printf("\tFrequently Used Cache Size:\t%0.2f%%\t%0.2fM (c-p)\n", $mfu_perc, > $mfu_size_MiB); > +printf("\tFrequently Used Cache Size:\t%0.2f%%\t%0.2fM (arcsize-p)\n", > $mfu_perc, $mfu_size_MiB); > print "\n"; > > ### ARC Efficency ### > > ----------- > > > Giving something like this... > > -------- > ARC Size: > Current Size: 992.88M (arcsize) > Target Size: (Adaptive) 512.00M (c) > Min Size (Hard Limit): 81.82M (arc_min) > Max Size : 512.00M (arc_max) > > ARC Size Breakdown: > Recently Used Cache Size: 51.48% 511.18M (p) > Frequently Used Cache Size: 48.52% 481.70M (arcsize-p) > -------- > > Barry > Barry, What branch and revision was this run on ? I need the above information because the output above just does not match up quite as it should and I want to investigate when, where & why as I believe something else is going on here that is not on the behalf of arc_summary.pl. Or if you could provide me personally with the full output of the script from the downloads section "just to be sure" in an attachment that would work as well. Thanks. - -- jhell -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iQEcBAEBAgAGBQJLzUAhAAoJEJBXh4mJ2FR+kP4H/3FSkazC+Jxv0q5XJhP/YfeP gJ0vWP+84J6HM68GyS4eCOu3QPGUPBAuqZOS8Bb9jXg9xNfxCvw2DQn5mP6v6i6H w8mWyYyCla7iBfItod4L2GjQeP52SIt7sW9icDeWvrS+LphwjTQmBiA4QwGBQT5D YiarUMpzY1Jkq8I6YgGYRIwZqeuNn7X68ZEKIz8/LhTM6WKdktm5dcBb6UM/mC/a I82sv+7mG/9Bn0Orp7DMqvym0rllYmb+Sj7Pj2NEcPt9LYDNf6Vy1Wmly6hNQTYb b8WkfgLeMogDN9JS6Bw+UxNGwHgQgqDIWvkKDt9qrmuTpKLEozD6GnBzo27uZkg= =RoRd -----END PGP SIGNATURE-----