Package: procps Version: 1:3.3.3-2 Severity: normal Tags: upstream Dear Maintainer,
I need to sort the output by the "cgroup" column, and try this command: ps axk +cgroup o user,pid,cgroup,%cpu,%mem,vsz,rss,stat,time,command As result, the processes are still sorted by gid only and not by cgroup. I tried the alternate option '-O' and the "POSIX" locale with no better result. As a side note: It would be nice to see the name of the cgroup at the beginning of the column, which is not visible at all here, because of obvious "raw" citation from the /proc filesystem: It appears at position ~35 which is outside of reasonable output column lengths. Sample output (shortened, omissions at "..." lines): USER PID CGROUP %CPU %MEM VSZ RSS STAT TIME COMMAND root 1 - 0.0 0.0 10636 796 Ss 00:00:00 init [2] root 2 - 0.0 0.0 0 0 S 00:00:00 [kthreadd] ... root 2616 1:perf_event,blkio,net_cls, 0.0 0.0 10636 796 Ss 00:00:00 init [2] root 2617 - 0.0 0.0 21368 888 S 00:00:00 udevd --daemon root 2618 - 0.0 0.0 21368 888 S 00:00:00 udevd --daemon ... www-data 4034 1:perf_event,blkio,net_cls, 0.0 0.0 64620 1620 S 00:00:00 nginx: worker process www-data 4035 1:perf_event,blkio,net_cls, 0.0 0.0 64620 1620 S 00:00:00 nginx: worker process www-data 4037 1:perf_event,blkio,net_cls, 0.0 0.0 64620 1620 S 00:00:00 nginx: worker process www-data 4038 1:perf_event,blkio,net_cls, 0.0 0.0 64620 1620 S 00:00:00 nginx: worker process ... root 5664 - 0.0 0.0 18844 1320 R+ 00:00:00 ps axk +cgroup o user,pid,cgroup,%cpu,%mem,vsz,rss,stat,time,command -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core) Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages procps depends on: ii initscripts 2.88dsf-32 ii libc6 2.13-35 ii libncurses5 5.9-10 ii libncursesw5 5.9-10 ii libprocps0 1:3.3.3-2 ii libtinfo5 5.9-10 ii lsb-base 4.1+Debian7 Versions of packages procps recommends: ii psmisc 22.19-1 procps suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org