From 2b0f37ef3cd741d30f8fa63f7efaa86f33ec5120 Mon Sep 17 00:00:00 2001 From: Martin Liu Date: Tue, 12 Sep 2023 16:02:17 +0800 Subject: [PATCH] sm6150-common: decrease swappiness to 60 This tweak also aligns the policy with P23. Test: boots with correct settings Bug: 299975853 Change-Id: I0ed7088ddf2ff2fa0feca2197e5cc03c7f5c6778 Signed-off-by: Martin Liu Signed-off-by: therealmharc --- rootdir/etc/init.target.rc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc index 160fd21..3c0bdf8 100644 --- a/rootdir/etc/init.target.rc +++ b/rootdir/etc/init.target.rc @@ -131,9 +131,9 @@ on boot on property:sys.boot_completed=1 # Set allocstall_threshold to 0 - # Set swappiness to 100 + # Set swappiness to 60 write /sys/module/vmpressure/parameters/allocstall_threshold 0 - write /proc/sys/vm/swappiness 100 + write /proc/sys/vm/swappiness 60 # Enable ZRAM on boot_complete swapon_all /vendor/etc/fstab.zram