Re: -mm merge plans for 2.6.26 (memcgroup)

From: Paul Menage
Date: Mon Apr 21 2008 - 11:49:01 EST


On Mon, Apr 21, 2008 at 2:42 AM, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
> > This would enable the memory controller by default, it can be disabled
> > using cgroup_disable=memory at boot time.
>
> how about working on a runtime switch that only enables the whole
> memcgroup machinery when an actual cgroup gets created - and disable it
> again once the last cgroup goes.
>

Or more specifically, enable memory tracking when the mem controller
gets bound to a cgroup hierarchy, and disable it when the controller
is unbound.

Paul
--
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/