[Devel] [PATCH rh7 0/4] sched: fix degradation caused by moving containers to machine.slice

Vladimir Davydov vdavydov at virtuozzo.com
Wed Jul 13 09:37:14 PDT 2016


We have a hack in the scheduler that makes containers' processes run on
the minimal allowed number of cpus, which dramatically improves
performance of some tests if a container has 1 or 2 cpus. This hack
depends on the fact that containers are located under the root cgroup,
so moving them to machine.slice broke it. This patch set fixes it.

https://jira.sw.ru/browse/PSBM-49203

Vladimir Davydov (4):
  sched: account task_group->nr_cpus_active for all cgroups
  sched: make check_cpulimit_spread accept tg instead of cfs_rq
  sched: cleanup !CFS_CPULIMIT code
  sched: use topmost limited ancestor for cpulimit balancing

 kernel/sched/core.c  |  62 ++++++++++++++++++++++++++
 kernel/sched/fair.c  | 120 ++++++++++++++++++---------------------------------
 kernel/sched/sched.h |   2 +
 3 files changed, 107 insertions(+), 77 deletions(-)

-- 
2.1.4



More information about the Devel mailing list