Skip to content

Use up free swap space before reaching OOM kill

Minchan Kim linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 27 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm: prevent to add a page to swap if may_writepage is unsetmm/vmscan.c+2 -016 replies
2/2mm: forcely swapout when we are out of page cachemm/vmscan.c+6 -011 replies

Reviews trailers per patch

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

PatchJohannes WeinerRik van Riel
1/2A-b A-b Not-yet-Acked-by
2/2

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

Read the v1 thread

Cover letter [PATCH 0/2] Use up free swap space before reaching OOM kill

Recently, Luigi reported there are lots of free swap space when OOM happens. It's easily reproduced on zram-over-swap, where many instance of memory hogs are running and laptop_mode = 2.
http://marc.info/?l=linux-mm&m=135421750914807&w=2

This patchset fixes the problem. In fact, if we apply one of two, we can fix the problem but I send two all because it's separate issue although each of them solves this issues.

Andrew, Could you replace [1] with this patchset in mmotm? I think this patchset is better than [1].

[1] mm-swap-out-anonymous-page-regardless-of-laptop_mode.patch

Minchan Kim (2):
[1/2] mm: prevent to add a page to swap if may_writepage is unset [2/2] mm: forcely swapout when we are out of page cache

 mm/vmscan.c |    8 ++++++++
 1 file changed, 8 insertions(+)
Signature · 1 line
1.7.9.5