From e47fcb2fd0679a0ac20cdc6af10c56d549e910b3 Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Tue, 9 Jul 2019 17:38:05 -0700 Subject: [PATCH] sm6250-common: 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 --- rootdir/bin/init.qcom.post_boot.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rootdir/bin/init.qcom.post_boot.sh b/rootdir/bin/init.qcom.post_boot.sh index c6f553a..db3261e 100644 --- a/rootdir/bin/init.qcom.post_boot.sh +++ b/rootdir/bin/init.qcom.post_boot.sh @@ -118,6 +118,10 @@ function configure_memory_parameters() { # wsf Range : 1..1000 So set to bare minimum value 1. echo 1 > /proc/sys/vm/watermark_scale_factor + # Back to default VM settings + echo 3000 > /proc/sys/vm/dirty_expire_centisecs + echo 10 > /proc/sys/vm/dirty_background_ratio + configure_read_ahead_kb_values }