sosreport is taking a long time on a system which has numerous namespaces or files.

Solution Verified - Updated -

Issue

  • Generating a sosreport on our systems takes on average between 5-8 hours. However, this should not take more than 15 minutes. When deactivating the cgroups plugin, it takes just 6 minutes to generate a normal sosreport.
  • When running sosreport with the cgroup plugin enabled on OpenShift Node, we can see that cgroup plugin takes a lot of time to complete.
[plugin: cgroups] recursively adding 'cgroup.event_control' from '/ sys / fs / cgroup / systemd'
[plugin: cgroups] copying path '/sys/fs/cgroup/systemd/cgroup.event_control' to archive: '/ sys / fs / cgroup / systemd / cgroup.event_control'
[plugin: cgroups] recursively adding 'notify_on_release' from '/ sys / fs / cgroup / systemd'
[plugin: cgroups] copying path '/ sys / fs / cgroup / systemd / notify_on_release' to archive: '/ sys / fs / cgroup / systemd / notify_on_release'
[plugin: cgroups] recursively adding 'cgroup.procs' from '/ sys / fs / cgroup / systemd'
[plugin: cgroups] copying path '/sys/fs/cgroup/systemd/cgroup.procs' to archive: '/ sys / fs / cgroup / systemd / cgroup.procs'
[plugin: cgroups] recursively adding 'tasks' from '/ sys / fs / cgroup / systemd'
[plugin: cgroups] copying path '/ sys / fs / cgroup / systemd / tasks' to archive: '/ sys / fs / cgroup / systemd / tasks'
[plugin: cgroups] unpacked command tuple: ('systemd-cgls', 'None', 'None', 300, 'True', 'True', 'None', 'None', 'False 25')
[plugin: cgroups] collecting output of 'systemd-cgls'
[plugin: cgroups] collected output of 'systemd-cgls' in 0.325278997421
[plugin: cgroups] collected plugin 'cgroups' in 307.146094084
  • sosreport collects so many files (300k files) and it takes so long time like 7 hours.

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat OpenShift Container Platform 3.x
  • Red Hat OpenStack Platform 13

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content