diff options
author | Shaohua Li <shli@fb.com> | 2017-06-06 22:40:43 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-06-07 18:09:32 +0300 |
commit | 6679a90c4b0dc2563383df1fe0eb170736952a2e (patch) | |
tree | e700714df531b4c6aeaacdde3b59b1c8a28b6ff5 /block/bfq-cgroup.c | |
parent | a41b816c174409417d91b4ceef0145c9f0bef67c (diff) | |
download | linux-6679a90c4b0dc2563383df1fe0eb170736952a2e.tar.xz |
blk-throttle: set default latency baseline for harddisk
hard disk IO latency varies a lot depending on spindle move. The latency
range could be from several microseconds to several milliseconds. It's
pretty hard to get the baseline latency used by io.low.
We will use a different stragety here. The idea is only using IO with
spindle move to determine if cgroup IO is in good state. For HD, if io
latency is small (< 1ms), we ignore the IO. Such IO is likely from
sequential IO, and is helpless to help determine if a cgroup's IO is
impacted by other cgroups. With this, we only account IO with big
latency. Then we can choose a hardcoded baseline latency for HD (4ms,
which is typical IO latency with seek). With all these settings, the
io.low latency works for both HD and SSD.
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/bfq-cgroup.c')
0 files changed, 0 insertions, 0 deletions