Memstat

From Siwiki

Jump to: navigation, search

New for Solaris 9 MemTools' prtmem command has been integrated into to mdb in Solaris 9, as the ::memstat dcmd.


# mdb -k
Loading modules: [ unix krtld genunix ip ufs_log logindmux ptm cpc sppp ipc random nfs ]
> ::memstat
Page Summary                Pages                MB  %Tot
------------     ----------------  ----------------  ----
Kernel                       4550                35   15%
Anon                        13416               104   44%
Exec and libs                9222                72   30%
Page cache                   2945                23   10%
Free (cachelist)              433                 3    1%
Free (freelist)               114                 0    0%

Total                       30680               239

BTW, if you want this functionallity for Solaris 8, you may copy memory.so into /usr/lib/mdb/kvm/sparcv9, and then using ::load memory prior to running ::memstat.

Solaris Internals
Personal tools
The Books
The Ads