lkml.org 
[lkml]   [2009]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH 4/4] Memory controller soft limit reclaim on contention (v3)
    Date
    Hi Balbir,

    > @@ -2015,9 +2016,12 @@ static int kswapd(void *p)
    > finish_wait(&pgdat->kswapd_wait, &wait);
    >
    > if (!try_to_freeze()) {
    > + struct zonelist *zl = pgdat->node_zonelists;
    > /* We can speed up thawing tasks if we don't call
    > * balance_pgdat after returning from the refrigerator
    > */
    > + if (!order)
    > + mem_cgroup_soft_limit_reclaim(zl, GFP_KERNEL);
    > balance_pgdat(pgdat, order);
    > }
    > }

    kswapd's roll is increasing free pages until zone->pages_high in "own node".
    mem_cgroup_soft_limit_reclaim() free one (or more) exceed page in any node.

    Oh, well.
    I think it is not consistency.

    if mem_cgroup_soft_limit_reclaim() is aware to target node and its pages_high,
    I'm glad.






    \
     
     \ /
      Last update: 2009-03-02 04:11    [W:0.045 / U:0.072 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site