Skip to content

introduce kcompactd and stop compacting in kswapd

Vlastimil Babka linux-mm lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 22 repliesIn review
  2. v1 RFC3 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- do only sync compaction in kcompactd (Mel)
- only compact zones up to classzone_idx (Mel)
- move wakeup_kcompactd() call from patch 2 to patch 4 (Mel)
- Patch 3 is separate from Patch 2 for review purposes, although I would just fold it in the end (Mel)
- Patch 5 is new
- retested on 4.5-rc1 with 5 repeats, which removed some counter-intuitive results and added more confidence

[1] https://lkml.org/lkml/2016/1/26/558

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5mm, kswapd: remove bogus check of balance_classzone_idxmm/vmscan.c+1 -20 replies
2/5mm, compaction: introduce kcompactdinclude/linux/compaction.h include/linux/mmzone.h include/linux/vm_event_item.h +5 more+309 -22 replies
3/5mm, memory hotplug: small cleanup in online_pages()mm/memory_hotplug.c+3 -30 replies
4/5mm, kswapd: replace kswapd compaction with waking up kcompactdmm/vmscan.c+48 -9817 replies
5/5mm, compaction: adapt isolation_suitable flushing to kcompactdmm/compaction.c mm/internal.h+6 -51 reply

Reviews trailers per patch

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

PatchVlastimil Babka
1/5
2/5
3/5
4/5
5/5Singed-off-by Singed-off-by

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/5] introduce kcompactd and stop compacting in kswapd

The previous RFC is here [1]. It didn't have a cover letter, so the description and results are in the individual patches.

Changes since v1:
- do only sync compaction in kcompactd (Mel)
- only compact zones up to classzone_idx (Mel)
- move wakeup_kcompactd() call from patch 2 to patch 4 (Mel)
- Patch 3 is separate from Patch 2 for review purposes, although I would just fold it in the end (Mel)
- Patch 5 is new
- retested on 4.5-rc1 with 5 repeats, which removed some counter-intuitive results and added more confidence

[1] https://lkml.org/lkml/2016/1/26/558

Vlastimil Babka (5):
mm, kswapd: remove bogus check of balance_classzone_idx mm, compaction: introduce kcompactd
mm, memory hotplug: small cleanup in online_pages() mm, kswapd: replace kswapd compaction with waking up kcompactd mm, compaction: adapt isolation_suitable flushing to kcompactd

 include/linux/compaction.h        |  16 +++
 include/linux/mmzone.h            |   6 +
 include/linux/vm_event_item.h     |   1 +
 include/trace/events/compaction.h |  55 +++++++++
 mm/compaction.c                   | 230 +++++++++++++++++++++++++++++++++++++-
 mm/internal.h                     |   1 +
 mm/memory_hotplug.c               |  15 ++-
 mm/page_alloc.c                   |   3 +
 mm/vmscan.c                       | 147 ++++++++----------------
 mm/vmstat.c                       |   1 +
 10 files changed, 366 insertions(+), 109 deletions(-)
Signature · 7 lines
2.7.0

--
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>