sdm660-common: rootdir: set swappiness to 60
This commit is contained in:
parent
67049d9fe6
commit
3e6db0abc2
2 changed files with 3 additions and 3 deletions
|
@ -954,9 +954,9 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set allocstall_threshold to 0 for all targets.
|
# 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 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.
|
# Disable wsf for all targets beacause we are using efk.
|
||||||
# wsf Range : 1..1000 So set to bare minimum value 1.
|
# wsf Range : 1..1000 So set to bare minimum value 1.
|
||||||
|
|
|
@ -567,7 +567,7 @@ on property:sys.boot_completed=1
|
||||||
|
|
||||||
on property:sys.boot_completed=1
|
on property:sys.boot_completed=1
|
||||||
write /proc/sys/vm/page-cluster 0
|
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/comp_algorithm lz4
|
||||||
write /sys/block/zram0/use_dedup 1
|
write /sys/block/zram0/use_dedup 1
|
||||||
swapon_all /vendor/etc/fstab.qcom
|
swapon_all /vendor/etc/fstab.qcom
|
||||||
|
|
Loading…
Reference in a new issue