Re: [PATCH v5] page_alloc: allow migration of smaller hugepages during contig_alloc
From: Gregory Price
Date: Thu Dec 18 2025 - 16:08:31 EST
On Thu, Dec 18, 2025 at 02:45:37PM -0500, Zi Yan wrote:
> On 18 Dec 2025, at 14:08, Gregory Price wrote:
>
> Why not do hugetlb search when non-hugetlb fails in pfn_range_valid_contig()
> and give hugetlb_search result in an input parameter? Something like
>
Short discussion with Johannes - it's not worth trying to do any kind of
filtering, but we can at least optimize for the case where we don't
actually find any hugetlb regions (preventing a retry for no reason).
So I'll ship a v6 with a mild improvement.
~Gregory