@cryptotaxi247 / infra-1 / commits / bcdc9e09

* Enable KSM.

svn path=/configurations/trunk/tud/; revision=29238

Eelco Dolstra committed Sep 13, 2011 at 14:57 UTC bcdc9e094d955f7ce011952ca68a53e35c548182
1 file changed +7
build-machines-common.nix
+7
@@ -48,4 +48,11 @@ with pkgs.lib;
48 chown -R buildfarm.users /home/buildfarm/.ssh
49 '';
50
51 + jobs.udevtrigger.postStop =
52 + ''
53 + # Enable Kernel Samepage Merging (reduces memory footprint of
54 + # VMs).
55 + echo 1 > /sys/kernel/mm/ksm/run
56 + '';
57 +
58 }