Re: [PATCH v5 08/17] mm/sparse-vmemmap: support section-based vmemmap optimization

From: Qi Zheng

Date: Tue Aug 25 2026 - 08:47:31 EST




On 8/25/26 4:45 PM, Muchun Song wrote:
Teach sparse-vmemmap population code to use the compound page order
when deciding whether a vmemmap page can be optimized.

With this information, the common sparse-vmemmap population path can
allocate or reuse shared tail vmemmap pages directly instead of relying
on HugeTLB-specific handling.

This centralizes vmemmap optimization logic in the sparse-vmemmap code,
based on section metadata, and prepares for sharing the same mechanism
across different users of vmemmap optimization, including HugeTLB and
DAX.

Signed-off-by: Muchun Song <songmuchun@xxxxxxxxxxxxx>

Acked-by: Qi Zheng <qi.zheng@xxxxxxxxx>

Thanks,
Qi