Is it possible to format ps RSS (memory) output to be more human friendly?

Posted by metasoarous on Super User See other posts from Super User or by metasoarous
Published on 2013-10-24T22:12:29Z Indexed on 2013/10/25 3:59 UTC
Read the original article Hit count: 357

Filed under:
|
|
|
|

Executing ps ux returns a nice list of process information, easy to grep through or watch. However, there doesn't seem to be much flexibility in the memory usage output; the RSS (resident set size) is printed in kB, which for large processes is hard to read (especially at a glance), and %MEM gives 100 × RSSsystem_memory.

The du utility has a lovely -h flag which prints space in a more user friendly fashion. I have not been able to find anything equivalent for ps. Is there a special formatting trick that can accomplish this?

© Super User or respective owner

Related posts about linux

Related posts about unix