[PATCH v8 5/6] elf: Align large load segments to PMD huge page size for THP
Wilco Dijkstra
Wilco.Dijkstra@arm.com
Thu Apr 9 22:45:33 GMT 2026
Hi HJ,
> + unsigned long int default_thp_pagesize = DL_MAP_DEFAULT_THP_PAGESIZE;
> + thp_mode = default_thp_pagesize ? thp_mode_always : __get_thp_mode ();
> + thp_pagesize = default_thp_pagesize ? : __get_thp_size ();
> We should call __get_hugepage_config to get both the THP page size as well
> as the THP flags. The THP flags should be passed to mmap.
No - this is about THP, not hugetlbfs.
Cheers,
Wilco
More information about the Libc-alpha
mailing list