Linux-mm Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] promote mapped executable folios after first usage for MGLRU
@ 2026-07-16 10:46 Baolin Wang
  2026-07-16 10:46 ` [PATCH v2 1/2] mm: vmscan: convert folio_referenced() to use vma_flags_t Baolin Wang
  2026-07-16 10:46 ` [PATCH v2 2/2] mm: mglru: promote mapped executable folios after first usage Baolin Wang
  0 siblings, 2 replies; 6+ messages in thread
From: Baolin Wang @ 2026-07-16 10:46 UTC (permalink / raw)
  To: akpm, david, ljs, hannes
  Cc: riel, liam, vbabka, harry, jannh, lance.yang, kasong, qi.zheng,
	shakeel.butt, baohua, axelrasmussen, yuanchu, weixugc, mhocko,
	baolin.wang, linux-mm, linux-kernel

Now MGLRU's protection of mapped executable file folios is less reliable.
Follow the classical LRU's logic, promoting mapped executable file folios
after their first usage to give executable code a better chance to stay in
memory and improve workload performance (See patch 2 for more details).

Changes from v1:
 - Add a new patch to clean up vma flags as preparation.
 - Add a new helper to check exec file folios (per Kaisui).
 - Promote exec file folios in lru_gen_set_refs (Per Sashiko). 

Baolin Wang (2):
  mm: vmscan: convert folio_referenced() to use vma_flags_t
  mm: mglru: promote mapped executable folios after first usage

 include/linux/mm_inline.h |  6 +++++
 include/linux/rmap.h      |  7 +++---
 mm/rmap.c                 | 19 +++++++++------
 mm/vmscan.c               | 51 +++++++++++++++++++++++----------------
 4 files changed, 50 insertions(+), 33 deletions(-)

-- 
2.47.3



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

end of thread, other threads:[~2026-07-16 15:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-16 10:46 [PATCH v2 0/2] promote mapped executable folios after first usage for MGLRU Baolin Wang
2026-07-16 10:46 ` [PATCH v2 1/2] mm: vmscan: convert folio_referenced() to use vma_flags_t Baolin Wang
2026-07-16 11:00   ` David Hildenbrand (Arm)
2026-07-16 10:46 ` [PATCH v2 2/2] mm: mglru: promote mapped executable folios after first usage Baolin Wang
2026-07-16 11:10   ` David Hildenbrand (Arm)
2026-07-16 12:11     ` Baolin Wang

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