All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH v2 0/7] cgroup-aware OOM killer
@ 2017-06-01 18:35 Roman Gushchin
  2017-06-01 18:35   ` Roman Gushchin
                   ` (7 more replies)
  0 siblings, 8 replies; 43+ messages in thread
From: Roman Gushchin @ 2017-06-01 18:35 UTC (permalink / raw)
  To: linux-mm; +Cc: Roman Gushchin

This patchset makes the OOM killer cgroup-aware.

Patches 1-3 are simple refactorings of the OOM killer code,
required to reuse the code in the memory controller.
Patches 4 & 5 are introducing new memcg settings:
oom_kill_all_tasks and oom_score_adj.
Patch 6 introduces the cgroup-aware OOM killer.
Patch 7 is docs update.

v1:
  https://lkml.org/lkml/2017/5/18/969

v2:
  - Reworked victim selection based on feedback
    from Michal Hocko, Vladimir Davydov and Johannes Weiner
  - "Kill all tasks" is now an opt-in option, by default
    only one process will be killed
  - Added per-cgroup oom_score_adj
  - Refined oom score calculations, suggested by Vladimir Davydov
  - Converted to a patchset


Roman Gushchin (7):
  mm, oom: refactor select_bad_process() to take memcg as an argument
  mm, oom: split oom_kill_process() and export __oom_kill_process()
  mm, oom: export oom_evaluate_task() and select_bad_process()
  mm, oom: introduce oom_kill_all_tasks option for memory cgroups
  mm, oom: introduce oom_score_adj for memory cgroups
  mm, oom: cgroup-aware OOM killer
  mm,oom,docs: describe the cgroup-aware OOM killer

 Documentation/cgroup-v2.txt |  47 ++++++++-
 include/linux/memcontrol.h  |  19 ++++
 include/linux/oom.h         |   6 ++
 mm/memcontrol.c             | 247 ++++++++++++++++++++++++++++++++++++++++++++
 mm/oom_kill.c               | 137 +++++++++++++-----------
 5 files changed, 392 insertions(+), 64 deletions(-)

-- 
2.7.4

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 43+ messages in thread

end of thread, other threads:[~2017-06-26 11:55 UTC | newest]

Thread overview: 43+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-01 18:35 [RFC PATCH v2 0/7] cgroup-aware OOM killer Roman Gushchin
2017-06-01 18:35 ` [RFC PATCH v2 1/7] mm, oom: refactor select_bad_process() to take memcg as an argument Roman Gushchin
2017-06-01 18:35   ` Roman Gushchin
2017-06-04 19:25   ` Vladimir Davydov
2017-06-04 19:25     ` Vladimir Davydov
2017-06-04 19:25     ` Vladimir Davydov
2017-06-04 22:50   ` David Rientjes
2017-06-04 22:50     ` David Rientjes
2017-06-06 16:20     ` Roman Gushchin
2017-06-06 16:20       ` Roman Gushchin
2017-06-06 20:42       ` David Rientjes
2017-06-06 20:42         ` David Rientjes
2017-06-08 15:59         ` Roman Gushchin
2017-06-08 15:59           ` Roman Gushchin
2017-06-08 15:59           ` Roman Gushchin
2017-06-01 18:35 ` [RFC PATCH v2 2/7] mm, oom: split oom_kill_process() and export __oom_kill_process() Roman Gushchin
2017-06-01 18:35   ` Roman Gushchin
2017-06-01 18:35 ` [RFC PATCH v2 3/7] mm, oom: export oom_evaluate_task() and select_bad_process() Roman Gushchin
2017-06-01 18:35   ` Roman Gushchin
2017-06-01 18:35 ` [RFC PATCH v2 4/7] mm, oom: introduce oom_kill_all_tasks option for memory cgroups Roman Gushchin
2017-06-01 18:35   ` Roman Gushchin
2017-06-04 19:30   ` Vladimir Davydov
2017-06-04 19:30     ` Vladimir Davydov
2017-06-04 19:30     ` Vladimir Davydov
2017-06-01 18:35 ` [RFC PATCH v2 5/7] mm, oom: introduce oom_score_adj " Roman Gushchin
2017-06-01 18:35   ` Roman Gushchin
2017-06-01 18:35   ` Roman Gushchin
2017-06-04 19:39   ` Vladimir Davydov
2017-06-04 19:39     ` Vladimir Davydov
2017-06-01 18:35 ` [RFC PATCH v2 6/7] mm, oom: cgroup-aware OOM killer Roman Gushchin
2017-06-01 18:35   ` Roman Gushchin
2017-06-04 20:43   ` Vladimir Davydov
2017-06-04 20:43     ` Vladimir Davydov
2017-06-06 15:59     ` Roman Gushchin
2017-06-06 15:59       ` Roman Gushchin
2017-06-06 15:59       ` Roman Gushchin
2017-06-01 18:35 ` [RFC PATCH v2 7/7] mm,oom,docs: describe the " Roman Gushchin
2017-06-01 18:35   ` Roman Gushchin
2017-06-09 16:30 ` [RFC PATCH v2 0/7] " Michal Hocko
2017-06-22 17:10   ` Roman Gushchin
2017-06-23 13:43     ` Michal Hocko
2017-06-23 18:39       ` Roman Gushchin
2017-06-26 11:55         ` Michal Hocko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.