On Tue, May 18, 2010 at 5:04 PM, Sridhar SamudralaYes. In our use-case, this will be called only once per guest interface when the guest comes up.
<samudrala.sridhar@xxxxxxxxx> wrote:
Add a new kernel API to attach a task to current task's cgroupReviewed-by: Paul Menage<menage@xxxxxxxxxx>
in all the active hierarchies.
Signed-off-by: Sridhar Samudrala<sri@xxxxxxxxxx>
It would be more efficient to just attach directly to current->cgroups
rather than potentially creating/destroying one css_set for each
hierarchy until we've completely converged on current->cgroups - but
that would require a bunch of refactoring of the guts of
cgroup_attach_task() to ensure that the right can_attach()/attach()
callbacks are made. That doesn't really seem worthwhile right now for
the initial use, that I imagine isn't going to be
performance-sensitive.