Bug 593267

Summary: patch for procps cgroup display: supress root group
Product: [Fedora] Fedora Reporter: Daniel Novotny <dnovotny>
Component: procpsAssignee: Daniel Novotny <dnovotny>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: dnovotny, jgorig, lpoetter
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-05-18 12:02:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
the patch none

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