[Devel] [PATCH rh7 0/3] memcg: implement oomguarpages
Vladimir Davydov
vdavydov at parallels.com
Thu May 21 02:50:23 PDT 2015
This patch set adds memory.oom_guarantee file to memory cgroup which
allows to protect a memory cgroup from OOM killer. It works as follows:
OOM killer first selects from processes in cgroups that are above their
OOM guarantee, and only if there is no such it switches to scanning
processes from all cgroups. This behavior is similar to UB_OOMGUARPAGES.
It also adds OOM kills counter to each memory cgroup and synchronizes
beancounters' UB_OOMGUARPAGES resource with oom_guarantee/oom_kill_cnt
obtained from mem_cgroup.
Related to https://jira.sw.ru/browse/PSBM-20089
Vladimir Davydov (3):
memcg: add oom_guarantee
memcg: count oom kills
memcg: sync UB_OOMGUARPAGES
include/linux/memcontrol.h | 13 ++++
include/linux/oom.h | 2 +-
mm/memcontrol.c | 141 ++++++++++++++++++++++++++++++++++++++++++--
mm/oom_kill.c | 15 ++++-
4 files changed, 164 insertions(+), 7 deletions(-)
--
1.7.10.4
More information about the Devel
mailing list