[Devel] [PATCH rh7 2/2] cgroups: Introduce subgroups_limit control

2017-01-18 Thread Andrey Ryabinin
Having a lot memory cgroups on machine may cause significant slowdown. So we want to limit number of sub-groups that container can create. This patch adds cgroup.subgroups_limit control file for that purpose. The file is present only on container's root cgroup.

[Devel] [PATCH rh7 1/2] cgroups/ve: Introduce CFTYPE_ONLY_ON_VE_ROOT flag for control files

2017-01-18 Thread Andrey Ryabinin
This adds CFTYPE_ONLY_ON_VE_ROOT flag for control files. It will be used in later patch to create cgroup control file which will show up only on ve root cgroups. https://jira.sw.ru/browse/PSBM-33401 Signed-off-by: Andrey Ryabinin --- include/linux/cgroup.h | 1 +