Code

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 deae1afab31c57277c46db49668ded2d744f87b3..0c5a43345df8abe235379b55e9791372158e04b4 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 3354de8019d22138d25d53aad6ecc9a122542499..e4b92a5e02f3f665334592b6217b1c166245e6e7 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");