From 33d0f7bd832e78234c04b0467ed14ef75f5ceccc Mon Sep 17 00:00:00 2001 From: hexdump Date: Sat, 18 Jun 2022 12:32:37 +0200 Subject: [PATCH] files: set a mgrlu option to be on the safe side this might just be required temporary, but better set it right now to be on the safe side --- files/extra-files/etc/rc.local | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/files/extra-files/etc/rc.local b/files/extra-files/etc/rc.local index a64fcb6f..572fae94 100755 --- a/files/extra-files/etc/rc.local +++ b/files/extra-files/etc/rc.local @@ -61,6 +61,11 @@ if [ -f /sys/kernel/mm/lru_gen/min_ttl_ms ]; then echo 1000 > /sys/kernel/mm/lru_gen/min_ttl_ms fi +# see: https://forum.armbian.com/topic/20018-mglru-patches-to-bring-down-kswapd-cpu-usage/?do=findComment&comment=141847 +if [ -f /proc/sys/vm/watermark_boost_factor ]; then + echo 0 > /proc/sys/vm/watermark_boost_factor +fi + # ... and offer an option to disable them as their functionality is # enabled by default if they are in use #if [ -f /sys/kernel/mm/lru_gen/enabled ]; then