Operating System - HP-UX
1826093 Members
4422 Online
109690 Solutions
New Discussion

Monitoring memory usage with vmstat

 
SOLVED
Go to solution
Soren Hansen
New Member

Monitoring memory usage with vmstat

We uses vmstat to monitor the amount of available memory. Does anobody know if file cache is reported as used memory on the free list?
JFDI - Just Fucking Do It
4 REPLIES 4
John Palmer
Honored Contributor
Solution

Re: Monitoring memory usage with vmstat

What vmstat reports is 'free' is the number of free pages (at 4kb each). It doesn't include the buffer cache.

You can get the current size of the buffer cache (again in 4kb pages) with:-

echo bufpages/D|adb -k /stand/vmunix /dev/kmem

Regards,
John
Sridhar Bhaskarla
Honored Contributor

Re: Monitoring memory usage with vmstat

Hi Soren,

Your question - buffer cache is included in the used memory. It is not part of free list.

-Sri

You may be disappointed if you fail, but you are doomed if you don't try
Soren Hansen
New Member

Re: Monitoring memory usage with vmstat

Hi,

Thank you, that was very helpfull.

rgds.
JFDI - Just Fucking Do It
James R. Ferguson
Acclaimed Contributor

Re: Monitoring memory usage with vmstat

Hi Soren:

The buffer cache can also be observed with 'glance'. In the memory utilization graph the "B" region is the buffer cache. Also toggle the (m)emory report of glance and look at the bottom of the screen.

Regards!

...JRF...