aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Jansky <jjansky@redhat.com>2022-03-21 10:55:28 +0100
committerJake Hunsaker <jhunsake@redhat.com>2022-03-22 12:25:57 -0400
commit39ef994a18d7754da2ed09cc996a32ef52a8d404 (patch)
tree0655296cbb133ff67a147b8d88e4677e396bda9f
parent61a935786e34713cc103bfb27a2cbef75ea8146e (diff)
downloadsos-39ef994a18d7754da2ed09cc996a32ef52a8d404.tar.gz
[cgroups] not collect memory.kmem.slabinfo
Forbid collection of memory.kmem.slabinfo which in case of system with lot of containers may cause stuck kworker. Resolves: #2889 Signed-off-by: Jan Jansky <jjansky@redhat.com>
-rw-r--r--sos/report/plugins/cgroups.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sos/report/plugins/cgroups.py b/sos/report/plugins/cgroups.py
index 6b55c80a..6e2a6918 100644
--- a/sos/report/plugins/cgroups.py
+++ b/sos/report/plugins/cgroups.py
@@ -30,6 +30,9 @@ class Cgroups(Plugin, DebianPlugin, UbuntuPlugin, CosPlugin):
])
self.add_cmd_output("systemd-cgls")
+ self.add_forbidden_path(
+ "/sys/fs/cgroup/memory/**/memory.kmem.slabinfo",
+ recursive=True)
return