-----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<bartosz.s...@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

-----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-----
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Reply via email to