block, bfq: boost the throughput with random I/O on NCQ-capable HDDs
authorPaolo Valente <paolo.valente@linaro.org>
Wed, 12 Apr 2017 16:23:19 +0000 (18:23 +0200)
committerJens Axboe <axboe@fb.com>
Wed, 19 Apr 2017 14:30:26 +0000 (08:30 -0600)
commite01eff01d5c81f4dbba186299b16b08aa7316d5b
tree9a6cd957d0ca463247d3e57438cfec5e2702a661
parentbf2b79e7c4b312aa6e1c661fb27e0dc4dd42f2c2
block, bfq: boost the throughput with random I/O on NCQ-capable HDDs

This patch is basically the counterpart, for NCQ-capable rotational
devices, of the previous patch. Exactly as the previous patch does on
flash-based devices and for any workload, this patch disables device
idling on rotational devices, but only for random I/O. In fact, only
with these queues disabling idling boosts the throughput on
NCQ-capable rotational devices. To not break service guarantees,
idling is disabled for NCQ-enabled rotational devices only when the
same symmetry conditions considered in the previous patches hold.

Signed-off-by: Paolo Valente <paolo.valente@linaro.org>
Signed-off-by: Arianna Avanzini <avanzini.arianna@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/bfq-iosched.c