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
This commit is contained in:
committed by
Git OBS Bridge
parent
d3c2657edf
commit
66412a9327
13
ksm.service
Normal file
13
ksm.service
Normal file
@@ -0,0 +1,13 @@
|
||||
[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
|
Reference in New Issue
Block a user