diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2015-12-25 03:24:54 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2015-12-25 03:24:54 +0200 |
commit | 06ffda53352d98ec660d6a110e51840a0e0ff49f (patch) | |
tree | 9209376464ab4188829a4f441985f29bba8ec831 | |
parent | d3f1dbe9355bfd82625920341d16ac01a8847647 (diff) |
ksm charts #38
-rw-r--r-- | conf.d/apps_groups.conf | 1 | ||||
-rw-r--r-- | src/Makefile.am | 1 | ||||
-rwxr-xr-x | src/plugin_proc.c | 6 |
3 files changed, 8 insertions, 0 deletions
diff --git a/conf.d/apps_groups.conf b/conf.d/apps_groups.conf index e5e563b1ac..195118f46a 100644 --- a/conf.d/apps_groups.conf +++ b/conf.d/apps_groups.conf @@ -62,3 +62,4 @@ netdata: netdata apps.plugin charts.d.plugin crsproxy: crsproxy wifi: hostapd wpa_supplicant system: systemd-journal systemd-udevd systemd-logind udisks-glue udisks-daemon udevd udevd connmand ipv6_addrconf dbus-daemon +ksmd: ksmd diff --git a/src/Makefile.am b/src/Makefile.am index 0f89cf1e82..bbff03999d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -50,6 +50,7 @@ netdata_SOURCES = \ proc_stat.c \ proc_sys_kernel_random_entropy_avail.c \ proc_vmstat.c \ + sys_kernel_mm_ksm.c \ procfile.c procfile.h \ rrd.c rrd.h \ rrd2json.c rrd2json.h \ diff --git a/src/plugin_proc.c b/src/plugin_proc.c index f9ae82755d..9d7a48d6ee 100755 --- a/src/plugin_proc.c +++ b/src/plugin_proc.c @@ -50,6 +50,7 @@ void *proc_main(void *ptr) int vdo_proc_sys_kernel_random_entropy_avail = !config_get_boolean("plugin:proc", "/proc/sys/kernel/random/entropy_avail", 1); int vdo_proc_interrupts = !config_get_boolean("plugin:proc", "/proc/interrupts", 1); int vdo_proc_softirqs = !config_get_boolean("plugin:proc", "/proc/softirqs", 1); + int vdo_sys_kernel_mm_ksm = !config_get_boolean("plugin:proc", "/sys/kernel/mm/ksm", 1); int vdo_cpu_netdata = !config_get_boolean("plugin:proc", "netdata server resources", 1); RRDSET *stcpu = NULL, *stcpu_thread = NULL, *stclients = NULL, *streqs = NULL, *stbytes = NULL; @@ -61,6 +62,11 @@ void *proc_main(void *ptr) // BEGIN -- the job to be done + if(!vdo_sys_kernel_mm_ksm) { + debug(D_PROCNETDEV_LOOP, "PROCNETDEV: calling do_sys_kernel_mm_ksm()."); + vdo_sys_kernel_mm_ksm = do_sys_kernel_mm_ksm(rrd_update_every, usec+susec); + } + if(!vdo_proc_interrupts) { debug(D_PROCNETDEV_LOOP, "PROCNETDEV: calling do_proc_interrupts()."); vdo_proc_interrupts = do_proc_interrupts(rrd_update_every, usec+susec); |