Operating System - HP-UX
1850210 Members
1945 Online
104050 Solutions
New Discussion

Re: memory listing in SAM

 
Praveen Bezawada
Respected Contributor

memory listing in SAM

HI
In system properties listing in sam ,
the memory list as
1)physical memory which is the physical RAM size
2) Real Memory ???
Active ??
Free ??
3) Virtual Memory swap used + ram
Active swap active + ram
Free swap used- swap active + ram
4) Swap Size of device swap
Used used
Free used
But the size of virtual memory is less than what we get from the calculation above. What does sam actually show.
Rgds
Praveen
2 REPLIES 2
Vincenzo Restuccia
Honored Contributor
eran maor
Honored Contributor

Re: memory listing in SAM

Hi

The following equations are for Active Real Memory and Total Real Memory:

Active Real Memory is computed by:

(pst_dynamic.psd_arm * pst_static.page_size * 0.000977) + 0.05

Total Real Memory is computed by:

(pst_dynamic.psd_rm * pst_static.page_size * 0.000977) + 0.05

Sam calculates the Real Memory values by calling the system commands pstat_getstatic and pstat_getdynamic. You can reference the man page for pstat_getstatic (2), pstat_getdynamic (2), and /usr/include/sys/pstat.h.

love computers