New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.


Comments
Any particular reason why you are requesting this information?
I'm trying to create simple script which will detect valid memory amount (see http://www.lowendtalk.com/discussion/1574/xen-pv-wrong-memory-amount#Item_26). I've only Xen/KVM VMs available for testing that's why I need more data.
OpenVZ with vSwap:
[root@italy ~]# cat /proc/meminfo MemTotal: 196608 kB MemFree: 152020 kB Cached: 23352 kB Active: 21456 kB Inactive: 15920 kB Active(anon): 7740 kB Inactive(anon): 6284 kB Active(file): 13716 kB Inactive(file): 9636 kB Unevictable: 0 kB Mlocked: 0 kB SwapTotal: 196608 kB SwapFree: 157668 kB Dirty: 16 kB Writeback: 0 kB AnonPages: 14024 kB Shmem: 2592 kB Slab: 7112 kB SReclaimable: 2244 kB SUnreclaim: 4868 kB [root@italy ~]# [root@italy ~]# free -m total used free shared buffers cached Mem: 192 43 148 0 0 22 -/+ buffers/cache: 20 171 Swap: 192 38 153 [root@italy ~]# [root@italy ~]# vmstat -s 196608 total memory 44584 used memory 21476 active memory 15944 inactive memory 152024 free memory 0 buffer memory 23376 swap cache 196608 total swap 38940 used swap 157668 free swap 2728125 non-nice user cpu ticks 16260 nice user cpu ticks 3271656 system cpu ticks 7579762310 idle cpu ticks 19703 IO-wait cpu ticks 0 IRQ cpu ticks 0 softirq cpu ticks 161072 stolen cpu ticks 4487980 pages paged in 26810204 pages paged out 2144415 pages swapped in 2361669 pages swapped out 0 interrupts 871532767 CPU context switches 1337325646 boot time 798024527 forksOpenVZ with burst memory
[root@fl ~]# cat /proc/meminfo MemTotal: 196608 kB MemFree: 177780 kB Buffers: 0 kB Cached: 0 kB SwapCached: 0 kB Active: 0 kB Inactive: 0 kB HighTotal: 0 kB HighFree: 0 kB LowTotal: 196608 kB LowFree: 177780 kB SwapTotal: 0 kB SwapFree: 0 kB Dirty: 0 kB Writeback: 0 kB AnonPages: 0 kB Mapped: 0 kB Slab: 0 kB PageTables: 0 kB NFS_Unstable: 0 kB Bounce: 0 kB CommitLimit: 0 kB Committed_AS: 0 kB VmallocTotal: 0 kB VmallocUsed: 0 kB VmallocChunk: 0 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 Hugepagesize: 2048 kB [root@fl ~]# [root@fl ~]# free -m total used free shared buffers cached Mem: 192 18 173 0 0 0 -/+ buffers/cache: 18 173 Swap: 0 0 0 [root@fl ~]# [root@fl ~]# vmstat -s 196608 total memory 19024 used memory 0 active memory 0 inactive memory 177584 free memory 0 buffer memory 0 swap cache 0 total swap 0 used swap 0 free swap 141294 non-nice user cpu ticks 2743 nice user cpu ticks 256432 system cpu ticks 108514040 idle cpu ticks 4071 IO-wait cpu ticks 0 IRQ cpu ticks 0 softirq cpu ticks 0 stolen cpu ticks 424180 pages paged in 1977524 pages paged out 0 pages swapped in 0 pages swapped out 0 interrupts 2430013323 CPU context switches 1344990613 boot time 109125622 forks256MB/512MB Burst OpenVZ:
[root@ny ~]# free -m total used free shared buffers cached Mem: 512 71 440 0 0 0 -/+ buffers/cache: 71 440 Swap: 0 0 0[root@ny ~]# vmstat -s 524288 K total memory 72804 K used memory 0 K active memory 0 K inactive memory 451484 K free memory 0 K buffer memory 0 K swap cache 0 K total swap 0 K used swap 0 K free swap 1092527 non-nice user cpu ticks 0 nice user cpu ticks 309361 system cpu ticks 538809307 idle cpu ticks 114225 IO-wait cpu ticks 0 IRQ cpu ticks 0 softirq cpu ticks 0 stolen cpu ticks 2792840 pages paged in 31709176 pages paged out 0 pages swapped in 0 pages swapped out 0 interrupts 1762757267 CPU context switches 1344664094 boot time 434324356 forksHere's a node, OpenVZ on kernel 2.6.32:
free -m total used free shared buffers cached Mem: 32015 31826 189 0 5316 11356 -/+ buffers/cache: 15153 16861 Swap: 2037 1496 541vmstat -s 32783676 total memory 32617376 used memory 17564988 active memory 9335716 inactive memory 166300 free memory 5440216 buffer memory 11665832 swap cache 2086904 total swap 1534640 used swap 552264 free swap 66427942 non-nice user cpu ticks 12232332 nice user cpu ticks 66688012 system cpu ticks 348870998 idle cpu ticks 58973053 IO-wait cpu ticks 2445 IRQ cpu ticks 9245451 softirq cpu ticks 0 stolen cpu ticks 3163765325 pages paged in 1561797732 pages paged out 779578 pages swapped in 469918 pages swapped out 1558578094 interrupts 2735490641 CPU context switches 1345326565 boot time 94002803 forksHere's another node, OpenVZ on kernel 2.6.18:
free -m total used free shared buffers cached Mem: 32111 6678 25433 0 2069 3710 -/+ buffers/cache: 898 31212 Swap: 352 0 352vmstat -s 32882448 total memory 6838288 used memory 3328532 active memory 2696664 inactive memory 26044160 free memory 2118792 buffer memory 3799576 swap cache 361452 total swap 188 used swap 361264 free swap 272173932 non-nice user cpu ticks 15399546 nice user cpu ticks 223286936 system cpu ticks 1615049371 idle cpu ticks 23298094 IO-wait cpu ticks 364024 IRQ cpu ticks 72873494 softirq cpu ticks 0 stolen cpu ticks 1183353370 pages paged in 2614669400 pages paged out 1318 pages swapped in 6845 pages swapped out 1701142494 interrupts 944965669 CPU context switches 1344225942 boot time 221418484 forksopenvz 128/256 "burst" debian6
free -m total used free shared buffers cached Mem: 256 29 226 0 0 0 -/+ buffers/cache: 29 226 Swap: 0 0 0vmstat -s 262144 K total memory 29908 K used memory 0 K active memory 0 K inactive memory 232236 K free memory 0 K buffer memory 0 K swap cache 0 K total swap 0 K used swap 0 K free swap 4745 non-nice user cpu ticks 0 nice user cpu ticks 6568 system cpu ticks 54508330 idle cpu ticks 31185 IO-wait cpu ticks 0 IRQ cpu ticks 0 softirq cpu ticks 0 stolen cpu ticks 1366996 pages paged in 4130228 pages paged out 0 pages swapped in 0 pages swapped out 0 interrupts 3191970067 CPU context switches 1345607417 boot time 39133162 forks@bamnael Use
<pre> </pre>256 RAM/512 Swap | XEN HV | Debian 6
# cat /proc/meminfo# free -mtotal used free shared buffers cached Mem: 248 222 25 0 7 76 -/+ buffers/cache: 138 110 Swap: 484 72 412# vmstat -s254064 K total memory 227800 K used memory 90504 K active memory 119712 K inactive memory 26264 K free memory 7504 K buffer memory 78852 K swap cache 496632 K total swap 73816 K used swap 422816 K free swap 2685616 non-nice user cpu ticks 18066 nice user cpu ticks 1496108 system cpu ticks 1120197091 idle cpu ticks 2618522 IO-wait cpu ticks 481927 IRQ cpu ticks 300740 softirq cpu ticks 0 stolen cpu ticks 55390807 pages paged in 47427532 pages paged out 712522 pages swapped in 467585 pages swapped out 281073562 interrupts 304510863 CPU context switches 1340457752 boot time 897235 forksOpenVZ | Ubuntu 10.04.4 LTS
cat /proc/meminfo
free -m
vmstat -s
1048576 K total memory 1046260 K used memory 888204 K active memory 133024 K inactive memory 2316 K free memory 0 K buffer memory 603736 K swap cache 524288 K total swap 1052 K used swap 523236 K free swap 122838475 non-nice user cpu ticks 0 nice user cpu ticks 18192305 system cpu ticks 1839116909 idle cpu ticks 260608 IO-wait cpu ticks 0 IRQ cpu ticks 0 softirq cpu ticks 5291640 stolen cpu ticks 14851468 pages paged in 53509564 pages paged out 95471 pages swapped in 100873 pages swapped out 0 interrupts 96674272 CPU context switches 1341088983 boot time 108400316 forks root@ita:~# vmstat -s 1048576 K total memory 1046244 K used memory 888248 K active memory 132996 K inactive memory 2332 K free memory 0 K buffer memory 603748 K swap cache 524288 K total swap 1052 K used swap 523236 K free swap 122838582 non-nice user cpu ticks 0 nice user cpu ticks 18192313 system cpu ticks 1839117953 idle cpu ticks 260608 IO-wait cpu ticks 0 IRQ cpu ticks 0 softirq cpu ticks 5291642 stolen cpu ticks 14851468 pages paged in 53509608 pages paged out 95471 pages swapped in 100873 pages swapped out 0 interrupts 96807162 CPU context switches 1341088983 boot time 108400322 forks