Re: [RFC] libcg: design and plans

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul Menage
Date: Wednesday, March 5, 2008 - 11:55 am

On Wed, Mar 5, 2008 at 6:24 AM, Balbir Singh <balbir@linux.vnet.ibm.com> wrote:

I think there are two different kinds of sharing going on here:

- A and B each have individual limits, and you additionally want their
total usage to be capped by some parent limit. E.g. A and B each have
a 100MB memory limit, and you want their total combined usage to not
exceed 150MB. This kind of sharing has to be handled by the resource
counter abstraction

- you want A and B to be treated identically for the purposes of some
particular resource, e.g. you want a single CFS group to which all
threads in A and B are equal members, or a single memory cgroup for
all allocations by A or B, or the same device control table for A and
B (but you want A and B to be treated separately for some other
resource type). This can be handled in userspace in the way I outlined
above, and it would be good if libcg could handle the setup required
for this. It could also be done in the kernel with something like the
parent/child subsystem group inheritance that I also mentioned above,
if there was demand. But if so it should be a property of cgroups
rather than any individual resource controller, since it's a feature
that could be useful for all cgroups.

Paul
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[RFC] libcg: design and plans, Dhaval Giani, (Tue Mar 4, 8:23 am)
Re: [RFC] libcg: design and plans, Xpl++, (Tue Mar 4, 10:15 am)
Re: [RFC] libcg: design and plans, Dave Hansen, (Tue Mar 4, 11:05 am)
Re: [RFC] libcg: design and plans, Balbir Singh, (Tue Mar 4, 9:48 pm)
Re: [RFC] libcg: design and plans, Dhaval Giani, (Tue Mar 4, 10:26 pm)
Re: [RFC] libcg: design and plans, Paul Menage, (Tue Mar 4, 11:15 pm)
Re: [Devel] Re: [RFC] libcg: design and plans, Denis V. Lunev, (Wed Mar 5, 12:17 am)
Re: [RFC] libcg: design and plans, Dhaval Giani, (Wed Mar 5, 3:33 am)
Re: [RFC] libcg: design and plans, Paul Menage, (Wed Mar 5, 3:41 am)
Re: [RFC] libcg: design and plans, Dhaval Giani, (Wed Mar 5, 4:07 am)
Re: [Devel] Re: [RFC] libcg: design and plans, Balbir Singh, (Wed Mar 5, 4:48 am)
Re: [RFC] libcg: design and plans, Paul Menage, (Wed Mar 5, 4:51 am)
Re: [RFC] libcg: design and plans, Xpl++, (Wed Mar 5, 4:56 am)
Re: [RFC] libcg: design and plans, Balbir Singh, (Wed Mar 5, 7:24 am)
Re: [RFC] libcg: design and plans, Dhaval Giani, (Wed Mar 5, 8:53 am)
Re: [RFC] libcg: design and plans, Paul Menage, (Wed Mar 5, 11:55 am)
Re: [RFC] libcg: design and plans, Xpl++, (Wed Mar 5, 12:36 pm)
Re: [RFC] libcg: design and plans, Rik van Riel, (Thu Mar 20, 3:04 pm)