Re: [RFC PATCH v1 0/4] Kernel thread based async batch migration

From: Huang, Ying
Date: Fri Jun 20 2025 - 06:00:14 EST


Bharata B Rao <bharata@xxxxxxx> writes:

> On 20-Jun-25 12:09 PM, Huang, Ying wrote:
>> Bharata B Rao <bharata@xxxxxxx> writes:
>> <snip>
>>
>> I don't think page flag + scanning is a good idea.If the
>
> If extended page flags is not the ideal location (I chose it in this
> version only to get something going quickly), we can look at maintaining
> per-pfn allocation for the required hot page metadata separately.
>
> Or is your concern specifically with scanning? What problems do you
> see?
>
> It is the cost or the possibility of not identifying the migrate-ready
> pages in time? Or something else??

We may need to scan a large number of pages to identify a page to
promote. This will waste CPU cycles and pollute cache.

---
Best Regards,
Huang, Ying