aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Herbolt <lherbolt@redhat.com>2017-01-24 15:58:01 +0100
committerBryn M. Reeves <bmr@redhat.com>2017-02-24 12:19:03 +0000
commite0efadb736931a720483e5f29fe384b7cab0a0ba (patch)
tree7c57305b66f0c35f5fc34f2b681803b70df79c3a
parentce4cf2407bbc270472d8cc6fb434e9a1e7f76e38 (diff)
downloadsos-e0efadb736931a720483e5f29fe384b7cab0a0ba.tar.gz
[numa] collect basic numa info from /sys by default
Resolves: #865. Signed-off-by: Lukas Herbolt <lherbolt@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
-rw-r--r--sos/plugins/numa.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/sos/plugins/numa.py b/sos/plugins/numa.py
index e06a32ee..dde8c612 100644
--- a/sos/plugins/numa.py
+++ b/sos/plugins/numa.py
@@ -42,4 +42,11 @@ class Numa(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
"numactl --hardware",
])
+ numa_path = "/sys/devices/system/node"
+ self.add_copy_spec([
+ os.path.join(numa_path, "node*/meminfo")
+ os.path.join(numa_path, "node*/cpulist")
+ os.path.join(numa_path, "node*/distance")
+ ])
+
# vim: set et ts=4 sw=4 :