[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b0609437-28df-4773-8058-d68d01030cfb@amd.com>
Date: Mon, 24 Mar 2025 20:04:28 +0530
From: Bharata B Rao <bharata@....com>
To: Gregory Price <gourry@...rry.net>
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 24-Mar-25 7:13 PM, Gregory Price wrote:
> 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).
Yes, Makes sense to split tracking and promotion logic into separate
parts. There is no need for the promotion part to work with the hot page
list that belongs to the tracking part as I have done in this RFC.
Raghu and I already saw that migration part is kind of duplicated in our
patchsets(kmmscand and this) and were thinking of unifying them. Having
clean separation as you suggest will be good.
Regards,
Bharata.
Powered by blists - more mailing lists