Skip to content

mm/khugepaged: optimize collapse candidate detection

Lance Yang 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 Latest2 patches 17 repliesIn review
  2. v13 patches 21 repliesSuperseded

Changes in v2 from the cover letter

- #01 Dropped patch that skipped mlocked VMAs from THP collapse, per discussion. Thanks a lot to Hugh, Kiryl, Lorenzo, Dev and Mika!
- #02 Pick RB from Lorenzo - thanks!
Update the changelog (per Lorenzo)
Pick AB from David - thanks!
- #03 Reuse SCAN_PTE_NON_PRESENT for guard PTEs (per Lorenzo)
- https://lore.kernel.org/linux-mm/[email protected]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm: make is_guard_pte_marker() available for hugepage collapseinclude/linux/swapops.h mm/madvise.c+6 -62 replies
2/2mm/khugepaged: abort collapse scan on guard PTEsmm/khugepaged.c+10 -015 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchDavid HildenbrandLorenzo StoakesDev JainWei Yang
1/2A-b R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [PATCH mm-new v2 0/2] mm/khugepaged: optimize collapse candidate detection

Hi all,

This series improves the THP scanner by teaching it to detect unsuitable collapse candidates, such as guard PTEs, earlier in the scan to avoid wasted work.

Thanks,
Lance

---
v1 -> v2:
- #01 Dropped patch that skipped mlocked VMAs from THP collapse, per discussion. Thanks a lot to Hugh, Kiryl, Lorenzo, Dev and Mika!
- #02 Pick RB from Lorenzo - thanks!
Update the changelog (per Lorenzo)
Pick AB from David - thanks!
- #03 Reuse SCAN_PTE_NON_PRESENT for guard PTEs (per Lorenzo)
- https://lore.kernel.org/linux-mm/[email protected]

Lance Yang (2):
mm: make is_guard_pte_marker() available for hugepage collapse mm/khugepaged: abort collapse scan on guard PTEs

 include/linux/swapops.h |  6 ++++++
 mm/khugepaged.c         | 10 ++++++++++
 mm/madvise.c            |  6 ------
 3 files changed, 16 insertions(+), 6 deletions(-)
Signature · 1 line
2.49.0