device: tweak fs tune for faster boot and better UX reactivity
This commit is contained in:
parent
609d285ef0
commit
1ef2112690
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue