Golly -
There are so many ways one could interpret this question.
It could be any of
- How much physical memory does my system have?
- How much free memory does my system have?
- How much physical memory has been used?
- How much physical memory is some arbitary process using in my system?
- How much physical memory is in use by the kernel?
- Where is the memory physically installed?
- Who manufactured the memory?
- Is the memory in my system married or single...
And a whole heap of others I could not bring myself to type.
So - Start by clarifying the question in your mind. What is it exactly
that you are interested in, and what problem are you trying to solve?
To answer some of the questions above:
- How much physical memory does my system have?
prtdiag
- How much free memory does my system have?
A really good question. But, first, you will have to decide for
yourself, just what is free memory? (completely unused, or
pages that are used for cache that can be freed at the drop of a hat)
Some of the answers to this question could be:
- vmstat
- mdb -k (the use ::memstat)
- How much physical memory has been used?
See question above but replaced free with used... :)
- vmstat
- mdb -k
- pmap -x (and a little work to suck out the real data...)
- How much physical memory is some arbitary process using in my system?
- pmap -x
- How much physical memory is in use by the kernel?
- mdb -k (::memstat)
- mdb -k (::kmastat - Though this will likely break your head.)
- Where is the memory physically installed?
- This one is tricky, but a combination of prtdiag and the Sun
System Handbook will give you the answer..
- Alternately, on platforms that support it, prtfru -x will
also provide much useful information.
- Who manufactured the memory? (heh heh... )
- prtfru -x
- Is the memory in my system married or single...
- This one required the input of Jenifer Lopez, or Will Smith,
and unfortunately they were both already already busy with
other clients.
I''d suggest that having a good think about what you want to know and
putting that into a more verbose form will help everyone on the list
come up with an answer that will make sense to you. The hardest part is
knowing exactly what you need to know, and which problem it is that you
are trying to solve by capturing this data. Once you understand and can
express this, I''m sure there are many folks that can help out!
Hope this helps you get a start. :)
Nathan.
karthik k wrote:
> I want to know whether there is any command in Solaris10 ,in which i can
get the
> present physical memory status of my machine.> OR
> Any Dtrace script to do the above.
>
>
> regards
> karthik
>
>
> ---------------------------------
> Yahoo! Mail
> Bring photos to life! New PhotoMail makes sharing a breeze.
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> dtrace-discuss mailing list
> dtrace-discuss at opensolaris.org