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 <liumartin@google.com>
Signed-off-by: therealmharc <therealmharc@gmail.com>
This commit is contained in:
Martin Liu
2023-09-12 16:02:17 +08:00
committed by therealmharc
parent d4b25497ed
commit 2b0f37ef3c

View File

@@ -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