Re: [PATCH mmotm 1/2] memcg: add interface to reset limits

From: Daisuke Nishimura
Date: Wed Jun 03 2009 - 01:47:26 EST


On Wed, 03 Jun 2009 13:16:27 +0800, Li Zefan <lizf@xxxxxxxxxxxxxx> wrote:
> Daisuke Nishimura wrote:
> > Setting mem.limit or memsw.limit to 0 has no meaning
> > in actual use(no process can run in such condition).
> >
>
> I wrote a test program that set mem.limit to 0 to test
> oom in memcg, and now it is in LTP, though I can modify
> it accordingly.
>
Thank you for your information, there is an acutual user then.

> > We don't have interface to reset mem.limit or memsw.limit now,
> > so let's reset the mem.limit or memsw.limit to default(unlimited)
> > when they are being set to 0.
> >
>
> The idea of having a way to set the limit to unlimited is good,
> but how about allow this by writing -1 to mem.limit?
>
O.K.
I'll try it.


Thanks,
Daisuke Nishimura.
--
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/