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: I5d336b3f146ca673c83c03304773d0ccf4c01e77 Signed-off-by: Ocean Chen <oceanchen@google.com>
This commit is contained in:
parent
541efd2ce2
commit
a664dadaa8
4 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
|||
import /vendor/etc/init/hw/init.gs201.storage.rc
|
||||
import /vendor/etc/init/hw/init.gs201.usb.rc
|
||||
import android.hardware.drm@1.2-service.widevine.rc
|
||||
import init.exynos.sensorhub.rc
|
||||
|
|
|
@ -356,6 +356,14 @@ PRODUCT_COPY_FILES += \
|
|||
PRODUCT_COPY_FILES += \
|
||||
device/google/gs201/conf/init.gs201.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.gs201.rc
|
||||
|
||||
ifneq (,$(filter 5.%, $(TARGET_LINUX_KERNEL_VERSION)))
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/google/gs201/storage/5.10/init.gs201.storage.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.gs201.storage.rc
|
||||
else
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/google/gs201/storage/6.1/init.gs201.storage.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.gs201.storage.rc
|
||||
endif
|
||||
|
||||
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
||||
PRODUCT_COPY_FILES += \
|
||||
device/google/gs201/conf/init.debug.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.debug.rc \
|
||||
|
|
3
storage/5.10/init.gs201.storage.rc
Normal file
3
storage/5.10/init.gs201.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.gs201.storage.rc
Normal file
2
storage/6.1/init.gs201.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