lkml.org 
[lkml]   [2008]   [Apr]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: -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



\
 
 \ /
  Last update: 2008-04-21 12:45    [W:0.047 / U:1.544 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site