Project

General

Profile

Feature #296

Enable kernel samepage merging on KVM hosts

Added by Alexander Werner over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
Virtualization
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Tags:
Salt
URL:

Description

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

ksm_stat.sh (1.02 KB) ksm_stat.sh Alexander Werner, 2014-03-19 09:43

History

#1 Updated by Alexander Werner over 4 years ago

Enabled it for the moment on gru in /etc/rc.local
The attached script is usefull to get some readable statistics.

#2 Updated by Alexander Werner over 4 years ago

  • Install sysfsutils
  • Edit /etc/sysfs.conf:
    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
    

#3 Updated by Alexander Werner over 4 years ago

  • Status changed from New to Closed

Added to salt, enabled on grisu.

Also available in: Atom PDF