Bug 593267 - patch for procps cgroup display: supress root group
Summary: patch for procps cgroup display: supress root group
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: procps
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Novotny
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-05-18 11:55 UTC by Daniel Novotny
Modified: 2010-05-18 13:07 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-05-18 12:02:48 UTC
Type: ---


Attachments (Terms of Use)
the patch (1.01 KB, patch)
2010-05-18 11:55 UTC, Daniel Novotny
no flags Details | Diff

Description Daniel Novotny 2010-05-18 11:55:24 UTC
Created attachment 414818 [details]
the patch

a patch from Lennart Poettering:

The patch changes the output of the cgroup column of ps, hiding all
hierarchies where the process is in the root group. Showing that a
process is not sorted into any group has very little value, and makes it
hard to find the actually interesting information in the ps output.

Or by example:

This is what 'ps xawf -eo pid,args,user,cgroup' shows without this patch:

 1209 sendmail: Queue runner@01:0 smmsp blkio:/;net_cls:/;freezer:/;devices:/;memory:/;cpuacct:/;cpu:/;ns:/;debug:/;cpuset:/;name=systemd:/systemd-1/sendmail.service

As we see quite a few controllers are active but not used by this
process. With this patch applied output looks like this:

 1209 sendmail: Queue runner@01:0 smmsp name=systemd:/systemd-1/sendmail.service

The cgroup hierarchies where the process is in the root group are
suppressed, and only the cgroup hierarchy where the process is actually
in a group is shown.

Comment 1 Daniel Novotny 2010-05-18 12:02:48 UTC
fixed in procps-3.2.8-10.fc14


Note You need to log in before you can comment on or make changes to this bug.