til/Applications/System/systemd-swap.md

490 B

systemd-swap

Distribution Package
Arch Linux systemd-swap
Fedora systemd-swap

Create directory if not exist /etc/systemd/swap.conf.d and edit /etc/systemd/swap.conf.d/overrides.conf:

swapfc_enabled=1

Edit /etc/sysctl.d/99-swappiness.conf:

vm.swappiness=10

Enable and start service:

systemctl enable --now systemd-swap.service