[SOLVED] High Virt and Res Usage in proxmox kvm (PROXMOX BUG)

setrox

Member
Aug 10, 2012
6
0
21
Samsun, Turkey
SOLVED : This is bug. If you use soundcard in vps conf. VPS is using high memory.

Hello

i have a big problem and i cant found any solution. please help me.
i have 10 vps in my dedi. 7 vps already started and i dont have any problem (6 vps win2003 + 1 vps centos)
i have another two xp vps and one w2008 vps in this dedi.if i run this vps example one XP starting, vps usage memory give high virt and res usage in shell. i put this picture. why?

This is correct ram usage

Code:
root@:~# free -m
             total       used       free     shared    buffers     cached
Mem:         32162       4085      28077          0        200        886
-/+ buffers/cache:       2998      29164
Swap:         2022        171       1851

Code:
root@:~# cat /proc/meminfo
MemTotal:       32934472 kB
MemFree:        28751740 kB
Buffers:          205152 kB
Cached:           907400 kB
SwapCached:       114448 kB
MemCommitted:    2097152 kB
VirtualSwap:       45792 kB
Active:          2671984 kB
Inactive:         958640 kB
Active(anon):    2189524 kB
Inactive(anon):   383736 kB
Active(file):     482460 kB
Inactive(file):   574904 kB
Unevictable:       61024 kB
Mlocked:           61024 kB
SwapTotal:       2071544 kB
SwapFree:        1895472 kB
Dirty:               208 kB
Writeback:             0 kB
AnonPages:       2442488 kB
Mapped:            79016 kB
Shmem:             47708 kB
Slab:             297488 kB
SReclaimable:      91016 kB
SUnreclaim:       206472 kB
KernelStack:        2880 kB
PageTables:        36616 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    18538780 kB
Committed_AS:   12588072 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      357096 kB
VmallocChunk:   34359232264 kB
HardwareCorrupted:     0 kB
AnonHugePages:         0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        7680 kB
DirectMap2M:    33538048 kB

Code:
root@:~# pveversion -v
proxmox-ve-2.6.32: 3.2-132 (running kernel: 2.6.32-31-pve)
pve-manager: 3.2-4 (running version: 3.2-4/e24a91c1)
pve-kernel-2.6.32-30-pve: 2.6.32-130
pve-kernel-2.6.32-29-pve: 2.6.32-126
pve-kernel-2.6.32-31-pve: 2.6.32-132
lvm2: 2.02.98-pve4
clvm: 2.02.98-pve4
corosync-pve: 1.4.5-1
openais-pve: 1.1.4-3
libqb0: 0.11.1-2
redhat-cluster-pve: 3.2.0-2
resource-agents-pve: 3.9.2-4
fence-agents-pve: 4.0.5-1
pve-cluster: 3.0-12
qemu-server: 3.1-16
pve-firmware: 1.1-3
libpve-common-perl: 3.0-18
libpve-access-control: 3.0-11
libpve-storage-perl: 3.0-19
pve-libspice-server1: 0.12.4-3
vncterm: 1.1-6
vzctl: 4.0-1pve5
vzprocps: 2.0.11-2
vzquota: 3.1-2
pve-qemu-kvm: 1.7-8
ksm-control-daemon: 1.1-1
glusterfs-client: 3.4.2-1

One XP vps is starting now and memory usage is very high.

kvm1.png

Code:
root@:~# free -m
             total       used       free     shared    buffers     cached
Mem:         32162      13051      19110          0        204        891
-/+ buffers/cache:      11956      20206
Swap:         2022        171       1851

Code:
root@:~# cat /proc/meminfo
MemTotal:       32934472 kB
MemFree:        18932848 kB
Buffers:          209056 kB
Cached:           912784 kB
SwapCached:       114436 kB
MemCommitted:    2097152 kB
VirtualSwap:       45760 kB
Active:         12449928 kB
Inactive:         969648 kB
Active(anon):   11965248 kB
Inactive(anon):   387696 kB
Active(file):     484680 kB
Inactive(file):   581952 kB
Unevictable:       61024 kB
Mlocked:           61024 kB
SwapTotal:       2071544 kB
SwapFree:        1895484 kB
Dirty:               280 kB
Writeback:             0 kB
AnonPages:      12221876 kB
Mapped:            79664 kB
Shmem:             47732 kB
Slab:             299352 kB
SReclaimable:      91384 kB
SUnreclaim:       207968 kB
KernelStack:        2928 kB
PageTables:        59092 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:    18538780 kB
Committed_AS:   23906052 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      361552 kB
VmallocChunk:   34359232264 kB
HardwareCorrupted:     0 kB
AnonHugePages:         0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        7680 kB
DirectMap2M:    33538048 kB

only two xp and one win2008 vps give this problem. i tested one by one. why? ballons memory driver installed all windows.

Please help me
 
Last edited:
Re: High Virt and Res Usage in proxmox kvm

Hello setrox,

how much memory did you define for the VM? Min/max or just fixed size?

Kind regrads

Mr.Holmes
 
Re: High Virt and Res Usage in proxmox kvm

i only use IDE disk and 2gb fixed and i see this problem again. ram usage very high 10-11GB page memory cache or something i dont know.
 
Re: High Virt and Res Usage in proxmox kvm

Hello setrox

i only use IDE disk and 2gb fixed and i see this problem again. ram usage very high 10-11GB page memory cache or something i dont know.

I also can imagine that´s something with caching - what happens if start more machines, do you run in trouble because of lack of resources? If not - don´t worry ;)

In principle I observed something similar in case of windows: process kvm uses much more memory that assigned to guest as seen in the "Summary" graphs (in my case the difference is 1GB). Moreover I saw that the windows graphical adapter consumes a lot.

But these are just observations - maybe somebody has a deeper knowledge how kvm works ....

All the best

Mr.Holmes
 
Re: High Virt and Res Usage in proxmox kvm

Hello setrox



I also can imagine that´s something with caching - what happens if start more machines, do you run in trouble because of lack of resources? If not - don´t worry ;)

In principle I observed something similar in case of windows: process kvm uses much more memory that assigned to guest as seen in the "Summary" graphs (in my case the difference is 1GB). Moreover I saw that the windows graphical adapter consumes a lot.

But these are just observations - maybe somebody has a deeper knowledge how kvm works ....

All the best

Mr.Holmes

i found my problem. This is a bug. i need sound card in xp. if i use

Code:
args: -device AC97,addr=0x18
or
Code:
args: -device intel-hda,id=sound5,bus=pci.0,addr=0x18 -device hda-micro,id=sound5-codec0,bus=sound5.0,cad=0 -device hda-duplex,id=sound5-codec1,bus=sound5.0,cad=1
vps using high memory. i removed this in conf file. This problem gone.

Thanks
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!