64aeaf97d7
- 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
14 lines
304 B
Desktop File
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
|