From bf69bf51160fa8d26f7a4746acbe468ebebc921d 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 d752e4a..b717d49 100644 --- a/rootdir/bin/init.qcom.post_boot.sh +++ b/rootdir/bin/init.qcom.post_boot.sh @@ -137,6 +137,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_zram_parameters configure_read_ahead_kb_values