lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250324220301.1273038-1-kinseyho@google.com>
Date: Mon, 24 Mar 2025 15:02:59 -0700
From: Kinsey Ho <kinseyho@...gle.com>
To: linux-mm@...ck.org, linux-kernel@...r.kernel.org
Cc: yuanchu@...gle.com, AneeshKumar.KizhakeVeetil@....com, Hasan.Maruf@....com, 
	Jonathan.Cameron@...wei.com, Michael.Day@....com, akpm@...ux-foundation.org, 
	dave.hansen@...el.com, david@...hat.com, feng.tang@...el.com, 
	gourry@...rry.net, hannes@...xchg.org, honggyu.kim@...com, hughd@...gle.com, 
	jhubbard@...dia.com, k.shutemov@...il.com, kbusch@...a.com, 
	kmanaouil.dev@...il.com, leesuyeon0506@...il.com, leillc@...gle.com, 
	liam.howlett@...cle.com, mgorman@...hsingularity.net, mingo@...hat.com, 
	nadav.amit@...il.com, nphamcs@...il.com, peterz@...radead.org, 
	raghavendra.kt@....com, riel@...riel.com, rientjes@...gle.com, 
	rppt@...nel.org, shivankg@....com, shy828301@...il.com, sj@...nel.org, 
	vbabka@...e.cz, weixugc@...gle.com, willy@...radead.org, 
	ying.huang@...ux.alibaba.com, ziy@...dia.com, dave@...olabs.net, 
	hyeonggon.yoo@...com, bharata@....com, Kinsey Ho <kinseyho@...gle.com>
Subject: [RFC PATCH v1 0/2] mm: multi-gen LRU scanning for page promotion

This patch series introduces a software-based approach to identify
hot pages for promotion in tiered memory systems, particularly those
leveraging CXL-attached memory, by utilizing the Multi-Generational
LRU (MGLRU) framework. This method is designed to complement
hardware-based hotness detection mechanisms like Intel PMU sampling, AMD
IBS, or dedicated CXL memory monitoring units, providing a more
comprehensive view of page access patterns, similar to kmmscand [1].

We propose to utilize MGLRU's existing infrastructure to provide hot
page information. A key benefit here is the reuse of the MGLRU page
table walk code, thus avoiding the overhead and duplication of effort
involved in implementing a separate page table scanning mechanism. The
working set reporting proposal [2] also reuses MGLRU's infrastructure,
but focuses on cold page detection. It provides its own aging daemon,
which could additionally provide hot page information by integrating
this proof-of-concept.

This series relies on kpromoted [3] as the migration engine to implement
the promotion policies. This is just an early proof-of-concept RFC
posted now in the context of LSFMM.

Kinsey Ho (2):
  mm: mglru: generalize page table walk
  mm: klruscand: use mglru scanning for page promotion

 include/linux/mmzone.h |   5 ++
 mm/Kconfig             |   8 ++
 mm/Makefile            |   1 +
 mm/internal.h          |   4 +
 mm/klruscand.c         | 118 +++++++++++++++++++++++++++
 mm/vmscan.c            | 177 ++++++++++++++++++++++++++++++-----------
 6 files changed, 267 insertions(+), 46 deletions(-)
 create mode 100644 mm/klruscand.c

-- 
2.49.0.395.g12beb8f557-goog


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ