Code

zfs_arc plugin: get more sizes of various caches
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 27 Apr 2016 11:46:24 +0000 (13:46 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 27 Apr 2016 11:46:24 +0000 (13:46 +0200)
src/zfs_arc.c

index 2f89ddd9ee4bf451ec79751f77b4bd744a4024df..4204a7e7d2eac6f424a40edbb3070bc2c4d657ad 100644 (file)
@@ -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.