Re: [RFC 2/3] mm: add STATIC_PMD_ZERO_PAGE config option

From: David Hildenbrand
Date: Mon Jun 02 2025 - 16:33:31 EST


On 02.06.25 22:28, David Hildenbrand wrote:
On 02.06.25 16:49, Pankaj Raghav wrote:
On 6/2/25 07:03, Christoph Hellwig wrote:
Should this say FOLIO instead of PAGE in the config option to match
the symbol protected by it?

I am still discussing how the final implementation should be with David. But I will
change the _PAGE to _FOLIO as that is what we would like to expose at the end.

It's a huge page, represented internally as a folio. No strong opinion,
as ...

MMF_HUGE_ZERO_PAGE vs. mm_get_huge_zero_folio vs. get_huge_zero_page vs
... :)

Just to add, the existing one is exposed (configurable) to the user through

/sys/kernel/mm/transparent_hugepage/use_zero_page

combined with the implicit size through

/sys/kernel/mm/transparent_hugepage/hpage_pmd_size

--
Cheers,

David / dhildenb