Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Feb 2010 06:18:01 -0500
From:      jhell <jhell@DataIX.net>
To:        Bartosz Stec <bartosz.stec@it4pro.pl>
Cc:        FreeBSD Stable <freebsd-stable@freebsd.org>
Subject:   Re: ZFS tuning [was: hardware for home use large storage]
Message-ID:  <alpine.BSF.2.00.1002170613530.18545@pragry.qngnvk.ybpny>
In-Reply-To: <alpine.BSF.2.00.1002170450260.66097@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> <20100216175946.GA98082@icarus.home.lan> <20100216200511.GA95812@server.vk2pj.dyndns.org> <20100216215637.GA4299@icarus.home.lan> <alpine.BSF.2.00.1002170241080.14189@pragry.qngnvk.ybpny> <4B7BA6A5.9020306@it4pro.pl> <20100217093237.fe4b4e14.torfinn.ingolfsen@broadpark.no> <4B7BAF59.7040407@it4pro.pl> <alpine.BSF.2.00.1002170450260.66097@pragry.qngnvk.ybpny>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On Wed, 17 Feb 2010 04:53, jhell@ wrote:
> ---------------------------- PGP Command Output ----------------------------
> gpg: Signature made Wed Feb 17 04:53:27 2010 EST using RSA key ID 89D8547E
> gpg: Good signature from "jhell <jhell@DataIX.net>"
> ----------- Begin PGP Signed Message Verified 2010-02-17 06:13:53 ----------
>
>
>
> 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<bartosz.stec@it4pro.pl>  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
>
>
> ------------ End PGP Signed Message Verified 2010-02-17 06:13:53 -----------
>

I take that back.

I just uploaded a modified version that I wrapped with a if statement to 
check and see if l2_hits >= 0.

If you don't have a L2ARC you will now get a message explaining why its not 
included in your summary.

I couldn't sleep until I fixed this knowing that more people are probably 
going to come across this problem and email back.

New rev: 184

MD5 (arc_summary.pl) = f47bac165e7bf707d5f81cfdd007c30a
SHA256 (arc_summary.pl) = 794dce069ff649598d99204b362d141a19da47dcf60ec165b260d55a5c9d493f
SIZE (arc_summary.pl) = 12695

http://jhell.googlecode.com/files/arc_summary.pl
http://jhell.googlecode.com/files/arc_summary.pl.asc

Now I can finally sleep ;)

- -- 

  jhell

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iQEcBAEBAgAGBQJLe9BrAAoJEJBXh4mJ2FR+0K8IAKA43hk95Kll9mLfMWj5bUPp
ZLlDzZPPy30Ign6wfbSO0wImLW0UVa9wAL0EwWb78F9T/3AJ2fQZFgWrOp/t+eV4
iKG8rsEy6t6YDYYZ7G6XnSibiCO+M+L+b6eSWMbcl/Ak8n+1PZUQisFevq/K0cCu
31ktjNxC6eqK1s0rKn/CgyXKO/rga60U12OHG9SLInM8J1dtHSGAp6kBO0B6C9+m
uzEKOkUxXlYZpo+vlR9alByPWfiG9JqkgiYcOeXcgo0kb405cVT5jwBrOY9UnTb8
phxY6RXUViGP/quX2P+tGIYO47gDvBiGY/XRyTO1bmM+O0nPTnnKHpJg9NBvZ/g=
=OFDn
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1002170613530.18545>