mirror of
https://github.com/PixelExperience-Devices/device_xiaomi_sm6250-common.git
synced 2025-05-03 20:37:17 +09:00
sm6250-common: rootdir: Fine tune the read_ahead size
sync ag/6911752,ag/9342439 fine tune the read_ahead size for boot time Bug: 137150088 Bug: 139640385 Bug: 143448664 Test: boot to home and boot time measurement Change-Id: If7929c51222e325a019532ce0d16045a52778165 Signed-off-by: Kyle Lin <kylelin@google.com> Signed-off-by: Ocean Chen <oceanchen@google.com>
This commit is contained in:
parent
d35ff1caca
commit
743e44b443
@ -402,11 +402,6 @@ on post-fs-data
|
||||
mkdir /data/vendor/swap 0770 root system
|
||||
chmod 2770 /data/vendor/swap
|
||||
|
||||
# set aggressive read ahead for dm-0 and dm-1 during boot up
|
||||
write /sys/block/dm-0/queue/read_ahead_kb 2048
|
||||
write /sys/block/dm-1/queue/read_ahead_kb 2048
|
||||
write /sys/block/dm-2/queue/read_ahead_kb 2048
|
||||
|
||||
# Create vpp directory
|
||||
mkdir /data/vendor/vpp 0770 media media
|
||||
|
||||
@ -490,9 +485,6 @@ on property:persist.vendor.sys.rawdump_copy=0
|
||||
|
||||
on property:sys.boot_completed=1
|
||||
write /dev/kmsg "Boot completed "
|
||||
#Reset read ahead for dm-0 and dm-1 to 512kb
|
||||
write /sys/block/dm-0/queue/read_ahead_kb 512
|
||||
write /sys/block/dm-1/queue/read_ahead_kb 512
|
||||
#WDSP FW boot sysfs node used by STHAL
|
||||
chown media audio /sys/kernel/wdsp0/boot
|
||||
chown media audio /sys/kernel/wcd_cpe0/fw_name
|
||||
|
@ -68,6 +68,17 @@ on init
|
||||
chown cameraserver cameraserver /dev/cpuset/camera-daemon/tasks
|
||||
chmod 0660 /dev/cpuset/camera-daemon/tasks
|
||||
|
||||
# Boot time fs tuning
|
||||
write /sys/block/sda/queue/iostats 0
|
||||
write /sys/block/sda/queue/scheduler cfq
|
||||
write /sys/block/sda/queue/iosched/slice_idle 0
|
||||
write /sys/block/sda/queue/read_ahead_kb 2048
|
||||
write /sys/block/sda/queue/nr_requests 256
|
||||
write /sys/block/dm-0/queue/read_ahead_kb 2048
|
||||
write /sys/block/dm-1/queue/read_ahead_kb 2048
|
||||
write /sys/block/dm-2/queue/read_ahead_kb 2048
|
||||
write /sys/block/dm-3/queue/read_ahead_kb 2048
|
||||
|
||||
on early-fs
|
||||
start vold
|
||||
|
||||
@ -207,5 +218,14 @@ on property:sys.boot_completed=1
|
||||
write /dev/stune/top-app/schedtune.prefer_high_cap 0
|
||||
write /dev/stune/top-app/schedtune.boost 10
|
||||
|
||||
# Runtime fs tuning
|
||||
write /sys/block/sda/queue/read_ahead_kb 128
|
||||
write /sys/block/sda/queue/nr_requests 128
|
||||
write /sys/block/sda/queue/iostats 1
|
||||
write /sys/block/dm-0/queue/read_ahead_kb 128
|
||||
write /sys/block/dm-1/queue/read_ahead_kb 128
|
||||
write /sys/block/dm-2/queue/read_ahead_kb 128
|
||||
write /sys/block/dm-3/queue/read_ahead_kb 128
|
||||
|
||||
on property:ro.boot.multisim_config=*
|
||||
setprop persist.radio.multisim.config ${ro.boot.multisim_config}
|
||||
|
Loading…
x
Reference in New Issue
Block a user