On 05/08/2025 13:39, David Hildenbrand wrote: >> +FIXTURE_SETUP(prctl_thp_disable_completely) >> +{ >> + if (!thp_available()) >> + SKIP(return, "Transparent Hugepages not available\n"); >> + >> + self->pmdsize = read_pmd_pagesize(); >> + if (!self->pmdsize) >> + SKIP(return, "Unable to read PMD size\n"); >> + >> + thp_save_settings(); >> + thp_read_settings(&self->settings); >> + self->settings.thp_enabled = variant->thp_policy; >> + self->settings.hugepages[sz2ord(self->pmdsize, getpagesize())].enabled = THP_INHERIT; > > Oh, one more thing: should we set all other sizes also to THP_INHERIT or (for simplicity) THP_NEVER? > hmm do we need to? I am hoping that we should always get the PMD size THP no matter what the policy for others is in the scenario we have?