From 9f8b024c724951341f87dcaf995911c844f70895 Mon Sep 17 00:00:00 2001 From: Martin Liu Date: Thu, 1 Jul 2021 11:55:02 +0800 Subject: [PATCH] init: disable watermark_boost feature In newer kernel, it introduces watermark boost feature to enhance memory fragmentation problems. This feature will dynamically boost/down watermark level which conflicts with LMKD assumption and causing LMKD not to work properly. Disabling this feature first until we address it. Bug: 189938926 Test: check vm parameter. Signed-off-by: Martin Liu Change-Id: I6db5163f843f1129080bb944df7cbb8c799a58e0 --- rootdir/init.rc | 1 + 1 file changed, 1 insertion(+) diff --git a/rootdir/init.rc b/rootdir/init.rc index db61fc55a..a8bef4268 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -438,6 +438,7 @@ on init # Start logd before any other services run to ensure we capture all of their logs. start logd # Start lmkd before any other services run so that it can register them + write /proc/sys/vm/watermark_boost_factor 0 chown root system /sys/module/lowmemorykiller/parameters/adj chmod 0664 /sys/module/lowmemorykiller/parameters/adj chown root system /sys/module/lowmemorykiller/parameters/minfree