From 7ce1e725d1fbcc48ac8b9cea2cb287e989aeeb4c Mon Sep 17 00:00:00 2001 From: Tyler Nijmeh Date: Sun, 2 Aug 2020 13:54:16 -0700 Subject: [PATCH] Increase swappiness slightly Signed-off-by: Tyler Nijmeh --- README.md | 2 +- service.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 81c6e48..a6d69ed 100644 --- a/README.md +++ b/README.md @@ -133,7 +133,7 @@ When we kill a task, clean its memory footprint to free up whatever amount of RA ### vm.stat_interval: 1 --> 10 Update /proc/stat information every 10 seconds instead of every second, reducing jitter on loaded systems. -### vm.swappiness: 100 --> 50 +### vm.swappiness: 100 --> 80 Swap to ZRAM less often if we don't have to. ZRAM can become expensive due to constant compression and decompression. If we can keep some of the memory uncompressed in regular RAM, we can a avoid that overhead. ### vm.vfs_cache_pressure: 100 --> 200 diff --git a/service.sh b/service.sh index 1954348..93c0779 100644 --- a/service.sh +++ b/service.sh @@ -115,7 +115,7 @@ ctl vm.overcommit_memory 1 ctl vm.page-cluster 0 ctl vm.reap_mem_on_sigkill 1 ctl vm.stat_interval 10 -ctl vm.swappiness 50 +ctl vm.swappiness 80 ctl vm.vfs_cache_pressure 200 ctl vm.watermark_scale_factor 100