[PATCH v4 6/6] loongarch: Enable THP-aligned load segments by default on 64-bit

Huacai Chen chenhuacai@kernel.org
Thu Mar 5 03:07:54 GMT 2026


On Thu, Mar 5, 2026 at 11:04 AM Xi Ruoyao <xry111@xry111.site> wrote:
>
> On Thu, 2026-03-05 at 10:58 +0800, WANG Rui wrote:
> > This allows the dynamic loader to apply THP-friendly alignment without
> > requiring the `glibc.elf.hugetlb` tunable to be explicitly set.
>
> tunables.texi should be updated to reflect the different default on
> LoongArch.
>
> > +#define DL_MAP_DEFAULT_THP_PAGESIZE (32 * 1024 * 1024)
>
> Is the huge page size always 32M regardless of the normal page size?
No, it depends on the PAGE_SIZE.

Huacai

>
> Also pulling Huacai into the discussion.
>
> --
> Xi Ruoyao <xry111@xry111.site>


More information about the Libc-alpha mailing list