From: Bharata B Rao <bharata@amd.com>
To: David Rientjes <rientjes@google.com>,
Davidlohr Bueso <dave@stgolabs.net>, Fan Ni <nifan.cxl@gmail.com>,
Gregory Price <gourry@gourry.net>,
Jonathan Cameron <Jonathan.Cameron@huawei.com>,
Joshua Hahn <joshua.hahnjy@gmail.com>,
Raghavendra K T <rkodsara@amd.com>, SeongJae Park <sj@kernel.org>,
Wei Xu <weixugc@google.com>,
Xuezheng Chu <xuezhengchu@huawei.com>,
Yiannis Nikolakopoulos <yiannis@zptcorp.com>,
Zi Yan <ziy@nvidia.com>
Cc: linux-mm@kvack.org
Subject: Re: [Linux Memory Hotness and Promotion] Notes from June 5, 2025
Date: Wed, 18 Jun 2025 09:19:32 +0530 [thread overview]
Message-ID: <e6eec050-ad35-4380-8da7-062f044d7b39@amd.com> (raw)
In-Reply-To: <a2ba9cf3-193b-d92c-9912-20024e68769a@google.com>
Hi David,
Thanks for the detailed summary.
On 18-Jun-25 9:12 AM, David Rientjes wrote:
> Hi everybody,
>
> Here are the notes from the last Linux Memory Hotness and Promotion call
> that happened on Thursday, June 5. Thanks to everybody who was involved!
>
> These notes are intended to bring people up to speed who could not attend
> the call as well as keep the conversation going in between meetings.
>
> ----->o-----
> I recapped the previous instance and discussion around asynchronous page
> promotion driven through a kthread. I also discussed the previous chat
> about trade-offs around isolated folio lists vs pfn based tracking of
> memory to migrate.
>
> Bharata said that tracking pfns were much easier since they are
> stateless. We don't need about doing refcounts or isolating too many
> pages. Based on the latest iteration of the patch series, he converted
> this to use pfn based tracking because we don't want to keep memory
> isolated for too long. Previous attempts isolated these folios at the
> time of page fault and then batch migrating them later.
>
> Now, during page fault, we grab the pfn of the folio that has been
> misplaced and push that into a migrator subsystem -- a very simple
> subsystem that stores pfns pushed to it (NUMA Balancing as currently
> the first/only source) in a per-node list for the target node. This is
> coupled with a per-node kthread that routinely scans the list and
> migrates the folio to the target node. Work was underway to address
> some contention issue if there are multiple sources of these pfns to
> migrate (moving away from a mutex).
>
> ----->o-----
> Wei Xu asked about the pfn based tracking and how this would handle
> multiple sources of memory hotness with additional information without a
> lot of overhead. Bharata noted for locality based migration there was no
> need for additional information. For hot page tracking, like with page
> table scanning or with CHMU, then we'd need more information later.
>
> Wei suggested generalizing this now so that it is easily extensible later
> while still acknowledging that the metadata associated with previous
> kpromoted patch series was very large. He suggested a virtual map that
> could be sparsely populated indexed by pfn. Bharata acked that the
> information stored here should be concise and precised. This would be a
> future extension, however.
I have posted the next version which maintains per-PFN/page information
as part of extended page flags:
https://lore.kernel.org/linux-mm/20250616133931.206626-1-bharata@amd.com/
Regards,
Bharata.
prev parent reply other threads:[~2025-06-18 3:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-18 3:42 David Rientjes
2025-06-18 3:49 ` Bharata B Rao [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e6eec050-ad35-4380-8da7-062f044d7b39@amd.com \
--to=bharata@amd.com \
--cc=Jonathan.Cameron@huawei.com \
--cc=dave@stgolabs.net \
--cc=gourry@gourry.net \
--cc=joshua.hahnjy@gmail.com \
--cc=linux-mm@kvack.org \
--cc=nifan.cxl@gmail.com \
--cc=rientjes@google.com \
--cc=rkodsara@amd.com \
--cc=sj@kernel.org \
--cc=weixugc@google.com \
--cc=xuezhengchu@huawei.com \
--cc=yiannis@zptcorp.com \
--cc=ziy@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox