]> git.baikalelectronics.ru Git - kernel.git/commit
blk-iolatency: deal with small samples
authorJosef Bacik <josef@toxicpanda.com>
Fri, 28 Sep 2018 17:45:41 +0000 (13:45 -0400)
committerJens Axboe <axboe@kernel.dk>
Fri, 28 Sep 2018 17:47:29 +0000 (11:47 -0600)
commit7deb7a064e8bc2b2642ff8654aedfbac0307b6e2
tree2e1b6b870178f979740217aad4a0644c69a3811b
parent7f391f387115888a496544b4e9a35b5d8b698682
blk-iolatency: deal with small samples

There is logic to keep cgroups that haven't done a lot of IO in the most
recent scale window from being punished for over-active higher priority
groups.  However for things like ssd's where the windows are pretty
short we'll end up with small numbers of samples, so 5% of samples will
come out to 0 if there aren't enough.  Make the floor 1 sample to keep
us from improperly bailing out of scaling down.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-iolatency.c