On Wednesday 27 February 2002 10:20 am, Jan dela Cruz wrote:
> hello.  any command that would show the contents of the current usage of
> memory of ALL the current programs running and their memory usage on a
> redhat linux box?
>
> 'top' doesn't show much since its only limited to 25 lines (?) and CPU
> process is what it shows.
> 'cat /proc/meminfo' doesn't show the programs and their usage.  same as
> 'free'.
> 'ps ax -l|more' has an SZ field (size?) but i'm not sure whether that's in
> megabytes, kilobytes or just bytes.
>
> tnx in advance.

ps axo rss,pid,command

or pipe it to

| sort -g

to have it sorted

you can mix n match the output coz i made it to a resident set size, but you 
can also look at virtual sizes as well as shared memory sizes.  i'm sure man 
ps would be more than helpful

or if top's data is sufficient then you can do a...

top n 1 b

which gives you the physical memory used as well as the shared mem.

-- 
Deds Castillo
Infiniteinfo Philippines
Hiroshima '45, Chernobyl '86, Windows 95/98/2K
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to