qemu/ksm.service
Andreas Färber 64aeaf97d7 Accepting request 225407 from home:saschpe:branches:Virtualization
- Add qemu-ksm subpackage providing a systemd service file for 
  enabling / disabling Kernel Samepage Merging. It is independent of
  qemu (but recommended by it).

OBS-URL: https://build.opensuse.org/request/show/225407
OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=191
2014-03-19 14:11:16 +00:00

14 lines
304 B
Desktop File

[Unit]
Description=Kernel Samepage Merging
ConditionPathExists=/sys/kernel/mm/ksm
ConditionVirtualization=no
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/bash -c "echo 1 > /sys/kernel/mm/ksm/run"
ExecStop=/bin/bash -c "echo 0 > /sys/kernel/mm/ksm/run"
[Install]
WantedBy=multi-user.target