From 069192ebe05ced246024b7058a6b06f0732dda95 Mon Sep 17 00:00:00 2001 From: Tran Hau Date: Sun, 7 Mar 2021 03:07:12 +0000 Subject: [PATCH] better swap performance --- Applications/System/systemd-swap.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Applications/System/systemd-swap.md b/Applications/System/systemd-swap.md index f61956c..aa9fcaa 100644 --- a/Applications/System/systemd-swap.md +++ b/Applications/System/systemd-swap.md @@ -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