Hello,<br><br>I have some questions about KSM and SWAP.<br>We run 13 vm with debian6. Most of them run at least a LAMP server plus eventually some other services (ldap, nagios, postfix...)<br>12GB of ram is allocated for VMs. 30GB are used over 32GB available because of buffered and cached memory. So proxmox start swapping...<br>
KSM is running but does not seems doing its job...pages_sharing is always at 0<br>I think it should shared some pages, all virtualized OSes are similar and runs similar services<br><br>Is that normal? How to get KSM working? <br>
Should I disable swap on proxmox (swappiness=0)<br>Can you give other advices and best practises about memory management and overcommitting ?<br><br>Thanks !<br><br># qm list<br> VMID NAME STATUS MEM(MB) BOOTDISK(GB) PID <br>
101 debian6 running 1024 10.00 184793 <br> 102 debian6 running 1024 10.00 3155 <br> 103 freebsd running 512 4.00 220229 <br> 104 debian6 running 1024 50.00 3132 <br>
105 debian6 running 256 2.00 145917 <br> 106 debian6 running 2048 100.00 147030 <br> 107 debian6 running 1024 20.00 6616 <br> 108 debian6 running 2048 5.00 222889 <br>
109 debian6 running 256 5.00 7042 <br> 110 debian6 running 512 8.00 8388 <br> 111 debian6 running 256 5.00 8443 <br> 112 debian6 running 2048 300.00 152936 <br>
114 debian6 running 256 4.00 8552 <br> 116 debian6 running 512 5.00 8795<br><br># free -m<br> total used free shared buffers cached<br>Mem: 32172 30455 1716 0 394 17410<br>
-/+ buffers/cache: 12650 19521<br>Swap: 1027 794 232<br><br># cat /sys/kernel/mm/ksm/pages_sharing<br>0<br><br># grep KSM /boot/config-`uname -r`<br>CONFIG_KSM=y<br><br># /etc/init.d/ksmtuned status<br>
KSM control daemon is running..<br><br># pveversion -v<br>pve-manager: 1.9-26 (pve-manager/1.9/6567)<br>running kernel: 2.6.32-6-pve<br>proxmox-ve-2.6.32: 1.9-55+ovzfix-2<br>pve-kernel-2.6.32-6-pve: 2.6.32-55+ovzfix-1<br>
pve-kernel-2.6.32-7-pve: 2.6.32-55+ovzfix-2<br>qemu-server: 1.1-32<br>pve-firmware: 1.0-15<br>libpve-storage-perl: 1.0-19<br>vncterm: 0.9-2<br>vzctl: 3.0.29-3pve1<br>vzdump: 1.2-16<br>vzprocps: 2.0.11-2<br>vzquota: 3.0.11-1dso1<br>
pve-qemu-kvm: 0.15.0-2<br>ksm-control-daemon: 1.0-6<br>