sdm660-common: rootdir: set swappiness to 60

This commit is contained in:
LuK1337 2023-11-15 05:20:49 +01:00 committed by pix106
parent 67049d9fe6
commit 3e6db0abc2
2 changed files with 3 additions and 3 deletions

View file

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

View file

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