[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250914143547.27687-1-lance.yang@linux.dev>
Date: Sun, 14 Sep 2025 22:35:44 +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,
linux-kernel@...r.kernel.org,
linux-mm@...ck.org
Subject: [PATCH mm-new 0/3] mm/khugepaged: optimize collapse candidate detection
Hi all,
This series contains a couple of small optimizations for the scanner. The
idea is to detect unsuitable collapse candidates, like mlocked VMAs or
guard PTEs, earlier in the scan and bail out to avoid wasted work ;)
Thanks,
Lance
Lance Yang (3):
mm/khugepaged: skip unsuitable VMAs earlier in
khugepaged_scan_mm_slot()
mm: clean up and expose is_guard_pte_marker()
mm/khugepaged: abort collapse scan on guard PTEs
include/linux/mm.h | 6 +++++-
include/linux/swapops.h | 6 ++++++
mm/huge_memory.c | 2 +-
mm/khugepaged.c | 26 +++++++++++++++++++++++++-
mm/madvise.c | 6 ------
5 files changed, 37 insertions(+), 9 deletions(-)
--
2.49.0
Powered by blists - more mailing lists