Kirill, please review.

--
Best regards,

Konstantin Khorenko,
Virtuozzo Linux Kernel Team

On 05/21/2015 12:50 PM, Vladimir Davydov wrote:
> 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(-)
> 
_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to