Re: [PATCH 2/2] memcg fix stale swap cache account leak v6

From: KAMEZAWA Hiroyuki
Date: Mon May 11 2009 - 20:46:41 EST


On Mon, 11 May 2009 14:27:11 +0200
Ingo Molnar <mingo@xxxxxxx> wrote:

>
> * KAMEZAWA Hiroyuki <kamezawa.hiroyu@xxxxxxxxxxxxxx> wrote:
>
> > > Isnt the right solution to have a better LRU that is aware of
> > > this, instead of polling around in the hope of cleaning up stale
> > > entries?
> >
> > I tried to modify LRU in the last month but I found it's
> > difficult.
>
> But your patch makes such a correct solution even more difficult to
> achieve, so in that sense it might be a step backwards, right?
>
Hmm...maybe or not. This leak comes from laziness of LRU and trylock() swap handling
for avoiding contentions. So, even if we addd new LRU, we need some trick to do
synchronous work.

Anyway, I'll use Nishimura's one, which is simple.
This is a bug fix and I don't want a patch which needs a half year testing ;)

Thanks,
-Kame

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/