From ff54116064937d28ed509d6b2ffc2f6e4cc41443 Mon Sep 17 00:00:00 2001 From: Tyler Nijmeh Date: Sat, 29 Aug 2020 15:10:21 -0700 Subject: [PATCH] Remove compaction tweak Signed-off-by: Tyler Nijmeh --- README.md | 3 --- system/bin/ktweak | 1 - 2 files changed, 4 deletions(-) diff --git a/README.md b/README.md index 85ac84a..bf07425 100644 --- a/README.md +++ b/README.md @@ -110,9 +110,6 @@ This is the longest that dirty pages can remain in the system before they are fo ### vm.dirty_writeback_centisecs: 500 (5s) --> 0 (0s) Do not periodically writeback data every 5 seconds. Instead, leave it to the dirty background writeback to wake up when the dirty memory of the system hits 10%. This allows the dirty pages to stay in memory for longer, possibly increasing cache locality as the page cache is still available in memory. -### vm.extfrag_threshold: 500 --> 750 -Compact memory more often, even if the memory allocation was estimated to be due to a low-memory status. This lets us put more data into RAM at the expense of running compation more often. This is a worthy tradeoff, as it reduces memory fragmentation, which is incredibly important for ZRAM. - ### vm.oom_dump_tasks: 1 --> 0 Do not dump debug information when (or if) we run out of memory. If we have a lot of tasks running, and are OOMing often, then this overhead can add up. diff --git a/system/bin/ktweak b/system/bin/ktweak index d03f553..aadb7a1 100644 --- a/system/bin/ktweak +++ b/system/bin/ktweak @@ -127,7 +127,6 @@ 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 0 -write /proc/sys/vm/extfrag_threshold 750 write /proc/sys/vm/oom_dump_tasks 0 write /proc/sys/vm/page-cluster 0 write /proc/sys/vm/reap_mem_on_sigkill 1