Dmitry Degrave wrote:
> In pre-ZFS era, we had observable parameters like scan rate and anonymous 
> page-in/-out counters to discover situations when a system experiences a lack 
> of physical memory. With ZFS, it's difficult to use mentioned parameters to 
> figure out situations like that. Has someone any idea what we can use for the 
> same purpose now ?
> 

If I understood right, you are looking to see the amount of free 
physical memory on a system running Solaris 10+. ZFS uses kernel memory 
so you can easily check with mdb.

Run mdb -k as root and at the command prompt try:

::memstat, like below:

# mdb -k
Loading modules: [ unix genunix specfs dtrace cpu.AuthenticAMD.15 uppc 
pcplusmp scsi_vhci ufs ip hook neti sctp arp usba s1394 fctl nca lofs 
zfs random md audiosup cpc fcp fcip crypto logindmux ptm sppp ipc nfs ]
 > ::memstat

Page Summary                Pages                MB  %Tot
------------     ----------------  ----------------  ----
Kernel                     316214              1235   30%
Anon                       373718              1459   36%
Exec and libs               27512               107    3%
Page cache                  28454               111    3%
Free (cachelist)            50557               197    5%
Free (freelist)            249959               976   24%

Total                     1046414              4087
Physical                  1046413

there you will have a nice report about memory consumers.


stefan

Reply via email to