X6837: Get back to default from long-standing VM tweaks

This patch removed the old writeout policy tune which was never touched since
2009. In the meantime, most of Android devices are equipped with over 4GB DRAM
and very fast flash storages like UFS, which becomes more like desktop or
servers in 2009. So, it'd be worth to go back to use the default kernel configs.

Bug: 136483670
Bug: 137190999
Bug: 152936751
Test: check value output
Change-Id: I1ebbf9f1f27a921103db51e96a50aadd6ec0dde8
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Signed-off-by: Martin Liu <liumartin@google.com>
Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
This commit is contained in:
Jaegeuk Kim 2021-05-05 19:25:45 +02:00 committed by Shirayuki39
parent edfaf934d7
commit fa3338ae7b

View file

@ -1007,6 +1007,10 @@ service bugreport /system/bin/dumpstate -d -p -B -z \
# end boot time fs tune # end boot time fs tune
on property:sys.boot_completed=1 on property:sys.boot_completed=1
# Back to default VM settings
write /proc/sys/vm/dirty_expire_centisecs 3000
write /proc/sys/vm/dirty_background_ratio 10
write /sys/block/mmcblk0/queue/iostats 1 write /sys/block/mmcblk0/queue/iostats 1
write /sys/block/mmcblk0/queue/read_ahead_kb 512 write /sys/block/mmcblk0/queue/read_ahead_kb 512
write /sys/block/mmcblk0/queue/nr_requests 128 write /sys/block/mmcblk0/queue/nr_requests 128