diff options
author | Tejun Heo <tj@kernel.org> | 2020-09-17 20:44:53 -0400 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-09-25 08:35:02 -0600 |
commit | 33a1fe6d822b3552fcad9bbb059b2fb93566f4c9 (patch) | |
tree | 9eaba6efa7e11600992033bcf9a2fa5e7e032f41 /Documentation/fb/intelfb.rst | |
parent | ab8df828b5f6eab6377fa0c349c92a3678498256 (diff) | |
download | linux-33a1fe6d822b3552fcad9bbb059b2fb93566f4c9.tar.gz linux-33a1fe6d822b3552fcad9bbb059b2fb93566f4c9.tar.bz2 linux-33a1fe6d822b3552fcad9bbb059b2fb93566f4c9.zip |
iocost: replace nr_shortages cond in ioc_forgive_debts() with busy_level one
Debt reduction was blocked if any iocg was short on budget in the past
period to avoid reducing debts while some iocgs are saturated. However, this
ends up unnecessarily blocking debt reduction due to temporary local
imbalances when the device is generally being underutilized, while also
failing to block when the underlying device is overwhelmed and the usage
becomes low from high latency.
Given that debt accumulation mostly happens with swapout bursts which can
significantly deteriorate the underlying device's latency response, the
current logic is not great.
Let's replace it with ioc->busy_level based condition so that we block debt
reduction when the underlying device is being saturated. ioc_forgive_debts()
call is moved after busy_level determination.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'Documentation/fb/intelfb.rst')
0 files changed, 0 insertions, 0 deletions