[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250918050431.36855-1-lance.yang@linux.dev>
Date: Thu, 18 Sep 2025 13:04:29 +0800
From: Lance Yang <lance.yang@...ux.dev>
To: akpm@...ux-foundation.org,
david@...hat.com,
lorenzo.stoakes@...cle.com
Cc: ziy@...dia.com,
baolin.wang@...ux.alibaba.com,
Liam.Howlett@...cle.com,
npache@...hat.com,
ryan.roberts@....com,
dev.jain@....com,
baohua@...nel.org,
ioworker0@...il.com,
kirill@...temov.name,
hughd@...gle.com,
mpenttil@...hat.com,
linux-kernel@...r.kernel.org,
linux-mm@...ck.org
Subject: [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/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
Powered by blists - more mailing lists