diff options
author | Shaohua Li <shli@fb.com> | 2017-06-06 21:40:43 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-06-07 17:09:32 +0200 |
commit | 6679a90c4b0dc2563383df1fe0eb170736952a2e (patch) | |
tree | e700714df531b4c6aeaacdde3b59b1c8a28b6ff5 /init | |
parent | blk-throttle: fix NULL pointer dereference in throtl_schedule_pending_timer (diff) | |
download | linux-6679a90c4b0dc2563383df1fe0eb170736952a2e.tar.xz linux-6679a90c4b0dc2563383df1fe0eb170736952a2e.zip |
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 'init')
0 files changed, 0 insertions, 0 deletions