Re: -mm merge plans for 2.6.26 (memcgroup)

From: KAMEZAWA Hiroyuki
Date: Mon Apr 21 2008 - 06:42:04 EST


On Mon, 21 Apr 2008 15:51:21 +0530
Balbir Singh <balbir@xxxxxxxxxxxxxxxxxx> 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.
> >
>
> Sounds like an interesting option to explore. I'll explore that a bit more.
>
Maybe force_empty() will be a help for disabling ;)

- stop accountig new pages.
- calling force_empty if there are no childs.

problem is enabling.

A problem will be that we cannot account page-cache again because
it's on radix-tree when cgroup is re-enabled.


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/