how to sort mem process using ps command
Roberto Ragusa
mail at robertoragusa.it
Thu Jul 13 09:03:19 UTC 2006
Kaushal Shriyan wrote:
> On 7/13/06, Roberto Ragusa <mail at robertoragusa.it
>
>> I'm using this to detect memory consumers:
>>
>> ps ww -e k -rss o pid,pmem,command,rss,size,vsz|head -20
>>
>> It could be useful as a starting point.
>>
> Hi Roberto
>
> [root at e root]# ps ww -e k -rss o pid,pmem,command,rss,size,vsz|head -20
> ps: error: Obsolete k option not supported.
> usage: ps -[Unix98 options]
> ps [BSD-style options]
> ps --[GNU-style long options]
> ps --help for a command summary
> [root at e root]#
It works here on FC5 and it is documented in the man page.
$ rpm -qf `which ps`
procps-3.2.6-3.4
What about
ps ww -e --sort -rss o pid,pmem,command,rss,size,vsz|head -20
?
Best regards.
--
Roberto Ragusa mail at robertoragusa.it
More information about the users
mailing list