better swap performance

main
Tran Hau 2021-03-07 03:07:12 +00:00
parent ef07e6e7ca
commit 069192ebe0
1 changed files with 6 additions and 0 deletions

View File

@ -11,6 +11,12 @@ Create directory if not exist `/etc/systemd/swap.conf.d` and edit `/etc/systemd/
swapfc_enabled=1
```
Edit `/etc/sysctl.d/99-swappiness.conf`:
```txt
vm.swappiness=10
```
Enable and start service:
```sh