[Devel] [PATCH rh7 0/2] bc: rework "numproc" ubc limit to be based on pids cgroup

Andrey Ryabinin aryabinin at virtuozzo.com
Mon Jun 25 19:22:28 MSK 2018


On 06/25/2018 06:24 PM, Konstantin Khorenko wrote:
> It's time to rework our home brew ubc "numproc" limit to be based on stock pids
> cgroup.
> 
> Note: the semantic will change a bit: now we limit number of possible threads
> in a Container while old ubc "numproc" limited number of tasks.
> 
> Note1: vzctl update is required.
> 
> https://jira.sw.ru/browse/PSBM-86044
> 
> Konstantin Khorenko (2):
>   bc: roll back beancounters-based numer of processes accounting
>   bc: implement ubc "numproc" limit based on pids cgroup
> 
>  include/bc/beancounter.h | 10 ++++++++++
>  include/bc/misc.h        |  2 --
>  kernel/bc/beancounter.c  | 43 +++++++++++++++++++++++++++++++++++++++++--
>  kernel/bc/misc.c         | 10 ----------
>  kernel/bc/proc.c         |  2 ++
>  kernel/cgroup_pids.c     | 38 ++++++++++++++++++++++++++++++++++++++
>  kernel/exit.c            |  1 -
>  kernel/fork.c            |  7 +------
>  8 files changed, 92 insertions(+), 21 deletions(-)
> 

Reviewed-by: Andrey Ryabinin <aryabinin at virtuozzo.com>


More information about the Devel mailing list