*See script below for a detailed answer *. Beware that it may take time
on a large memory footprint.

mdb -k <<!
::memstat
!

*Output will be similar to  :

*Page Summary                Pages                MB  %Tot
------------     ----------------  ----------------  ----
Kernel                      10270                80    8%
Anon                        43863               342   34%
Exec and libs                6253                48    5%
Page cache                   2362                18    2%
Free (cachelist)            64569               504   50%
Free (freelist)              1866                14    1%

Total                      129183              1009
Physical                   127322               994



regards




<http://www.sun.com>    *Benoit Chaffanjon*

Sun Solution Center
Customer benchmarking
12 Network Circle
Menlo park CA 94025 - USA

Office : 1 - (650) 786-6177
Cell    : 1 - (510) 396-0104
Blog   : http://blogs.sun.com/MrBenchmark

"De la Tactique dans la Pratique"
-Bourvil


This email may contain confidential and privileged material for the sole
use of the intended recipient.
Any review or distribution by others is strictly prohibited.
If you are not the intended recipient please contact the sender and
delete all copies.





michael schuster wrote:

>Ramesh Polepalli wrote:
>  
>
>>Hi,
>>
>>Can I use DTrace to determine memory status?
>>
>>1.Total Physical Memory, Used Memory.
>>2.Total Swap Space and Used Swap Space.
>>
>>I did find few DTrace scripts but had too much
>>in them and I am unable to chop off unwanted
>>lines of code due to lack of knowledge.
>>
>>It will be very helpful if some one can share
>>the piece of code that serves my purpose as
>>mentioned above.
>>    
>>
>
>DTrace may be a hammer to your screw -- I'd suggest you look at tools 
>better suited, such as vmstat or kstat.
>
>HTH
>Michael
>  
>
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to