From owner-freebsd-stable@FreeBSD.ORG Wed Feb 17 09:53:36 2010 Return-Path: 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 36FDA106566B for ; Wed, 17 Feb 2010 09:53:36 +0000 (UTC) (envelope-from jhellenthal@gmail.com) Received: from mail-iw0-f175.google.com (mail-iw0-f175.google.com [209.85.223.175]) by mx1.freebsd.org (Postfix) with ESMTP id E147D8FC0C for ; Wed, 17 Feb 2010 09:53:35 +0000 (UTC) Received: by iwn5 with SMTP id 5so3146187iwn.9 for ; Wed, 17 Feb 2010 01:53:35 -0800 (PST) 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=5Pa3yjattPbCcmSBtU1/I//fbsl6MUY/5wmVW/kBBY4=; b=sGEfZoao1YRaEK19Fk4uGIahDnQBuo9qxhxK8GBmanJgENiybBV26J0AshBd4Ec3T8 /vkWc6c93KjLWJZu07dSJ70VZbQOn97iN9DtDQQDDEdrm0z2l+fUilMiNcBtcTcKNb/J eLe1sQVZTpOMrIJ9QzGod28VWJXfVS57sOtlc= 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=r5wfE4l70Yz6YRU+Kh3GLVlsLxp6erFF3eSJ1NR2lIBTntvCOgkcYCaFcdaYpdqmBb kNIO/RkDllVD37zSfue3FK0DTZmmJKBio8Qj217nTlewqdBw9zBCbb7XiSQolr66Uz+O r+6Zb6HK59loZxXL4pb5fRT/S/SGBgAFkPjtI= Received: by 10.231.79.136 with SMTP id p8mr7719545ibk.4.1266400415254; Wed, 17 Feb 2010 01:53:35 -0800 (PST) Received: from centel.dataix.local (ppp-21.195.dialinfree.com [209.172.21.195]) by mx.google.com with ESMTPS id 21sm7996606iwn.2.2010.02.17.01.53.30 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 17 Feb 2010 01:53:34 -0800 (PST) Sender: "J. Hellenthal" Date: Wed, 17 Feb 2010 04:53:20 -0500 From: jhell To: Bartosz Stec In-Reply-To: <4B7BAF59.7040407@it4pro.pl> Message-ID: References: <20100215090756.GA54764@icarus.home.lan> <20100215105000.101326yj01j0f64g@webmail.leidinger.net> <20100215122744.GA57382@icarus.home.lan> <20100215161105.14071eiflhc9le68@webmail.leidinger.net> <4B79BA9C.3020402@quip.cz> <4B7AD0A3.9080701@barryp.org> <20100216175946.GA98082@icarus.home.lan> <20100216200511.GA95812@server.vk2pj.dyndns.org> <20100216215637.GA4299@icarus.home.lan> <4B7BA6A5.9020306@it4pro.pl> <20100217093237.fe4b4e14.torfinn.ingolfsen@broadpark.no> <4B7BAF59.7040407@it4pro.pl> 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.org Subject: Re: ZFS tuning [was: hardware for home use large storage] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Feb 2010 09:53:36 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 17 Feb 2010 03:56, bartosz.stec@ wrote: > On 2010-02-17 09:32, Torfinn Ingolfsen wrote: >> On Wed, 17 Feb 2010 09:19:49 +0100 >> Bartosz Stec wrote: >> >> >>> So here's my reply (last line seems most interesting ;) : >>> >> [...snipped...] >> >>> Illegal division by zero at ./arc_summary.pl line 242. >>> >> FWIW, I also got this line when I ran this script on my idle zfs server. >> > I'm not a PERL programmer (or programmer at all ;), but what I see is script > doesn't check if L2ARC is used at all, so it will always try compute these > lines: > > printf("\tL2 Hit Ratio:\t\t\t%0.2f%%\t%d\n", 100 * ( $l2_hits / ( $l2_hits + > $l2_misses )), $l2_hits ); > printf("\tL2 Miss Ratio:\t\t\t%0.2f%%\t%d\n", 100 * ( $l2_misses / ( $l2_hits > + $l2_misses )), $l2_misses ); > printf("\tL2 Feeds Ratio:\t\t\t%0.2f%%\t%d\n", 100 * ( $l2_feeds / ( $l2_hits > + $l2_misses )), $l2_feeds ); > > Without active L2ARC it will always generate divide at zeo error, so it seems > that additional check for usable L2ARC values is needed at first place. > > Thanks for reporting this. As I am usually on a system that is using a L2ARC I wouldn't have noticed it. I should have this fixed in about 10 hours. But as I am writing this email I am heading off to bed, work calls in the morning. Check back tomorrow night for a updated version and adjust the current to your liking for the moment. ;) Thanks again. - -- jhell -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iQEcBAEBAgAGBQJLe7yXAAoJEJBXh4mJ2FR+NyAH/jBS6W0b9tZZVOm5nQ+kmjG2 CZxWqkkNe6ldQ3ggdmSNlz324Vr+6ZpHvLHjlpRDloyCEX2//9exzpDAMY/3yYL/ 4hrY7WeaAVDhwaCmvVxyiuP3QFnF1ENl+mMBxpbc6sYoYpDJ1900qh/0FFFjIRxm V9vaBWl1vYzLxiAp55b+UBLI5NNPEKTJgxQMBAflh24A3KuDtNijS23EEeA/g2vq eZorXS/55n5ZJxVWXMOn0i9IKdpn0sYPu5xoMWCihKxN6KRnighBfr9BIjpXZEEC rktEX4wY4bOMpULQJff/9MAjlisq5jvsY7JulYHX22D+HjC4/Z3TLQ/RVCI2d5Q= =GRta -----END PGP SIGNATURE-----