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

Flemming Madsen busybox at themadsens.dk
Tue Sep 20 18:37:28 UTC 2011


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 02-ps-long-output.patch
Type: text/x-patch
Size: 7280 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20110920/e6d30faf/attachment.bin>


More information about the busybox mailing list