RFE: procps tools should support lxc

Bug #1424253 reported by Jens Elkner
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Invalid
Undecided
Unassigned
procps (Ubuntu)
New
Undecided
Unassigned

Bug Description

Container management/monitoring is currently a pain, because procps do not support container, i.e. there is no way to tell the tools to "filter" the output wrt. a certain zone or to add a column, which shows the zone name a process belongs to.

E.g. for what is needed:
{ps|pgrep|pkill|top} ... -z $myzone
# show zone name as well
{ps|top} -Z

Revision history for this message
Serge Hallyn (serge-hallyn) wrote : Re: [Bug 1424253] [NEW] RFE: procps tools should support lxc

You can use /proc/pid/ns and /proc/pid/cgroup to group results into
containers. One example shown today on the lxc-users mailing list is

ps -eo pidns,cgroup:50,pid,user,args --sort pidns

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Seems like the work here is in procps. Marking as such.

Changed in lxc (Ubuntu):
status: New → Invalid
Revision history for this message
Jens Elkner (jelmd) wrote :

Actually that's not the same at all, because $cgroup != $lxc_name . Your workaround is absolutely user UNfriendly, i.e. still hard to read and for casual users inconvinient, because one needs supply all that many format options ...

Anyway, I agree, that these utils should support such things out of the box, but 'til than, it remains a distribution thing.

Revision history for this message
jim warner (warnerjc) wrote :

Just thought I'd let you know that procps-ng-3.3.11 was released today.

Among several bug fixes, LXC support was added to top and ps.

The source ca be found at:
https://gitlab.com/procps-ng/procps

And a dist tarball is available at:
http://sourceforge.net/projects/procps-ng/files/Production/

The project has a mailing list at:
http://www.freelists.org/archive/procps/

Regards,
Jim

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.