]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6c6906e5731048d01002566eb5d5cf022f5999bc
treebd11d9631967d11e17b7237c862fc29a304a13f5
parentde78e9655dc1ec768ac3e1cb463f0fd74b06e4f1
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