Skip to content

RFC mm/compaction: honour compact_unevictable_allowed in mlock race and alloc_contig path

Wandun Chen linux-mm linux-rt-devel linux-trace-kernel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 17 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mm/compaction: skip isolate mlocked folios when compact_unevictable_allowed=0mm/compaction.c+2 -112 replies
2/3mm/compaction: add per-folio isolation tracepointinclude/trace/events/compaction.h mm/compaction.c+28 -00 replies
3/3mm/compaction: respect compact_unevictable_allowed in alloc_contig pathinclude/linux/compaction.h mm/compaction.c mm/internal.h +1 more+16 -22 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchSebastian Andrzej Siewior
1/3
2/3Inspired-by
3/3

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

Read the v1 thread

Cover letter [RFC PATCH 0/3] mm/compaction: honour compact_unevictable_allowed in mlock race and alloc_contig path

From: Wandun Chen <[email protected]>

vm.compact_unevictable_allowed=0 is meant to keep compaction from touching unevictable folios. In practice there are still two paths where it does not take effect. This series fixes them and adds a tracepoint to make such issues easier to diagnose in the future.

Wandun Chen (3):
mm/compaction: skip isolate mlocked folios when
compact_unevictable_allowed=0
mm/compaction: add per-folio isolation tracepoint mm/compaction: respect compact_unevictable_allowed in alloc_contig
path

 include/linux/compaction.h        |  6 ++++++
 include/trace/events/compaction.h | 26 ++++++++++++++++++++++++++
 mm/compaction.c                   | 14 +++++++++++---
 mm/internal.h                     |  1 +
 mm/page_alloc.c                   |  2 ++
 5 files changed, 46 insertions(+), 3 deletions(-)
Signature · 1 line
2.43.0