[Devel] Re: [PATCH 2/2] Make res_counter hierarchical
KAMEZAWA Hiroyuki
kamezawa.hiroyu at jp.fujitsu.com
Tue Mar 11 02:13:25 PDT 2008
On Tue, 11 Mar 2008 01:57:43 -0700
"Paul Menage" <menage at google.com> wrote:
> Alternatively, you could make it possible for a res_counter to have
> multiple parents (each of which constrains the overall usage of it and
> its siblings), and have three counters for each cgroup:
>
> - vm_counter: overall virtual memory limit for group, parent =
> parent_mem_cgroup->vm_counter
>
> - mem_counter: main memory limit for group, parents = vm_counter,
> parent_mem_cgroup->mem_counter
>
> - swap_counter: swap limit for group, parents = vm_counter,
> parent_mem_cgroup->swap_counter
>
or remove all relationship among counters of *different* type of resources.
user-land-daemon will do enough jobs.
Thanks,
-Kame
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list