mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_sm6150-common
synced 2026-01-27 16:26:02 +00:00
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:
@@ -131,9 +131,9 @@ on boot
|
|||||||
|
|
||||||
on property:sys.boot_completed=1
|
on property:sys.boot_completed=1
|
||||||
# Set allocstall_threshold to 0
|
# Set allocstall_threshold to 0
|
||||||
# Set swappiness to 100
|
# Set swappiness to 60
|
||||||
write /sys/module/vmpressure/parameters/allocstall_threshold 0
|
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
|
# Enable ZRAM on boot_complete
|
||||||
swapon_all /vendor/etc/fstab.zram
|
swapon_all /vendor/etc/fstab.zram
|
||||||
|
|||||||
Reference in New Issue
Block a user