Enable kernel samepage merging on KVM hosts
KSM allows the kernel to deduplicate RAM regions. Especially useful on KVM-Hosts.
Use an init script like the one found at https://github.com/dnaeon/ksm-init.d-debian/blob/master/ksm
It basically does this:
echo 1 > /sys/kernel/mm/ksm/run
#1 Updated by Alexander Werner almost 5 years ago
Enabled it for the moment on gru in
The attached script is usefull to get some readable statistics.
#2 Updated by Alexander Werner almost 5 years ago
kernel/mm/ksm/run = 1 kernel/mm/ksm/pages_to_scan = 20000
- Add sysfsutils to be started at boot time:
update-rc.d sysfsutils defaults