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
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
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
Hi,
Thanks for the reply.
What does %MEM column in the output resembles?
Thanks.
Download or compile the latest version of top.
Hi,
I believe top command is equivalent to prstat which gives CPU usage n& not Memory.Correct me if I'm wrong.
Thanks.
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
Hi,
Agreed top will show Phy Mem in the summary section but how can we get to know the usage by each Process?
Thanks.
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. ;-)
> 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