Switch from the BFQ to the mq-deadline I/O scheduler
The mq-deadline I/O scheduler is more stable than BFQ. Additionally, the boot time is shorter with the mq-deadline I/O scheduler. It only changes the scheduler on new kernel. Bug: 186902601 Test: forrest build Change-Id: I9433d73e7ed4bfd5e72a0f8318e959373e76202e Signed-off-by: Ocean Chen <oceanchen@google.com>
This commit is contained in:
parent
e7603cd7a9
commit
5c249e52ce
4 changed files with 14 additions and 4 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
import /vendor/etc/init/hw/init.gs101.storage.rc
|
||||||
import /vendor/etc/init/hw/init.gs101.usb.rc
|
import /vendor/etc/init/hw/init.gs101.usb.rc
|
||||||
import android.hardware.drm@1.2-service.widevine.rc
|
import android.hardware.drm@1.2-service.widevine.rc
|
||||||
import init.exynos.sensorhub.rc
|
import init.exynos.sensorhub.rc
|
||||||
|
@ -15,10 +16,6 @@ on init
|
||||||
# Disable util-awareness
|
# Disable util-awareness
|
||||||
write /proc/vendor_sched/teo_util_threshold "1024 1024 1024"
|
write /proc/vendor_sched/teo_util_threshold "1024 1024 1024"
|
||||||
|
|
||||||
# Boot time fs tuning
|
|
||||||
write /sys/block/sda/queue/scheduler bfq
|
|
||||||
write /sys/block/sda/queue/iosched/slice_idle 0
|
|
||||||
|
|
||||||
chown system system /proc/vendor_sched/groups/bg/set_task_group
|
chown system system /proc/vendor_sched/groups/bg/set_task_group
|
||||||
chown system system /proc/vendor_sched/groups/cam/set_task_group
|
chown system system /proc/vendor_sched/groups/cam/set_task_group
|
||||||
chown system system /proc/vendor_sched/groups/fg/set_task_group
|
chown system system /proc/vendor_sched/groups/fg/set_task_group
|
||||||
|
|
|
@ -327,6 +327,14 @@ PRODUCT_COPY_FILES += \
|
||||||
device/google/gs101/conf/init.debug.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.debug.rc
|
device/google/gs101/conf/init.debug.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.debug.rc
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifneq (,$(filter 5.%, $(TARGET_LINUX_KERNEL_VERSION)))
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
device/google/gs101/storage/5.10/init.gs101.storage.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.gs101.storage.rc
|
||||||
|
else
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
device/google/gs101/storage/6.1/init.gs101.storage.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.gs101.storage.rc
|
||||||
|
endif
|
||||||
|
|
||||||
# Recovery files
|
# Recovery files
|
||||||
PRODUCT_COPY_FILES += \
|
PRODUCT_COPY_FILES += \
|
||||||
device/google/gs101/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.gs101.rc
|
device/google/gs101/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.gs101.rc
|
||||||
|
|
3
storage/5.10/init.gs101.storage.rc
Normal file
3
storage/5.10/init.gs101.storage.rc
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
on init
|
||||||
|
write /sys/block/sda/queue/scheduler bfq
|
||||||
|
write /sys/block/sda/queue/iosched/slice_idle 0
|
2
storage/6.1/init.gs101.storage.rc
Normal file
2
storage/6.1/init.gs101.storage.rc
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
on init
|
||||||
|
write /sys/block/sda/queue/scheduler mq-deadline
|
Loading…
Add table
Add a link
Reference in a new issue