Interpreting vmstat output

Hi people,

Please can someone explain me how to interpret the output of vmstat?!?

Im asked to do a graphic report on % of CPU usage, physical memory usage as well as swap out of vmstat output. CPU usage is simple since i just have to take the rows of 'us' column, but for the physical memory and swap im quite confused, here's a sample output:

procsmemorypagedisk faultscpu

r b wswap free re mf pi po fr de sr m1 m1 m1 m2insycs us sy id

0 0 0 10767304 2848840 129 262 363 49 48 0 0 2 1 1 0 391 1834 1201 23 3 73

0 0 0 10783984 2975896 0 1 0 1 1 0 0 0 0 0 0 249 326 850 0 1 99

0 0 0 10783984 2975896 74 177 0 0 0 0 0 0 0 0 0 262 1044 852 2 1 97

0 0 0 10783984 2975880 1 12 0 0 0 0 0 0 0 0 0 251 345 833 0 1 99

0 0 0 10783984 2975872 0 0 0 0 0 0 0 0 0 0 0 248 333 830 0 1 99

How can i use those values to get % of physical memory available and swap ?

Thanks

[937 byte] By [mofogasy] at [2007-11-26 9:02:52]
# 1
The swap and memory rows show the available space (Kbytes).
mlennon at 2007-7-6 23:11:04 > top of Java-index,General,Talk to the Sysop...
# 2
> CPU usage is simple since i just have to take the rows of 'us' column,"us" and "sy" actually.Also, you could look into using SNMP to read these values instead if you install it by default.
Cailin_Coilleach at 2007-7-6 23:11:05 > top of Java-index,General,Talk to the Sysop...