Operating System - HP-UX
1752800 Members
6078 Online
108789 Solutions
New Discussion юеВ

Re: vmstat (correct interpretation)

 
SOLVED
Go to solution
cfeitosa
Frequent Advisor

vmstat (correct interpretation)

Hi!

I'm using B.11.11.

vmstat
Memory:
avm: 717500
free: 625727

Multiply it by 4096 to get size in bytes. So, is it correct:

625727 * 4096 / 1024 / 1024 = 2444MB ??

This value is real "free memory"?

Please, could someone give me a help?

Thanks
3 REPLIES 3
Yogeeraj_1
Honored Contributor
Solution

Re: vmstat (correct interpretation)

hi,

try glance -m


e.g.
Total VM : 1.21gb Sys Mem : 1.27gb User Mem: 455.9mb Phys Mem: 8.00gb
Active VM: 888.5mb Buf Cache: 409.6mb Free Mem: 5.88gb


$ vmstat -n
VM
memory page faults
avm free re at pi po fr de sr in sy cs
221854 1549166 26 4 0 0 0 0 0 419 19119 234
CPU
cpu procs
us sy id r b w
9 2 89 1 0 0
9 2 89
$


vmstat output is not straight-forward. The value you have computed for free memory is ok.


hope this helps!
kind regards
yogeeraj

No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Yogeeraj_1
Honored Contributor

Re: vmstat (correct interpretation)

hi again.

below an extract from man vmstat:


...
memory

Information about the usage of virtual and real memory. Virtual pages are considered active if they belong to processes that are running or have run in the last 20 seconds.

avm Active virtual pages
free Size of the free list

...


kind regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Adam Winebaugh
Regular Advisor

Re: vmstat (correct interpretation)

cfeitosa,
I always use glance for MEM usage and reporting. It gives you "real" information as opposed to top or vmstat or even swapinfo, they can/are very misleading as to the output of the information.

Take care,
Adam