From: Ruben Kerkhof Date: Wed, 27 Apr 2016 11:46:24 +0000 (+0200) Subject: zfs_arc plugin: get more sizes of various caches X-Git-Tag: collectd-5.6.0~301^2~1 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=3bf760dbda8625b0c1ad022289a89bb978f641a1;p=collectd.git zfs_arc plugin: get more sizes of various caches --- diff --git a/src/zfs_arc.c b/src/zfs_arc.c index 2f89ddd9..4204a7e7 100644 --- a/src/zfs_arc.c +++ b/src/zfs_arc.c @@ -269,11 +269,19 @@ static int za_read (void) #endif /* Sizes */ - za_read_gauge (ksp, "size", "cache_size", "arc"); - za_read_gauge (ksp, "c", "cache_size", "c"); - za_read_gauge (ksp, "p", "cache_size", "p"); - za_read_gauge (ksp, "c_min", "cache_size", "c_min"); - za_read_gauge (ksp, "c_max", "cache_size", "c_max"); + za_read_gauge (ksp, "anon_size", "cache_size", "anon_size"); + za_read_gauge (ksp, "c", "cache_size", "c"); + za_read_gauge (ksp, "c_max", "cache_size", "c_max"); + za_read_gauge (ksp, "c_min", "cache_size", "c_min"); + za_read_gauge (ksp, "hdr_size", "cache_size", "hdr_size"); + za_read_gauge (ksp, "metadata_size", "cache_size", "metadata_size"); + za_read_gauge (ksp, "mfu_ghost_size", "cache_size", "mfu_ghost_size"); + za_read_gauge (ksp, "mfu_size", "cache_size", "mfu_size"); + za_read_gauge (ksp, "mru_ghost_size", "cache_size", "mru_ghost_size"); + za_read_gauge (ksp, "mru_size", "cache_size", "mru_size"); + za_read_gauge (ksp, "other_size", "cache_size", "other_size"); + za_read_gauge (ksp, "p", "cache_size", "p"); + za_read_gauge (ksp, "size", "cache_size", "arc"); /* The "l2_size" value has disappeared from Solaris some time in * early 2013, and has only reappeared recently in Solaris 11.2.