Andreas Klemm
2003-Apr-12 02:20 UTC
ps commandline option woes (-v weired formatting, more power for -m)
Two issues concerning ps commandline options. 1) -v option, cosmetic ! currently the formatting is very unsexy, makes this option rather unusable, you can't easy follow the columns 2) -m option doesn't have precedence over other options forcing the output to be memory sorted. i.e. -u option implies -r (-r = sort by current cpu usage) Now I find the output format of -u very attractive, I often use it. But I can't overwrite the sort order from "cpu usage" to "memory usage" by additionally typing in -m, ps -axum still keeps the sort order "by cpu" So, if there is an extra commandline option for "sort by mem" why doesn't it have precedence over others ??? Wouldn't it make sense ? Would a problem report be justified for 2) as well ? Andreas /// Example: to 1) ps -v, ps -va and ps -vax look really weired # ps -v PID STAT TIME SL RE PAGEIN VSZ RSS LIM TSIZ %CPU %MEM COMMAND 9865 I+ 0:00,19 421 33639 9 1576 1144 - 596 0,0 0,2 -su (tcsh) 29817 S 0:00,15 0 1192 8 1432 1008 - 596 0,0 0,2 -su (tcsh) 30003 SN 0:00,26 3 509 26 4236 3356 - 200 0,0 0,6 xterm -T fb 30151 R+ 0:00,00 0 0 0 468 240 - 188 0,0 0,0 ps -v 7489 Is 0:00,02 34210 43639 6 1268 776 - 20 0,0 0,2 login [pam] 278 Is+ 0:00,01 55492 55492 0 952 576 - 20 0,0 0,1 /usr/libexe 277 Is+ 0:00,00 55492 55492 0 952 576 - 20 0,0 0,1 /usr/libexe 279 Is+ 0:00,00 55492 55492 0 952 576 - 20 0,0 0,1 /usr/libexe Best regards Andreas /// -- Andreas Klemm - Powered by FreeBSD 4.7 Need a magic printfilter today ? -> http://www.apsfilter.org/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20030412/82541bb8/attachment-0001.bin
Tim Robbins
2003-Apr-12 03:22 UTC
ps commandline option woes (-v weired formatting, more power for -m)
On Sat, Apr 12, 2003 at 11:16:05AM +0200, Andreas Klemm wrote:> Two issues concerning ps commandline options. > > 1) -v option, cosmetic ! > currently the formatting is very unsexy, makes this option > rather unusable, you can't easy follow the columnsThis is related to bin/46232 and bin/27433. http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/46232 http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/27433 I'll commit a modified version of the patch soon. Tim