aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@google.com>2019-07-09 17:38:05 -0700
committerJeferson <jroliveira.oliveira301@gmail.com>2021-06-17 16:14:45 +0200
commit03fd5f2c9145223b0d7533a767ad9209c5209716 (patch)
treeee122c3ebf984fe503e3a8bb5e8be5386bef867c
parentda68fa4e9ff8b48c7d21e8f7c4bdb86f515fcd9a (diff)
msm8916-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 <jaegeuk@google.com> Signed-off-by: Martin Liu <liumartin@google.com>
-rwxr-xr-xrootdir/etc/init.qcom.rc4
1 files changed, 4 insertions, 0 deletions
diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc
index 569b7b7..db82aa1 100755
--- a/rootdir/etc/init.qcom.rc
+++ b/rootdir/etc/init.qcom.rc
@@ -550,3 +550,7 @@ on moto-charger
on property:sys.boot_completed=1
# Enable ZRAM on boot_complete
swapon_all /vendor/etc/fstab.qcom
+
+ # Back to default VM settings
+ write /proc/sys/vm/dirty_expire_centisecs 3000
+