]> git.ipfire.org Git - thirdparty/systemd.git/commit
cgtop: recursively count cgroup member tasks
authorLennart Poettering <lennart@poettering.net>
Sun, 30 Aug 2015 13:11:35 +0000 (15:11 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 31 Aug 2015 11:20:44 +0000 (13:20 +0200)
commit3cb5beea0c484011fffbd50ae0aaaf71cc699eef
treeff001ea571f4207cb66f5709ea1a823beec756e9
parent41ba8b6e69ad79b6c8e603ac970720665c88a363
cgtop: recursively count cgroup member tasks

When showing the number of tasks in a cgroup, recursively count tasks in
child cgroups and include them in the number. This ensures that the
number of tasks is cummulative the same way as memory, cpu and IO
resources are.

Old behaviour can be restored by passing the new --recursive=no switch.
man/systemd-cgtop.xml
src/cgtop/cgtop.c