OSDN Git Service

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)
commiteb2fd80f9d2c515a901599362e83bc3356fc5e97
treedffa32379b2d24d28f0ba317b69cb8fbbfe3282d
parent3a905c37c3510ea6d7cfcdfd0f272ba731286560
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