KSM not working

  • Thread starter Thread starter kameleon
  • Start date Start date
K

kameleon

Guest
I have Proxmox 1.8 installed and did the upgrade per the wiki to the newer kernel that supports KSM. I have installed 12 Windows XP SP3 machines each with 512MB ram and another one with 1GB ram. The server has 12GB ram total. The machines are taking 7GB or ram and not decreasing/deduping. I have looked at the shared pages and it is still at 0. The VM's have been rebooted, the host server has been rebooted, and I have checked that the ksmtuned is running. I even left the server running over the weekend thinking it may have needed time to dedupe. Still nothing. I am at a loss. Everything is a vanilla install on the proxmox and the vm's. Any idea what could be causing this?
 
post the output of 'pveversion -v'
 
Code:
pve-manager: 1.8-17 (pve-manager/1.8/5948)
running kernel: 2.6.35-1-pve
proxmox-ve-2.6.35: 1.8-11
pve-kernel-2.6.32-4-pve: 2.6.32-33
pve-kernel-2.6.35-1-pve: 2.6.35-11
qemu-server: 1.1-30
pve-firmware: 1.0-11
libpve-storage-perl: 1.0-17
vncterm: 0.9-2
vzctl: 3.0.26-1pve4
vzdump: 1.2-12
vzprocps: 2.0.11-2
vzquota: 3.0.11-1
pve-qemu-kvm: 0.14.0-3
ksm-control-daemon: 1.0-5
 
I have Proxmox 1.8 installed and did the upgrade per the wiki to the newer kernel that supports KSM. I have installed 12 Windows XP SP3 machines each with 512MB ram and another one with 1GB ram. The server has 12GB ram total. The machines are taking 7GB or ram and not decreasing/deduping.

KSM only start if you use more than half of the RAM - maybe your numbers are not 100% correct, and you are still below that limit. Try to use more RAM, then KSM should start.
 
I have set the vm's to max out the server ram and still it won't dedupe. I have the following vm's installed and running:

12x Win XP w/ 512MB
1x Win XP w/ 1GB
1x Centos 5.6 w/ 1GB
1x Centos 5.6 w/ 2GB
1x Windows 7 w/ 2GB

The Proxmox home page shows 11.48GB used memory and the shared pages file shows:

Code:
Every 2.0s: cat /sys/kernel/mm/ksm/pages_sharing        Tue May 24 08:55:40 2011

0
 
Ok so I guess I didn't give it long enough....


Code:
Every 2.0s: cat /sys/kernel/mm/ksm/pages_sharing        Tue May 24 09:15:21 2011

1655026

weird that in that 20 minutes it just magically started working. But it is working so all is well. Thanks!