[PATCH v8 6/6] loongarch: Enable THP-aligned load segments by default on 64-bit
Wilco Dijkstra
Wilco.Dijkstra@arm.com
Fri Apr 10 10:34:38 GMT 2026
Hi HJ,
>> +#define DL_MAP_DEFAULT_THP_PAGESIZE (32 * 1024 * 1024)
>
> What happens if DL_MAP_DEFAULT_THP_PAGESIZE is different
> from /sys/kernel/mm/transparent_hugepage/hpage_pmd_size?
THP always works whatever value you choose - it just works better
if you align the start. And if you don't know your PMD size, why set it?
Cheers,
Wilco
More information about the Libc-alpha
mailing list