Re: [PATCH 0/7] cgroups: Allow to bind/unbind subsystems to/from non-trival hierarchy

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Paul Menage
Date: Thursday, October 28, 2010 - 4:33 pm

On Sun, Oct 24, 2010 at 6:07 PM, Li Zefan <lizf@cn.fujitsu.com> wrote:

I more or less dropped it since I couldn't see a big use for it - all
the examples I had were more easily implemented as basic cgroup
control files (and hence available in all hierarchies automatically)


Not exactly - it meant that you couldn't do a fast dereference via
t->cgroups to get to your cgroup_subsys_state, since there was no
longer a unique css for each task for that subsystem - there would be
one per mounted instance of the subsystem. Instead it became necessary
to follow a chain of pointers to find the appropriate css for the
hierarchy in question.

In general this also means that it's harder for the multi-bound
subsystem have any real-world meaning - it's mostly useful for
stateless subsystems, or ones where the cgroup_subsys_state contents
have no direct connection with machine-wide data.

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

Messages in current thread:
[PATCH 1/7] cgroups: Shrink struct cgroup_subsys, Li Zefan, (Fri Oct 22, 1:09 am)
Re: [PATCH 7/7] cgroups: Update documentation for bindable ..., KAMEZAWA Hiroyuki, (Sun Oct 24, 5:36 pm)
Re: [PATCH 0/7] cgroups: Allow to bind/unbind subsystems t ..., Paul Menage, (Thu Oct 28, 4:33 pm)
Re: [PATCH 1/7] cgroups: Shrink struct cgroup_subsys, Paul Menage, (Thu Oct 28, 4:34 pm)
Re: [PATCH 1/7] cgroups: Shrink struct cgroup_subsys, Paul Menage, (Tue Nov 9, 2:05 pm)
Re: [PATCH 1/7] cgroups: Shrink struct cgroup_subsys, Paul Menage, (Tue Nov 9, 6:53 pm)
Re: [PATCH 1/7] cgroups: Shrink struct cgroup_subsys, Paul Menage, (Tue Nov 9, 7:15 pm)