diff options
author | Ziyan <jaraidaniel@gmail.com> | 2016-01-08 17:55:47 +0100 |
---|---|---|
committer | Dániel Járai <jaraidaniel@gmail.com> | 2016-01-08 09:25:04 -0800 |
commit | bf8f92939f1dcb82207f2515c92f5b23e395eed0 (patch) | |
tree | 146706e9b2a0f876e4bec93f48eb05d715beaadf /rootdir | |
parent | a0f85a356d68ac0120ad28aa721179cd0130d9c7 (diff) | |
download | device_samsung_tuna-bf8f92939f1dcb82207f2515c92f5b23e395eed0.zip device_samsung_tuna-bf8f92939f1dcb82207f2515c92f5b23e395eed0.tar.gz device_samsung_tuna-bf8f92939f1dcb82207f2515c92f5b23e395eed0.tar.bz2 |
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
Diffstat (limited to 'rootdir')
-rwxr-xr-x | rootdir/init.tuna.rc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/rootdir/init.tuna.rc b/rootdir/init.tuna.rc index 7399bfc..33dd7a8 100755 --- a/rootdir/init.tuna.rc +++ b/rootdir/init.tuna.rc @@ -73,6 +73,12 @@ on fs setprop ro.crypto.fuse_sdcard true + # read only 1 page at a time + write /proc/sys/vm/page-cluster 0 + + # set swappines to 100 + write /proc/sys/vm/swappiness 100 + # change permissions for mtd device chmod 0660 /dev/mtd/mtd0 chown media media /dev/mtd/mtd0 |