From 3e6db0abc273d32854a699ac9d38de2501bf37c0 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Wed, 15 Nov 2023 05:20:49 +0100 Subject: [PATCH] sdm660-common: rootdir: set swappiness to 60 --- rootdir/bin/init.qcom.post_boot.sh | 4 ++-- rootdir/etc/init.target.rc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rootdir/bin/init.qcom.post_boot.sh b/rootdir/bin/init.qcom.post_boot.sh index ce40640a..e42bae9f 100644 --- a/rootdir/bin/init.qcom.post_boot.sh +++ b/rootdir/bin/init.qcom.post_boot.sh @@ -954,9 +954,9 @@ else fi # Set allocstall_threshold to 0 for all targets. - # Set swappiness to 100 for all targets + # Set swappiness to 60 for all targets echo 0 > /sys/module/vmpressure/parameters/allocstall_threshold - echo 100 > /proc/sys/vm/swappiness + echo 60 > /proc/sys/vm/swappiness # Disable wsf for all targets beacause we are using efk. # wsf Range : 1..1000 So set to bare minimum value 1. diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc index bc71fefd..5b1e7e5e 100755 --- a/rootdir/etc/init.target.rc +++ b/rootdir/etc/init.target.rc @@ -567,7 +567,7 @@ on property:sys.boot_completed=1 on property:sys.boot_completed=1 write /proc/sys/vm/page-cluster 0 - write /proc/sys/vm/swappiness 100 + write /proc/sys/vm/swappiness 60 write /sys/block/zram0/comp_algorithm lz4 write /sys/block/zram0/use_dedup 1 swapon_all /vendor/etc/fstab.qcom