arcstat
arcstat copied to clipboard
uses Perl to extract, format, and display kstats from the ZFS ARC
init() already calls snap_stats(), don't call it again the first time through. Fixes #7
When running, the following is output: `Use of uninitialized value in division (/) at ./arcstat.pl line 330.` If you go to line 330 and comment out `$v{"rmiss"} = $d{"recycle_miss"}/$int;` it'll...
Fixes issue I opened here: https://github.com/mharsch/arcstat/issues/14 I only tested on OmniOS; if you have an actual Solaris laying around please test there.
need to be able to report stats per-pool
It has been reported that changes to L2ARC kstats in Oracle Solaris 11 have caused this script to break.
The current output of arcstat.pl is scaled in human-readable fashion. This is appropriate for human eyes watching a terminal, but doesn't lend itself to post-processing of output by another script...
Percentage values (like hit% and miss%) should have 2 digits of precision after the decimal point. e.g. 99.75% hit% instead of 100.