Exclude speculative from free pages count in macOS plugin
Vladimir Kobal committed
Dec 28, 2016 at 03:33 UTC
d34ffbd220f3a5c79066d90169a337717f673ce6
1 file changed
+3
-3
src/macos_mach_smi.c
+3
-3
@@ -93,8 +93,8 @@ int do_macos_mach_smi(int update_every, usec_t dt) {
93
rrddim_add(st, "throttled", NULL, system_pagesize, 1048576, RRDDIM_ABSOLUTE);
94
rrddim_add(st, "compressor", NULL, system_pagesize, 1048576, RRDDIM_ABSOLUTE);
95
rrddim_add(st, "inactive", NULL, system_pagesize, 1048576, RRDDIM_ABSOLUTE);
96
- rrddim_add(st, "speculative", NULL, system_pagesize, 1048576, RRDDIM_ABSOLUTE);
96
rrddim_add(st, "purgeable", NULL, system_pagesize, 1048576, RRDDIM_ABSOLUTE);
97
+ rrddim_add(st, "speculative", NULL, system_pagesize, 1048576, RRDDIM_ABSOLUTE);
98
rrddim_add(st, "free", NULL, system_pagesize, 1048576, RRDDIM_ABSOLUTE);
99
}
100
else rrdset_next(st);
@@ -104,9 +104,9 @@ int do_macos_mach_smi(int update_every, usec_t dt) {
104
rrddim_set(st, "throttled", vm_statistics.throttled_count);
105
rrddim_set(st, "compressor", vm_statistics.compressor_page_count);
106
rrddim_set(st, "inactive", vm_statistics.inactive_count);
107
- rrddim_set(st, "speculative", vm_statistics.speculative_count);
107
rrddim_set(st, "purgeable", vm_statistics.purgeable_count);
109
- rrddim_set(st, "free", vm_statistics.free_count);
108
+ rrddim_set(st, "speculative", vm_statistics.speculative_count);
109
+ rrddim_set(st, "free", (vm_statistics.free_count - vm_statistics.speculative_count));
110
rrdset_done(st);
111
}
112