lkml.org 
[lkml]   [2011]   [Feb]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[patch 0/2] memcg: clean up limit checking
On Mon, Jan 31, 2011 at 04:24:48PM -0800, Andrew Morton wrote:
> On Tue, 1 Feb 2011 01:04:55 +0100
> Johannes Weiner <hannes@cmpxchg.org> wrote:
>
> > Maybe it would be better to use res_counter_margin(cnt) >= wanted
> > throughout the code.
>
> yup.

Okay, I cleaned it all up a bit for .39. While doing so, I also found
that we are reclaiming one page too much when pushing back on behalf
of soft limits.

So 1/2 fixes the soft limit reclaim off-by-one-page, and 2/2 reduces
all the limit checks to two functions.


\
 
 \ /
  Last update: 2011-02-03 13:57    [from the cache]
©2003-2011 Jasper Spaans