summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZiyan <jaraidaniel@gmail.com>2016-01-08 17:57:59 +0100
committerDániel Járai <jaraidaniel@gmail.com>2016-01-08 09:25:49 -0800
commit22aa119c5ea00e08ca9e4a54cd6e593d90d6717d (patch)
treea7c97d12f978d6273343a18c429e92fd4d01a0d3
parent80d513b6533620c9d7558d7dda5aed8101fe4cc2 (diff)
downloaddevice_samsung_tuna-22aa119c5ea00e08ca9e4a54cd6e593d90d6717d.zip
device_samsung_tuna-22aa119c5ea00e08ca9e4a54cd6e593d90d6717d.tar.gz
device_samsung_tuna-22aa119c5ea00e08ca9e4a54cd6e593d90d6717d.tar.bz2
init: increase read-ahead value to 256 kb
Apps and database file sizes have increased in recent Android versions, which makes it practical to increase our read-ahead value from 128 kb. General user experience seem to have improved a bit. Change-Id: I35788444a8552a8f376c699ead163e951ed06b30
-rwxr-xr-xrootdir/init.tuna.rc3
1 files changed, 3 insertions, 0 deletions
diff --git a/rootdir/init.tuna.rc b/rootdir/init.tuna.rc
index 33dd7a8..ac869f5 100755
--- a/rootdir/init.tuna.rc
+++ b/rootdir/init.tuna.rc
@@ -79,6 +79,9 @@ on fs
# set swappines to 100
write /proc/sys/vm/swappiness 100
+ # increase read-ahead value to 256 kb
+ write /sys/block/mmcblk0/queue/read_ahead_kb 256
+
# change permissions for mtd device
chmod 0660 /dev/mtd/mtd0
chown media media /dev/mtd/mtd0