OpenVZ Forum


Home » Mailing lists » Devel » [Patch04/05]- Containers: Core Container support
Re: [Patch04/05]- Containers: Core Container support [message #6575 is a reply to message #6542] Wed, 20 September 2006 16:19 Go to previous message
Rohit Seth is currently offline  Rohit Seth
Messages: 101
Registered: August 2006
Senior Member
On Wed, 2006-09-20 at 11:32 +0900, KAMEZAWA Hiroyuki wrote:
> On Thu, 14 Sep 2006 18:42:30 -0700
> Rohit Seth <rohitseth@google.com> wrote:
>
> > This patch has the definitions and other core part of container support
> > implementing all the counters for different resources (like tasks, anon
> > memory etc.).
> >
>
> > +int container_add_task(struct task_struct *task, struct task_struct *parent,
> > + struct container_struct *ctn)
> > +{
>
> What should happen if a process of thread-group is newly added/removed ?
> (I think only thread-group-leader can be added/removed)
>


If there are multiple threads then each thread will need to be
individually added into the container. This keeps the semantics clean
and implementation simple.

-rohit
 
Read Message
Read Message
Read Message
Previous Topic: [PATCH] Use kill_cad_pid() in ip22-reset.c
Next Topic: [patch01/05]:Containers(V2): Documentation
Goto Forum:
  


Current Time: Sat Aug 23 12:24:07 GMT 2025

Total time taken to generate the page: 0.05894 seconds