Re: [RFC][PATCH 6/7] Account for the number of tasks within container

2007-03-11 Thread Pavel Emelianov
Paul Menage wrote: > On 3/6/07, Pavel Emelianov <[EMAIL PROTECTED]> wrote: >> The idea is: >> >> Task may be "the entity that allocates the resources" and "the >> entity that is a resource allocated". >> >> When task is the first entity it may move across containers >> (that is implemented in your

Re: [RFC][PATCH 6/7] Account for the number of tasks within container

2007-03-11 Thread Pavel Emelianov
Paul Menage wrote: On 3/6/07, Pavel Emelianov [EMAIL PROTECTED] wrote: The idea is: Task may be the entity that allocates the resources and the entity that is a resource allocated. When task is the first entity it may move across containers (that is implemented in your patches). When task

Re: [RFC][PATCH 6/7] Account for the number of tasks within container

2007-03-08 Thread Paul Menage
On 3/6/07, Pavel Emelianov <[EMAIL PROTECTED]> wrote: The idea is: Task may be "the entity that allocates the resources" and "the entity that is a resource allocated". When task is the first entity it may move across containers (that is implemented in your patches). When task is a resource it

Re: [RFC][PATCH 6/7] Account for the number of tasks within container

2007-03-08 Thread Paul Menage
On 3/6/07, Pavel Emelianov [EMAIL PROTECTED] wrote: The idea is: Task may be the entity that allocates the resources and the entity that is a resource allocated. When task is the first entity it may move across containers (that is implemented in your patches). When task is a resource it

Re: [RFC][PATCH 6/7] Account for the number of tasks within container

2007-03-06 Thread Pavel Emelianov
Paul Menage wrote: > Hi Pavel, > > On 3/6/07, Pavel Emelianov <[EMAIL PROTECTED]> wrote: >> diff -upr linux-2.6.20.orig/include/linux/sched.h >> linux-2.6.20-0/include/linux/sched.h >> --- linux-2.6.20.orig/include/linux/sched.h 2007-03-06 >> 13:33:28.0 +0300 >> +++

Re: [RFC][PATCH 6/7] Account for the number of tasks within container

2007-03-06 Thread Paul Menage
Hi Pavel, On 3/6/07, Pavel Emelianov <[EMAIL PROTECTED]> wrote: diff -upr linux-2.6.20.orig/include/linux/sched.h linux-2.6.20-0/include/linux/sched.h --- linux-2.6.20.orig/include/linux/sched.h 2007-03-06 13:33:28.0 +0300 +++ linux-2.6.20-0/include/linux/sched.h2007-03-06

[RFC][PATCH 6/7] Account for the number of tasks within container

2007-03-06 Thread Pavel Emelianov
Small and simple - each fork()/clone() is accounted and rejected when limit is hit. diff -upr linux-2.6.20.orig/include/linux/numproc_container.h linux-2.6.20-0/include/linux/numproc_container.h --- linux-2.6.20.orig/include/linux/numproc_container.h 2007-03-06 13:39:17.0 +0300 +++

[RFC][PATCH 6/7] Account for the number of tasks within container

2007-03-06 Thread Pavel Emelianov
Small and simple - each fork()/clone() is accounted and rejected when limit is hit. diff -upr linux-2.6.20.orig/include/linux/numproc_container.h linux-2.6.20-0/include/linux/numproc_container.h --- linux-2.6.20.orig/include/linux/numproc_container.h 2007-03-06 13:39:17.0 +0300 +++

Re: [RFC][PATCH 6/7] Account for the number of tasks within container

2007-03-06 Thread Paul Menage
Hi Pavel, On 3/6/07, Pavel Emelianov [EMAIL PROTECTED] wrote: diff -upr linux-2.6.20.orig/include/linux/sched.h linux-2.6.20-0/include/linux/sched.h --- linux-2.6.20.orig/include/linux/sched.h 2007-03-06 13:33:28.0 +0300 +++ linux-2.6.20-0/include/linux/sched.h2007-03-06

Re: [RFC][PATCH 6/7] Account for the number of tasks within container

2007-03-06 Thread Pavel Emelianov
Paul Menage wrote: Hi Pavel, On 3/6/07, Pavel Emelianov [EMAIL PROTECTED] wrote: diff -upr linux-2.6.20.orig/include/linux/sched.h linux-2.6.20-0/include/linux/sched.h --- linux-2.6.20.orig/include/linux/sched.h 2007-03-06 13:33:28.0 +0300 +++