Re: [RFC PATCH 2/3] hugetlb: convert page_huge_active() to HPageMigratable flag

From: Mike Kravetz
Date: Fri Jan 15 2021 - 16:26:39 EST


On 1/15/21 12:29 PM, Oscar Salvador wrote:
>
> About that alloc_contig_range topic, I would like to take a look unless
> someone is already on it or about to be.
>
> Thanks Mike for the time ;-)

Feel free.

My first thought is that migration of a free hugetlb page would need to
be something like:
1) allocate a fresh hugetlb page from buddy
2) free the 'migrated' free huge page back to buddy

I do not think we can use the existing 'isolate-migrate' flow. Isolating
a page would make it unavailable for allocation and that could cause
application issues.

--
Mike Kravetz