Switch to deadline IO scheduler post boot.

The deadline IO scheduler results in lower latency SD, and pulls in
latency outliers (especially when the flash starts getting fragmented).
Switch to deadline post boot.

Test: various workloads, both synthetic (fio) as well as actual
workloads (app launch, ioshark).

Bug: 63630139
Change-Id: I94b90ac09e921fdf01564bd4c6e1a1b809f3f8ec
Signed-off-by: Mohan Srinivasan <srmohan@google.com>
This commit is contained in:
Mohan Srinivasan
2017-10-18 15:07:40 -07:00
parent 88e5ec1a7f
commit ae780bce59

View File

@@ -15,6 +15,8 @@ on property:sys.boot_completed=1
write /sys/block/sda/queue/iostats 1
write /sys/block/dm-0/queue/read_ahead_kb 512
write /sys/block/dm-1/queue/read_ahead_kb 512
write /sys/block/sda/queue/scheduler deadline
write /sys/block/sde/queue/scheduler deadline
on property:sys.boot_completed=1 && property:ro.build.type=user
write /proc/sys/kernel/modules_disabled 1