Busybox – how to list process priority

busyboxps

How to list process priority on an embedded linux with busybox?

Best Answer

Busybox can be compiled with ENABLE_FEATURE_PS_ADDITIONAL_COLUMNS which will enable nice among others. Then you can do, for example:

busybox ps -o pid,nice,user,args

POSIX

  • user, group, comm, args, pid, ppid, pgid, tty, vsz

ENABLE_FEATURE_PS_TIME

  • etime, time

ENABLE_FEATURE_PS_ADDITIONAL_COLUMNS

  • nice, rgroup, ruser, pcpu (although pcpu seems to be commented out)

Non-POSIX

  • rss

ENABLE_SELINUX

  • label