block, bfq: increase weight-raising duration for interactive apps
authorDavide Sapienza <sapienza.dav@gmail.com>
Thu, 31 May 2018 14:45:07 +0000 (16:45 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 31 May 2018 14:54:40 +0000 (08:54 -0600)
commitd450542e3ce0efd030316b7846cc7231300b2bc9
treebd11d9631967d11e17b7237c862fc29a304a13f5
parente24f1c245fb61b799137b586ea7ac3c6a5e952be
block, bfq: increase weight-raising duration for interactive apps

The maximum possible duration of the weight-raising period for
interactive applications is limited to 13 seconds, as this is the time
needed to load the largest application that we considered when tuning
weight raising. Unfortunately, in such an evaluation, we did not
consider the case of very slow virtual machines.

For example, on a QEMU/KVM virtual machine
- running in a slow PC;
- with a virtual disk stacked on a slow low-end 5400rpm HDD;
- serving a heavy I/O workload, such as the sequential reading of
several files;
mplayer takes 23 seconds to start, if constantly weight-raised.

To address this issue, this commit conservatively sets the upper limit
for weight-raising duration to 25 seconds.

Signed-off-by: Davide Sapienza <sapienza.dav@gmail.com>
Signed-off-by: Paolo Valente <paolo.valente@linaro.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bfq-iosched.c