Re: [RFC][PATCH -mm 0/5] mem+swap resource controller(trial patch)

KAMEZAWA Hiroyuki
2008-10-20T00:24:34Z

On Fri, 17 Oct 2008 19:48:04 +0900
Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp> wrote:

> Hi.
>
> I think Kamezawa-san is working on this now, I also made
> a trial patch based on Kamezawa-san's v2.
>
yes, I'm now rewriting. I'm now considering whether we can implement easier
protocol or not. But your patch's direction is not far from mine.

> Unfortunately this patch doesn't work(I'll investigate),
> but I post it to promote discussion on this topic.
>
What kind of problems ? accounting is not correct ?

> Major changes from v2:
> - rebased on memcg-update-v7.
> - add a counter to count real swap usage(# of swap entries).
> - add arg "use_swap" to try_to_mem_cgroup_pages() and use it sc->may_swap.
>
>
> Thanks,
> Daisuke Nishimura.