From a14e7d028532ae06e5ea3e4d89bafcfcb3481467 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Wed, 27 Apr 2016 13:07:38 +0200 Subject: [PATCH] zfs_arc plugin: add memory_throttle_count stat This tells you how often the ARC has been shrunk to release memory for other processes. --- src/types.db | 1 + src/zfs_arc.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/types.db b/src/types.db index deae1afa..0c5a4334 100644 --- a/src/types.db +++ b/src/types.db @@ -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 diff --git a/src/zfs_arc.c b/src/zfs_arc.c index 3354de80..e4b92a5e 100644 --- a/src/zfs_arc.c +++ b/src/zfs_arc.c @@ -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"); -- 2.30.2