aboutsummaryrefslogtreecommitdiff
path: root/rootdir
diff options
context:
space:
mode:
authorMister Oyster <oysterized@gmail.com>2017-04-30 13:21:38 +0200
committerMister Oyster <oysterized@gmail.com>2017-04-30 13:21:38 +0200
commit1ef211269014b232f3338b8f6c65684617dc328e (patch)
tree826b852684cd7e0b685e9d694184246bdf493906 /rootdir
parent609d285ef06f29585c24d96a4933f8b550a9ef8c (diff)
device: tweak fs tune for faster boot and better UX reactivity
Diffstat (limited to 'rootdir')
-rwxr-xr-xrootdir/init.mt6735.rc13
1 files changed, 13 insertions, 0 deletions
diff --git a/rootdir/init.mt6735.rc b/rootdir/init.mt6735.rc
index 02c60a8..d7223d7 100755
--- a/rootdir/init.mt6735.rc
+++ b/rootdir/init.mt6735.rc
@@ -1,6 +1,13 @@
import /init.project.rc
import /init.modem.rc
+on late-fs
+ # boot time fs tune
+ write /sys/block/mmcblk0/queue/iostats 0
+ write /sys/block/mmcblk0/queue/iosched/slice_idle 0
+ write /sys/block/mmcblk0/queue/read_ahead_kb 2048
+ write /sys/block/mmcblk0/queue/nr_requests 256
+
on early-boot
# NOTE: early-boot is AFTER even post-fs-data!
# damn this is so easily overlooked
@@ -685,6 +692,12 @@ on property:ro.board.platform=mt6753
chmod 0660 /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
write /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq 1300000
+on property:sys.boot_completed=1
+ # end boot time fs tune
+ write /sys/block/mmcblk0/queue/read_ahead_kb 128
+ write /sys/block/mmcblk0/queue/nr_requests 128
+ write /sys/block/sda/queue/iostats 1
+
on property:vold.decrypt=trigger_reset_main
start stop_modem