On Tue, Jul 5, 2022 at 10:38 AM Muchun Song <songmuchun@xxxxxxxxxxxxx> wrote: > On Tue, Jul 5, 2022 at 4:06 PM Arnd Bergmann <arnd@xxxxxxxx> wrote: > > On Tue, Jul 5, 2022 at 9:51 AM Muchun Song <songmuchun@xxxxxxxxxxxxx> wrote: > > How about including the static key header in the scope of > CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP? That helps a little, but it means we still pay for it on x86 and arm64, which are the most common architectures. Arnd