[PATCH] malloc: Enable 2MB THP by default on Aarch64
Wilco Dijkstra
Wilco.Dijkstra@arm.com
Thu Dec 4 15:09:43 GMT 2025
Hi Dev,
>> It seems to me we should call thp_init() before this so that thp_pagesize
>> is set correctly and we align to a huge page if needed (rather than wait
>> for the next allocation).
>
> I think we should do this *and* leave the call in madvise_thp() also. Even
> before we hit the brk extension code, we may call sysmalloc_mmap() which will
> call madvise_thp().
Yes that seems best indeed.
Cheers,
Wilco
More information about the Libc-alpha
mailing list