diff options
| author | Tejun Heo <[email protected]> | 2015-05-22 18:23:26 -0400 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2015-06-02 08:38:13 -0600 |
| commit | daddfa3cb30ebfe322d50af146d830fd435ddb1f (patch) | |
| tree | 4b67764441edb8e62798565e314759ce048218dd /tools/perf/scripts/python/bin | |
| parent | b1cbc6d40c85639d405fee37c7bb688c3bf468d6 (diff) | |
writeback: add dirty_throttle_control->pos_ratio
wb_position_ratio() is used to calculate pos_ratio, which is used for
two purposes. wb_update_dirty_ratelimit() uses it to adjust
wb->[balanced_]dirty_ratelimit gradually and balance_dirty_pages() to
immediately adjust dirty_ratelimit right before applying it to
determine pause duration.
While wb_update_dirty_ratelimit() is separately rate limited from
balance_dirty_pages(), on the run where the ratelimit is updated, we
end up calculating pos_ratio twice with the same parameters.
This patch adds dirty_throttle_control->pos_ratio.
balance_dirty_pages() calculates it once per run and
wb_update_dirty_ratelimit() uses the value stored in
dirty_throttle_control.
This removes the duplicate calculation and also will help implementing
memcg wb_domain.
Signed-off-by: Tejun Heo <[email protected]>
Cc: Jens Axboe <[email protected]>
Cc: Jan Kara <[email protected]>
Cc: Wu Fengguang <[email protected]>
Cc: Greg Thelen <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions