Which Process is using how much Physical Memory in Solaris 8?

Hi,

In Solaris 5.8 Sparc which OS command to use to list all process with the amount of Physical Memory they are using ?

Thanks

[146 byte] By [K79a] at [2007-11-27 10:12:59]
# 1

If you're hoping to see exact amount of RAM memory pages in use, it may be tough - but you can make some determinations based on how much swap (hard drive partitions and other swap files) is in use.

Try something like -

ps -aefo pid,ppid,pcpu,pmem,vsz,rss,args

first to see if that helps you - pay attention to the virtual size and resident set size to start with - if you're running Oracle (for instance) it has a funky way of operating and all of the Oracle shadow processes will each report a huge vsz and rss though you really only need pay attention to the largest one.

Perhaps someone else has a more elegant solution or tool to do this - but to obtain exactly how much physical RAM is in use hasn't been the most exact science in older versions of solaris. vmstat doesn't show exactly what you're looking for in the freemem column, you could install symbel and see if it gives a better look - jeff

jeffrey.sa at 2007-7-28 15:23:57 > top of Java-index,General,Maintenance...
# 2

Hi,

Thanks for the reply.

What does %MEM column in the output resembles?

Thanks.

K79a at 2007-7-28 15:23:57 > top of Java-index,General,Maintenance...
# 3

Download or compile the latest version of top.

wsandersa at 2007-7-28 15:23:57 > top of Java-index,General,Maintenance...
# 4

Hi,

I believe top command is equivalent to prstat which gives CPU usage n& not Memory.Correct me if I'm wrong.

Thanks.

K79a at 2007-7-28 15:23:57 > top of Java-index,General,Maintenance...
# 5

hi k79

[correction_mode]

top shows memory-usage in summary and also virt (size) and resident for each task

[/correction_mode]

sorry, but found only an older screenshot:http://www.unixtop.org/top-output.gif

would grant top a try. ;-)

[edith_says:]

%MEM is the used physical memory of the task in relation to the entire physical memory

[/edith]

cheers, jenny

Message was edited by:

Jenny_S

Jenny_Sa at 2007-7-28 15:23:57 > top of Java-index,General,Maintenance...
# 6

Hi,

Agreed top will show Phy Mem in the summary section but how can we get to know the usage by each Process?

Thanks.

K79a at 2007-7-28 15:23:57 > top of Java-index,General,Maintenance...
# 7

good morning, k79

you need phys. memory for _each_ process, right ?

please take look at the example screenshot: [url]http://www.unixtop.org/top-output.gif[/url]

see column 7, called "RES"

_that is_ the physical memory used by each task.

or do i understand you false ?-(

i agree, that top without options lists his default values sortet to cpu -using tasks, limited to the 24 lines of a standard console.

but using man top, you get all the options to list _all_ task, or e.g. sort by memory using or by user using etc. ;-)

please support me, if i understand you wrong.

greets, jenny

************************

the sweater of a woman fits perfect,

when the men gasp for air. ;-)

Jenny_Sa at 2007-7-28 15:23:57 > top of Java-index,General,Maintenance...
# 8

> Hi,

>

> Agreed top will show Phy Mem in the summary section

> but how can we get to know the usage by each

> Process?

What was wrong with the first response to your question which suggested using 'ps'? That shows the same information, but more easily shows a single line for each process.

--

Darren

Darren_Dunhama at 2007-7-28 15:23:57 > top of Java-index,General,Maintenance...