Messages in this thread | | | Date | Mon, 21 Apr 2008 19:40:23 +0900 | From | KAMEZAWA Hiroyuki <> | Subject | Re: -mm merge plans for 2.6.26 (memcgroup) |
| |
On Mon, 21 Apr 2008 15:51:21 +0530 Balbir Singh <balbir@linux.vnet.ibm.com> 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
| |