From 0942680f85a3fb0a03bc8c211fcc9d286572c242 Mon Sep 17 00:00:00 2001 From: Adrien Mahieux Date: Wed, 18 Sep 2019 14:13:32 +0200 Subject: Collector slabinfo (#6800) ### Summary Provide new collector parsing `/proc/slabinfo` to provide details on kernel slab structures. Asked by issue #13 (very happy for the oldest issue in backlog) ##### Component Name collectors/slabinfo.plugin ##### Additional Information This slabinfo details allows to have clues on actions done on your system. In the following screenshot, you can clearly see a `find` done on a ext4 filesystem (the number of `ext4_inode_cache` & `dentry` are rising fast), and a few seconds later, an admin issued a `echo 3 > /proc/sys/vm/drop_cached` as their count dropped. --- Makefile.am | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 0e515db8d3..35d9712cb0 100644 --- a/Makefile.am +++ b/Makefile.am @@ -236,6 +236,11 @@ NFACCT_PLUGIN_FILES = \ $(LIBNETDATA_FILES) \ $(NULL) +SLABINFO_PLUGIN_FILES = \ + collectors/slabinfo.plugin/slabinfo.c \ + $(LIBNETDATA_FILES) + $(NULL) + XENSTAT_PLUGIN_FILES = \ collectors/xenstat.plugin/xenstat_plugin.c \ $(LIBNETDATA_FILES) \ @@ -600,6 +605,14 @@ if ENABLE_PLUGIN_PERF $(NULL) endif +if ENABLE_PLUGIN_SLABINFO + plugins_PROGRAMS += slabinfo.plugin + slabinfo_plugin_SOURCES = $(SLABINFO_PLUGIN_FILES) + slabinfo_plugin_LDADD = \ + $(NETDATA_COMMON_LIBS) \ + $(NULL) +endif + if ENABLE_BACKEND_KINESIS netdata_SOURCES += $(KINESIS_BACKEND_FILES) netdata_LDADD += $(OPTIONAL_KINESIS_LIBS) -- cgit v1.2.3