Skip to content

mm, oom: do not grant oom victims full memory reserves access

Michal Hocko linux-mm lkml 3 versions – Applied

Status from this message: [merged] mm-replace-tif_memdie-checks-by-tsk_is_oom_victim.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/22 patches 0 repliesApplied 2/2
  2. v2 posting 1/21 of 2 patches 3 repliesSuperseded
  3. v12 patches 19 repliesSuperseded

Patches in v2 posting 2/2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2mm, oom: do not rely on TIF_MEMDIE for memory reserves accessmm/internal.h mm/oom_kill.c mm/page_alloc.c+73 -230 repliesApplied
2/2mm: replace TIF_MEMDIE checks by tsk_is_oom_victimkernel/cgroup/cpuset.c mm/memcontrol.c+6 -50 repliesApplied

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchMel Gorman
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] mm, oom: do not grant oom victims full memory reserves access

Hi,
this is a second version of the series previously posted [1]. Tetsuo has noticed a bug I've introduced during the rebase and also pointed out reserves access changes on nommu arches which I have addressed as well. Mel had some more feedback which is hopefully addressed as well. There were no further comments so I am reposting and asking for inclusion.

this is a part of a larger series I posted back in Oct last year [2]. I have dropped patch 3 because it was incorrect and patch 4 is not applicable without it.

The primary reason to apply patch 1 is to remove a risk of the complete memory depletion by oom victims. While this is a theoretical risk right now there is a demand for memcg aware oom killer which might kill all processes inside a memcg which can be a lot of tasks. That would make the risk quite real.

This issue is addressed by limiting access to memory reserves. We no longer use TIF_MEMDIE to grant the access and use tsk_is_oom_victim instead. See Patch 1 for more details. Patch 2 is a trivial follow up cleanup.

I would still like to get rid of TIF_MEMDIE completely but I do not have time to do it now and it is not a pressing issue.

[1] http://lkml.kernel.org/r/[email protected]
[2] http://lkml.kernel.org/r/[email protected]

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