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: <Z-Fhl6rLJH2wweGC@gourry-fedora-PF4VCD3F>
Date: Mon, 24 Mar 2025 09:43:51 -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, dave@...olabs.net,
	yuanchu@...gle.com, hyeonggon.yoo@...com
Subject: Re: [RFC PATCH 2/4] mm: kpromoted: Hot page info collection and
 promotion daemon

On Thu, Mar 06, 2025 at 11:15:30AM +0530, Bharata B Rao wrote:
> kpromoted is a kernel daemon that accumulates hot page info
> from different sources and tries to promote pages from slow
> tiers to top tiers. One instance of this thread runs on each
> node that has CPUs.
>

Hot take: This sounds more like ktieringd not kpromoted

Is it reasonable to split the tracking a promotion logic into separate
interfaces?  This would let us manage, for example, rate-limiting in the
movement interface cleanly without having to care about the tiering
system(s) associated with it.

    my_tiering_magic():
        ... identify hot things ...
        promote(batch_folios, optional_data);
            -> kick daemon thread to wake up and do the promotion
	... continue async things ...

Optional data could be anything from target nodes or accessor info, but
not hotness information.

Then users at least get a clean interface for things like rate-limiting,
and everyone proposing their own take on tiering can consume it.  This
may also be useful for existing users (TPP, reclaim?, etc).

~Gregory

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ