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

Xi Ruoyao xry111@xry111.site
Thu Mar 5 03:03:51 GMT 2026


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?

Also pulling Huacai into the discussion.

-- 
Xi Ruoyao <xry111@xry111.site>


More information about the Libc-alpha mailing list