adjust watermark level

Increase watermark_scale_factor to 200 to better handle
burst memory allocation.

Bug: 251881967
Test: boot
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: Ibe663456671892f2ec0e5e20e592b80c96bd371b
This commit is contained in:
Martin Liu 2022-10-12 13:00:17 +08:00 committed by Wei Wang
parent 83da3a8261
commit 55f8dbd064

View file

@ -688,6 +688,9 @@ on property:sys.boot_completed=1
swapon_all /vendor/etc/fstab.${ro.board.platform} swapon_all /vendor/etc/fstab.${ro.board.platform}
write /proc/sys/vm/swappiness 100 write /proc/sys/vm/swappiness 100
# Adjust watermark level
write /proc/sys/vm/watermark_scale_factor 200
# Back to default VM settings # Back to default VM settings
write /proc/sys/vm/dirty_expire_centisecs 3000 write /proc/sys/vm/dirty_expire_centisecs 3000
write /proc/sys/vm/dirty_background_ratio 10 write /proc/sys/vm/dirty_background_ratio 10