Files
configpolicy/roles/vmhost/files/ksm.service
Dustin C. Hatch 7e585445b9 roles/vmhost: Enable KSM
This commit adds a systemd unit to enable the Kernel Same-page Merging
daemon on VM hosts. This allows much greater virtual machine density,
especially when many VMs are running the same guest OS.
2019-03-22 09:29:56 -05:00

13 lines
258 B
Desktop File

# vim: set ft=dosini :
[Unit]
Description=Kernel Same-Page Merging
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/sh -c "echo 1 > /sys/kernel/mm/ksm/run"
ExecStop=/bin/sh -c "echo 0 > /sys/kernel/mm/ksm/run"
[Install]
WantedBy=multi-user.target