aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShane Bradley <sbradley@redhat.com>2016-04-11 10:33:28 -0400
committerBryn M. Reeves <bmr@redhat.com>2016-06-03 15:13:55 +0100
commit25ab9f3a25337343d00f01abe6c187c062e89c5d (patch)
treec96ab5dd62c2fccd1f9fdcb7a3fe53e7fb354510
parent00d9f31d19518661fafd80f03b3f1598a14b08ef (diff)
downloadsos-25ab9f3a25337343d00f01abe6c187c062e89c5d.tar.gz
[memory] Capture status of hugepages
Determing if hugepages is enabled is useful to know when trouble-shooting applications that can take advantage of huge pages. Fixes: #798 Signed-off-by: Shane Bradley <sbradley@redhat.com>
-rw-r--r--sos/plugins/memory.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sos/plugins/memory.py b/sos/plugins/memory.py
index 710f73f1..8c377ea4 100644
--- a/sos/plugins/memory.py
+++ b/sos/plugins/memory.py
@@ -31,7 +31,8 @@ class Memory(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
"/proc/slabinfo",
"/proc/pagetypeinfo",
"/proc/vmallocinfo",
- "/sys/kernel/mm/ksm"
+ "/sys/kernel/mm/ksm",
+ "/sys/kernel/mm/transparent_hugepage/enabled"
])
self.add_cmd_output("free", root_symlink="free")
self.add_cmd_output([