aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZiyan <jaraidaniel@gmail.com>2016-01-08 17:55:47 +0100
committerAndreas Blaesius <skate4life@gmx.de>2016-01-25 23:59:36 +0100
commit6f60fad0e9d7a0b9fa73e7fa7b8dc16aac178ccb (patch)
tree931a4ed0d7dc33f40d684fe7c9acc0d96c3c7cd5
parent5db37fea35083297a5eb3aaf2224c3efa7fa9477 (diff)
downloaddevice_samsung_espressowifi-6f60fad0e9d7a0b9fa73e7fa7b8dc16aac178ccb.tar.gz
device_samsung_espressowifi-6f60fad0e9d7a0b9fa73e7fa7b8dc16aac178ccb.tar.bz2
device_samsung_espressowifi-6f60fad0e9d7a0b9fa73e7fa7b8dc16aac178ccb.zip
init: tune vm for zRAM
References: https://source.android.com/devices/tech/config/low-ram.html https://01.org/android-ia/user-guides/android-memory-tuning-android-5.0-and-5.1 Change-Id: I8ec35dad3a65c213d1843d01957b308c3ab84a6e
-rw-r--r--rootdir/etc/init.tab2.rc6
1 files changed, 6 insertions, 0 deletions
diff --git a/rootdir/etc/init.tab2.rc b/rootdir/etc/init.tab2.rc
index 2a746a5..28b128b 100644
--- a/rootdir/etc/init.tab2.rc
+++ b/rootdir/etc/init.tab2.rc
@@ -40,6 +40,12 @@ on fs
insmod /system/lib/modules/pvrsrvkm_sgx540_120.ko
start pvrsrvinit
+ # read only 1 page at a time
+ write /proc/sys/vm/page-cluster 0
+
+ # set swappines to 100
+ write /proc/sys/vm/swappiness 100
+
mount debugfs /sys/kernel/debug /sys/kernel/debug
on post-fs-data