zfs_arc plugin: add memory_throttle_count stat
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 27 Apr 2016 11:07:38 +0000 (13:07 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 27 Apr 2016 11:07:38 +0000 (13:07 +0200)
This tells you how often the ARC has been shrunk to release
memory for other processes.

src/types.db
src/zfs_arc.c

index deae1af..0c5a433 100644 (file)
@@ -111,6 +111,7 @@ memcached_octets        rx:DERIVE:0:U, tx:DERIVE:0:U
 memcached_ops           value:DERIVE:0:U
 memory                  value:GAUGE:0:281474976710656
 memory_lua              value:GAUGE:0:281474976710656
+memory_throttle_count   value:DERIVE:0:U
 multimeter              value:GAUGE:U:U
 mutex_operations        value:DERIVE:0:U
 mysql_bpool_bytes       value:GAUGE:0:U
index 3354de8..e4b92a5 100644 (file)
@@ -295,6 +295,7 @@ static int za_read (void)
        /* Issue indicators */
        za_read_derive (ksp, "mutex_miss", "mutex_operations", "miss");
        za_read_derive (ksp, "hash_collisions", "hash_collisions", "");
+       za_read_derive (ksp, "memory_throttle_count", "memory_throttle_count", "");
 
        /* Evictions */
        za_read_derive (ksp, "evict_l2_cached",     "cache_eviction", "cached");