adjust applying watermark_scale_factor timing am: 72637ea363
am: 2c10012ac9
am: f9155315f0
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma/+/22949552 Change-Id: Ibfcafa81ed648db0e210261a9a1f10e1a1c2e545 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
a4aff8b35b
1 changed files with 3 additions and 3 deletions
|
@ -115,9 +115,6 @@ on init
|
||||||
write /sys/block/zram0/comp_algorithm lz77eh
|
write /sys/block/zram0/comp_algorithm lz77eh
|
||||||
write /proc/sys/vm/page-cluster 0
|
write /proc/sys/vm/page-cluster 0
|
||||||
|
|
||||||
# Adjust watermark level
|
|
||||||
write /proc/sys/vm/watermark_scale_factor 200
|
|
||||||
|
|
||||||
# Some user code relies on ro.boot.hardware.revision
|
# Some user code relies on ro.boot.hardware.revision
|
||||||
setprop ro.boot.hardware.revision ${ro.revision}
|
setprop ro.boot.hardware.revision ${ro.revision}
|
||||||
|
|
||||||
|
@ -750,6 +747,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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue