Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Mar 2015 23:44:26 +0100
From:      Willem Jan Withagen <wjw@digiware.nl>
To:        fs@freebsd.org
Subject:   Missing some ZFS values in sysctl output
Message-ID:  <550F45CA.5000302@digiware.nl>

next in thread | raw e-mail | index | archive | help
Hoi,

There is this zfs-snmp script that allows one the graph certain things
from a ZFS setup.
The original uses solaris' kstat, but just about all values are in
Sysctl with FreeBSD.

However I seem to overlook the values for:

Original code:
====
def zfs_read(oid):
    return ('counter', kstat("unix:0:vopstats_zfs:read_bytes") / 1024 %
2**32) # 32 bit KB counter

def zfs_readdir(oid):
    return ('counter', kstat("unix:0:vopstats_zfs:readdir_bytes") / 1024
% 2**32) # 32 bit KB counter

def zfs_write(oid):
    return ('counter', kstat("unix:0:vopstats_zfs:write_bytes") / 1024 %
2**32) # 32 bit KB counter
=======

Read and write are available for L2 arc, but for the global values I
seem to miss them.

Are they really not in ZFS?
And is it possible to add them?

Reagards,
--WjW



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?550F45CA.5000302>