diff options
author | Wu Fengguang <fengguang.wu@intel.com> | 2010-08-29 23:33:20 -0600 |
---|---|---|
committer | Wu Fengguang <fengguang.wu@intel.com> | 2011-10-31 00:29:38 +0800 |
commit | ece13ac31bbe492d940ba0bc4ade2ae1521f46a5 (patch) | |
tree | 2bfddab0f62999bf595a72913b79cabafbad0e40 /mm | |
parent | b48c104d2211b0ac881a71f5f76a3816225f8111 (diff) | |
download | op-kernel-dev-ece13ac31bbe492d940ba0bc4ade2ae1521f46a5.zip op-kernel-dev-ece13ac31bbe492d940ba0bc4ade2ae1521f46a5.tar.gz |
writeback: trace event balance_dirty_pages
Useful for analyzing the dynamics of the throttling algorithms and
debugging user reported problems.
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/page-writeback.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mm/page-writeback.c b/mm/page-writeback.c index e3c2d8b..45d36f7 100644 --- a/mm/page-writeback.c +++ b/mm/page-writeback.c @@ -1103,12 +1103,34 @@ static void balance_dirty_pages(struct address_space *mapping, pos_ratio >> RATELIMIT_CALC_SHIFT; pause = (HZ * pages_dirtied) / (task_ratelimit | 1); if (unlikely(pause <= 0)) { + trace_balance_dirty_pages(bdi, + dirty_thresh, + background_thresh, + nr_dirty, + bdi_thresh, + bdi_dirty, + dirty_ratelimit, + task_ratelimit, + pages_dirtied, + pause, + start_time); pause = 1; /* avoid resetting nr_dirtied_pause below */ break; } pause = min(pause, max_pause); pause: + trace_balance_dirty_pages(bdi, + dirty_thresh, + background_thresh, + nr_dirty, + bdi_thresh, + bdi_dirty, + dirty_ratelimit, + task_ratelimit, + pages_dirtied, + pause, + start_time); __set_current_state(TASK_UNINTERRUPTIBLE); io_schedule_timeout(pause); |