Re: [RFD][PATCH] memcg: Move Usage at Task Move

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > 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?

YAMAMOTO Takashi
_______________________________________________
Containers mailing list
Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers

[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux