diff options
author | Shaohua Li | 2017-03-27 10:51:36 -0700 |
---|---|---|
committer | Jens Axboe | 2017-03-28 08:02:20 -0600 |
commit | 06cceedcca67a93ac7f7aa93bbd9980c7496d14e (patch) | |
tree | af55df52adb802cb6dc7e63068165a4b8ccfc4d2 /block/blk.h | |
parent | 3f0abd806651df546f426f23490fec997dc87e5b (diff) |
blk-throttle: make sure expire time isn't too big
cgroup could be throttled to a limit but when all cgroups cross high
limit, queue enters a higher state and so the group should be throttled
to a higher limit. It's possible the cgroup is sleeping because of
throttle and other cgroups don't dispatch IO any more. In this case,
nobody can trigger current downgrade/upgrade logic. To fix this issue,
we could either set up a timer to wakeup the cgroup if other cgroups are
idle or make sure this cgroup doesn't sleep too long. Setting up a timer
means we must change the timer very frequently. This patch chooses the
latter. Making cgroup sleep time not too big wouldn't change cgroup
bps/iops, but could make it wakeup more frequently, which isn't a big
issue because throtl_slice * 8 is already quite big.
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk.h')
0 files changed, 0 insertions, 0 deletions