1
1
mirror of https://github.com/OpenVoiceOS/OpenVoiceOS synced 2025-06-05 22:19:21 +02:00

Add and configure 20% of memory as zram swap with a low agressive swappiness

This commit is contained in:
j1nx
2021-03-01 21:58:30 +01:00
parent e54ba60296
commit 70fa66f615
7 changed files with 102 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
[Unit]
Description=OVOS ZRAM swap
Requires=zram-swap.service
After=zram-swap.service
[Swap]
What=/dev/zram0
[Install]
WantedBy=swap.target

View File

@@ -0,0 +1,6 @@
[Unit]
Description=OVOS zram targets
Documentation=man:systemd.target(5)
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,15 @@
[Unit]
Description=OVOS ZRAM swap
DefaultDependencies=no
Before=dev-zram0.swap
RefuseManualStart=true
RefuseManualStop=true
[Service]
Type=oneshot
ExecStart=/usr/libexec/ovos-zram -t swap
RemainAfterExit=true
StandardOutput=null
[Install]
WantedBy=ovos-zram.target