linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH mm-new v2 0/2] mm/khugepaged: optimize collapse candidate detection
@ 2025-09-18  5:04 Lance Yang
  2025-09-18  5:04 ` [PATCH mm-new v2 1/2] mm: make is_guard_pte_marker() available for hugepage collapse Lance Yang
  2025-09-18  5:04 ` [PATCH mm-new v2 2/2] mm/khugepaged: abort collapse scan on guard PTEs Lance Yang
  0 siblings, 2 replies; 20+ messages in thread
From: Lance Yang @ 2025-09-18  5:04 UTC (permalink / raw)
  To: akpm, david, lorenzo.stoakes
  Cc: ziy, baolin.wang, Liam.Howlett, npache, ryan.roberts, dev.jain,
	baohua, ioworker0, kirill, hughd, mpenttil, linux-kernel,
	linux-mm

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/20250914143547.27687-1-lance.yang@linux.dev

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

-- 
2.49.0



^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2025-09-23  2:29 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-18  5:04 [PATCH mm-new v2 0/2] mm/khugepaged: optimize collapse candidate detection Lance Yang
2025-09-18  5:04 ` [PATCH mm-new v2 1/2] mm: make is_guard_pte_marker() available for hugepage collapse Lance Yang
2025-09-18 19:07   ` Zi Yan
2025-09-23  2:29   ` Wei Yang
2025-09-18  5:04 ` [PATCH mm-new v2 2/2] mm/khugepaged: abort collapse scan on guard PTEs Lance Yang
2025-09-18  7:37   ` Dev Jain
2025-09-18  8:11     ` Lance Yang
2025-09-18 10:06       ` Lorenzo Stoakes
2025-09-18 11:10         ` Dev Jain
2025-09-18 10:16   ` Lorenzo Stoakes
2025-09-18 11:11   ` Dev Jain
2025-09-18 18:47   ` David Hildenbrand
2025-09-19  2:41     ` Lance Yang
2025-09-19  7:57       ` David Hildenbrand
2025-09-19  8:26         ` Lance Yang
2025-09-19  4:11     ` Dev Jain
2025-09-18 19:12   ` Zi Yan
2025-09-19  2:44     ` Lance Yang
2025-09-19  3:18       ` Baolin Wang
2025-09-19  3:34         ` Lance Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox