diff options
author | Ross Williams <ross@ross-williams.net> | 2019-07-06 04:27:49 +0000 |
---|---|---|
committer | Ross Williams <ross@ross-williams.net> | 2019-07-07 22:52:04 -0400 |
commit | a93edde1a21e533472b5d443002032260b5bd066 (patch) | |
tree | 1504885b84def2d3e4daf672bf79ea16791f2307 /freebsd/FreeBSDProcessList.h | |
parent | 92258e99e639795f4119a86a1c44d5015b29ffdc (diff) |
Support ZFS ARC stats on FreeBSD
New meter displays same ARC stats as FreeBSD top(1).
Can be extended to other platforms that support ZFS.
Pulling kstat.zfs.misc.arcstats.c_max as the meter
total, so the meter has a meaningful value to work
up to.
The Text meter displays, first, the maximum
ARC size (Meter.total), then second, the total
ARC used, using the difference between Meter.maxItems
and Meter.curItems to "hide" the used value from the
Bar and Graph drawing functions by using an index
in Meter.values[] that is beyond curItems - 1, but
less than maxItems - 1.
Diffstat (limited to 'freebsd/FreeBSDProcessList.h')
-rw-r--r-- | freebsd/FreeBSDProcessList.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/freebsd/FreeBSDProcessList.h b/freebsd/FreeBSDProcessList.h index af343fb0..cf96a702 100644 --- a/freebsd/FreeBSDProcessList.h +++ b/freebsd/FreeBSDProcessList.h @@ -42,6 +42,12 @@ typedef struct FreeBSDProcessList_ { unsigned long long int memFree; unsigned long long int memZfsArc; + unsigned long long int zfsArcMax; + unsigned long long int zfsArcMFU; + unsigned long long int zfsArcMRU; + unsigned long long int zfsArcAnon; + unsigned long long int zfsArcHeader; + unsigned long long int zfsArcOther; CPUData* cpus; |