From fa3338ae7b89945a59db6df6024f1a375cc95f81 Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Wed, 5 May 2021 19:25:45 +0200 Subject: [PATCH] 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 Signed-off-by: Martin Liu Signed-off-by: Shirayuki39 --- rootdir/etc/init/hw/init.mt6789.rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rootdir/etc/init/hw/init.mt6789.rc b/rootdir/etc/init/hw/init.mt6789.rc index 1606cac..2c45124 100644 --- a/rootdir/etc/init/hw/init.mt6789.rc +++ b/rootdir/etc/init/hw/init.mt6789.rc @@ -1007,6 +1007,10 @@ service bugreport /system/bin/dumpstate -d -p -B -z \ # end boot time fs tune 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/read_ahead_kb 512 write /sys/block/mmcblk0/queue/nr_requests 128