[PATCH v8 6/6] loongarch: Enable THP-aligned load segments by default on 64-bit
H.J. Lu
hjl.tools@gmail.com
Sat Apr 11 00:31:37 GMT 2026
On Fri, Apr 10, 2026 at 6:35 PM Wilco Dijkstra <Wilco.Dijkstra@arm.com> wrote:
>
> 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?
>
glibc shouldn't assume THP status which is set by kernel.
--
H.J.
More information about the Libc-alpha
mailing list