lkml.org 
[lkml]   [2018]   [Jan]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[patch -mm v2 0/3] mm, memcg: introduce oom policies
There are three significant concerns about the cgroup aware oom killer as
it is implemented in -mm:

(1) allows users to evade the oom killer by creating subcontainers or
using other controllers since scoring is done per cgroup and not
hierarchically,

(2) does not allow the user to influence the decisionmaking, such that
important subtrees cannot be preferred or biased, and

(3) unfairly compares the root mem cgroup using completely different
criteria than leaf mem cgroups and allows wildly inaccurate results
if oom_score_adj is used.

This patchset aims to fix (1) completely and, by doing so, introduces a
completely extensible user interface that can be expanded in the future.

It eliminates the mount option for the cgroup aware oom killer entirely
since it is now enabled through the root mem cgroup's oom policy.

It preserves memory.oom_group behavior.
---
Applied on top of -mm.

Documentation/cgroup-v2.txt | 64 ++++++++++++++++++++++++++++-----------------
include/linux/cgroup-defs.h | 5 ----
include/linux/memcontrol.h | 21 +++++++++++++++
kernel/cgroup/cgroup.c | 13 +--------
mm/memcontrol.c | 64 ++++++++++++++++++++++++++++++++++++---------
5 files changed, 114 insertions(+), 53 deletions(-)

\
 
 \ /
  Last update: 2018-01-26 00:55    [W:0.209 / U:0.496 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site