2020-06-08 16:36:18 +00:00
|
|
|
# [systemd-swap](https://github.com/Nefelim4ag/systemd-swap)
|
|
|
|
|
|
|
|
| Distribution | Package |
|
|
|
|
| ------------ | -------------- |
|
|
|
|
| Arch Linux | `systemd-swap` |
|
|
|
|
|
2021-04-03 16:51:01 +00:00
|
|
|
Service: `systemd-swap.service`
|
|
|
|
|
2020-10-13 05:55:06 +00:00
|
|
|
Create directory if not exist `/etc/systemd/swap.conf.d` and edit `/etc/systemd/swap.conf.d/overrides.conf`:
|
2020-06-08 16:36:18 +00:00
|
|
|
|
|
|
|
```txt
|
|
|
|
swapfc_enabled=1
|
|
|
|
```
|
2020-08-13 15:17:43 +00:00
|
|
|
|
2021-03-07 03:07:12 +00:00
|
|
|
Edit `/etc/sysctl.d/99-swappiness.conf`:
|
|
|
|
|
|
|
|
```txt
|
|
|
|
vm.swappiness=10
|
|
|
|
```
|