Project

General

Profile

Actions

Feature #296

closed

Enable kernel samepage merging on KVM hosts

Added by Alexander Werner about 10 years ago. Updated over 9 years ago.

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

0%

Tags:
Salt

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


Files

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

Updated by Alexander Werner about 10 years ago

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

Actions #2

Updated by Alexander Werner about 10 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
    
Actions #3

Updated by Alexander Werner over 9 years ago

  • Status changed from New to Closed

Added to salt, enabled on grisu.

Actions

Also available in: Atom PDF