From 61635f31fe5a9630bf859d6b60b199a929c95609 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Wed, 27 Apr 2016 14:01:58 +0200 Subject: [PATCH] zfs_arc plugin: get more MRU/MFU stats --- src/zfs_arc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/zfs_arc.c b/src/zfs_arc.c index 4204a7e7..37a918b5 100644 --- a/src/zfs_arc.c +++ b/src/zfs_arc.c @@ -320,6 +320,11 @@ static int za_read (void) za_read_derive (ksp, "demand_metadata_misses", "cache_result", "demand_metadata-miss"); za_read_derive (ksp, "prefetch_data_misses", "cache_result", "prefetch_data-miss"); za_read_derive (ksp, "prefetch_metadata_misses", "cache_result", "prefetch_metadata-miss"); + za_read_derive (ksp, "mfu_hits", "cache_result", "mfu-hit"); + za_read_derive (ksp, "mfu_ghost_hits", "cache_result", "mfu_ghost-hit"); + za_read_derive (ksp, "mru_hits", "cache_result", "mru-hit"); + za_read_derive (ksp, "mru_ghost_hits", "cache_result", "mru_ghost-hit"); + za_read_derive (ksp, "prefetch_metadata_misses", "cache_result", "prefetch_metadata-miss"); /* Ratios */ arc_hits = (gauge_t) get_zfs_value(ksp, "hits"); -- 2.11.0