[Devel] Re: [RFD][PATCH] memcg: Move Usage at Task Move
KAMEZAWA Hiroyuki
kamezawa.hiroyu at jp.fujitsu.com
Wed Jun 11 23:51:41 PDT 2008
On Thu, 12 Jun 2008 14:20:33 +0900 (JST)
yamamoto at valinux.co.jp (YAMAMOTO Takashi) wrote:
> > > i think that you can redirect new charges in TASK to DEST
> > > so that usage_of_task(TASK) will not grow.
> > >
> >
> > Hmm, to do that, we have to handle complicated cgroup's attach ops.
> >
> > at this moving, memcg is pointed by
> > - TASK->cgroup->memcg(CURR)
> > after move
> > - TASK->another_cgroup->memcg(DEST)
> >
> > This move happens before cgroup is replaced by another_cgroup.
>
> currently cgroup_attach_task calls ->attach callbacks after
> assigning tsk->cgroups. are you talking about something else?
>
Sorry, I move all in can_attach(). s/attach/can_attach
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