lkml.org 
[lkml]   [2010]   [Nov]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 03/13] writeback: per-task rate limit on balance_dirty_pages()
    From
    Date
    On Wed, 2010-11-17 at 12:27 +0800, Wu Fengguang wrote:
    > + if (unlikely(current->nr_dirtied >= current->nr_dirtied_pause ||
    > + bdi->dirty_exceeded)) {
    > + balance_dirty_pages(mapping, current->nr_dirtied);
    > + current->nr_dirtied = 0;
    > }

    Was it a conscious choice to use
    current->nr_dirtied = 0
    over
    current->nr_dirtied -= current->nr_dirtied_pause
    ?

    The former will cause a drift in pause times due to truncation of the
    excess.


    \
     
     \ /
      Last update: 2010-11-24 11:25    [W:0.018 / U:19.580 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site