mirror of
https://github.com/Anything-at-25-00/android_device_tecno_LG8n.git
synced 2024-11-26 15:36:26 -08:00
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:
parent
539d19fdf3
commit
98eb5f6660
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue