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-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z9ho77H94jsLHDNu@gourry-fedora-PF4VCD3F>
Date: Mon, 17 Mar 2025 14:24:47 -0400
From: Gregory Price <gourry@...rry.net>
To: Bharata B Rao <bharata@....com>
Cc: linux-kernel@...r.kernel.org, linux-mm@...ck.org,
	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, 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, yuanchu@...gle.com
Subject: Re: [RFC PATCH 2/4] mm: kpromoted: Hot page info collection and
 promotion daemon

On Mon, Mar 17, 2025 at 09:52:29PM +0530, Bharata B Rao wrote:
> > 
> > > kpromoted_recorded_accesses 960620 /* Number of recorded accesses */
> > > kpromoted_recorded_hwhints 960620  /* Nr accesses via HW hints, IBS in this
> > > case */
> > > kpromoted_recorded_pgtscans 0
> > > kpromoted_record_toptier 638006 /* Nr toptier accesses */
> > > kpromoted_record_added 321234 /* Nr (CXL) accesses that are tracked */
> > > kpromoted_record_exists 1380
> > > kpromoted_mig_right_node 0
> > > kpromoted_mig_non_lru 226
> > > kpromoted_mig_lru_active 47 /* Number of accesses considered for promotion
> > > as determined by folio_test_active() check */
> 
> However disabling demotion has no impact on this number (and hence the
> folio_test_active() check)
>

I've been mulling over what's likely to occur when the Low but not Min
watermark is hit and reclaim is invoked but without demotion enabled.

I'm wonder if kswapd pushes things like r/o pagecache out, only to have
them faulted back into CXL later, while new allocations stick on the
main memory.

You might try MPOL_PREFERRED with CXL node as the target instead of bind
w/ the local node to at least make sure the system is actually
identifying hotness correctly.

~Gregory

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ