]> git.baikalelectronics.ru Git - kernel.git/commit
block, bfq: replace mechanism for evaluating I/O intensity
authorPaolo Valente <paolo.valente@linaro.org>
Mon, 25 Jan 2021 19:02:43 +0000 (20:02 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Jan 2021 21:18:29 +0000 (14:18 -0700)
commit905f50178b1d136cecc5e6f81b526ac41a730653
treedffa32379b2d24d28f0ba317b69cb8fbbfe3282d
parent78c1adb7c60f986b9675d997604e6d8f0510b77c
block, bfq: replace mechanism for evaluating I/O intensity

Some BFQ mechanisms make their decisions on a bfq_queue basing also on
whether the bfq_queue is I/O bound. In this respect, the current logic
for evaluating whether a bfq_queue is I/O bound is rather rough. This
commits replaces this logic with a more effective one.

The new logic measures the percentage of time during which a bfq_queue
is active, and marks the bfq_queue as I/O bound if the latter if this
percentage is above a fixed threshold.

Tested-by: Jan Kara <jack@suse.cz>
Signed-off-by: Paolo Valente <paolo.valente@linaro.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-iosched.c
block/bfq-iosched.h