On Sat, Mar 28, 2009 at 03:31:59PM -0700, Ben Rockwood wrote:
> unix:0:system_pages:pagesfree   7954235         <--- 31,816,940  (31071 MB)
Free (cachelist) + Free (freelist) = 30992 + 73 = 31065 MB
> unix:0:system_pages:pp_kernel   379926          <---  1,519,704k (1484  MB)
Kernel +  Page cache = 1473 + 47 = 1520 MB

Summing RSS counts shared memory more than once.

>From /usr/src/uts/common/os/kstat_fr.c#909
       /* 
 909          * pp_kernel represents total pages used by the kernel since the 
 910          * startup. This formula takes into account the boottime kernel 
 911          * footprint and also considers the availrmem changes because of 
 912          * user explicit page locking. 
 913          */ 

     system_pages_kstat.pp_kernel.value.ul   = (ulong_t)(physinstalled - 
 915             obp_pages - availrmem - k_anoninfo.ani_mem_resv - 
 916             anon_segkp_pages_locked - pages_locked - 
 917             pages_claimed - pages_useclaim); 
 918  

I think
These kstats are a sort of running average. memstat is a snapshot in
time.

rick


-- 

Rickey C. Weisner 
Software Development and Performance Specialist 
Principal Field Technologist
Systems Quality Office
cell phone: 615-308-1147
email: rick.weis...@sun.com
_______________________________________________
perf-discuss mailing list
perf-discuss@opensolaris.org

Reply via email to