PATCH: FEATURE_PS_LONG: A new 'l' option to ps:

walter harms wharms at bfs.de
Wed Sep 21 07:40:39 UTC 2011



Am 20.09.2011 22:22, schrieb Joakim Tjernlund:
> 
>> 02-ps-long-output.patch
>> ----------
>>
>> FEATURE_PS_LONG: A new 'l' option to ps:
>>
>>    PID  PPID USER   VSZ   RSS STAT START     TIME   TTY COMMAND
>>      1     0 root  1236   416 S    Sep15  0:00:05    -  init
>>      2     0 root     0     0 SW<  Sep15  0:00:00    -  [kthreadd]
>>   1227     1 root  1236   376 S    Sep15  0:00:00 ttyS4 /sbin/getty -L
>> ttyS4 115200 vt100
>>   2196   521 root  1388   752 S    16:04  0:00:09    -  /usr/sbin/dropbear -s
>>   2197  2196 root  1248   484 S    16:04  0:00:00  pts3 -sh
>>   2201  2197 root  1228   412 R    16:04  0:00:00  pts3 ps l
>>
>> I often find myself needing the START and CPU time of a process.
>> Parent PID and TTY are also nice info.
>> RSS gives a better hint at memory usage than VSZ
>>
>> This will normally require a desktop build for the '-o' option I dont need
>> every combination, but honestly thinks that the above are useful, and would
>> be to others as well.
> 
> A big me too, thanks :)
> 

i did not try the patch (yet) but ..
at what version of ps did you model the output ?
using:
$ps --version
procps version 3.2.7

with l shows for me:
F   UID   PID  PPID PRI  NI    VSZ   RSS WCHAN  STAT TTY        TIME COMMAND

re,
 wh



More information about the busybox mailing list