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

Konstantin Khorenko khorenko at virtuozzo.com
Mon Jun 25 18:24:16 MSK 2018


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(-)

-- 
2.15.1



More information about the Devel mailing list