aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJake Hunsaker <jhunsake@redhat.com>2019-02-21 14:05:24 -0500
committerBryn M. Reeves <bmr@redhat.com>2019-03-21 10:18:53 +0000
commit833dab139cccf21592b4a38d89cd35172f22d184 (patch)
treed2819c5c8d0a9e00863deafc169dbd9716cff5b9
parent0db185009db0721ac41aec29b153d1bcb767df4b (diff)
downloadsos-833dab139cccf21592b4a38d89cd35172f22d184.tar.gz
[memory] Add lsmem collection
Adds collection of lsmem output for all memory blocks to the memory plugin. Resolves: #1573 Signed-off-by: Jake Hunsaker <jhunsake@redhat.com> Signed-off-by: Bryn M. Reeves <bmr@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 3bfb43f0..48ba150b 100644
--- a/sos/plugins/memory.py
+++ b/sos/plugins/memory.py
@@ -32,7 +32,8 @@ class Memory(Plugin, RedHatPlugin, DebianPlugin, UbuntuPlugin):
self.add_cmd_output([
"free -m",
"swapon --bytes --show",
- "swapon --summary --verbose"
+ "swapon --summary --verbose",
+ "lsmem -a -o RANGE,SIZE,STATE,REMOVABLE,ZONES,NODE,BLOCK"
])
# vim: set et ts=4 sw=4 :