Viewing ZFS statistics with zfs-stats

The FreeBSD operating system collects statistical data from the ZFS subsystem using mechanisms originating from the OpenSolaris kstat framework.
This data is stored in sysctl variables (sysctl kstat.zfs). I have been recently working on improving a script named arc_summary.pl that was originally written by Ben Rockwood and modified by Jason J. Hellenthal. I have rewritten large parts of this script and renamed it to zfs-stats, as it’s output is not limited to ARC anymore.
The zfs-stats script now displays some general ZFS information and human-readable ZFS statistics about the following subsystems:

  • ARC
  • L2ARC
  • zfetch (DMU)
  • vdev cache

The script is now available in the FreeBSD ports tree: sysutils/zfs-stats
Source code and download: http://www.vx.sk/zfs-stats/

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>