From 53c4c4982775dfaa593249cf42ef8e93ab544665 Mon Sep 17 00:00:00 2001 From: Tyler Nijmeh Date: Wed, 9 Sep 2020 18:44:04 -0700 Subject: [PATCH] Run flusher threads once every 30s Signed-off-by: Tyler Nijmeh --- README.md | 2 +- ktweak | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3211292..255288d 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ This tunable is the same as the former, but it is the ceiling for **synchronous* ### vm.dirty_expire_centisecs: 300 (3s) --> 1000 (10s) This is the longest that dirty pages can remain in the system before they are forcefully written out to the disk. By increasing this value, we can allow the dirty background writeback to take its time asynchronously, and avoid unnecessary writebacks that can clog the flusher thread. -### vm.dirty_writeback_centisecs: 500 (5s) --> 1000 (10s) +### vm.dirty_writeback_centisecs: 500 (5s) --> 3000 (30s) Do background writeback via flusher threads less often to reduce occasional overhead. ### vm.page-cluster: 3 --> 0 diff --git a/ktweak b/ktweak index 1631ae0..66e740c 100644 --- a/ktweak +++ b/ktweak @@ -141,7 +141,7 @@ write /proc/sys/kernel/sched_schedstats 0 write /proc/sys/vm/dirty_background_ratio 10 write /proc/sys/vm/dirty_ratio 30 write /proc/sys/vm/dirty_expire_centisecs 1000 -write /proc/sys/vm/dirty_writeback_centisecs 1000 +write /proc/sys/vm/dirty_writeback_centisecs 3000 write /proc/sys/vm/page-cluster 0 write /proc/sys/vm/reap_mem_on_sigkill 1 write /proc/sys/vm/stat_interval 10