[PATCH v6 1/1] Created tunable to force small pages on stack allocation.

Florian Weimer fweimer@redhat.com
Mon Apr 17 10:17:50 GMT 2023


* Cupertino Miranda via Libc-alpha:

> Created tunable glibc.pthread.stack_hugetlb to control when hugepages
> can be used for stack allocation.
> In case THP are enabled and glibc.pthread.stack_hugetlb is set to
> 0, glibc will madvise the kernel not to use allow hugepages for stack
> allocations.

Is this for the benefit of OpenJDK (among other things)?

In this case, we should expose this in a pthread_attr_t interface as
well, so that OpenJDK can activate this easily for the required threads.
This can be done in a follow-up patch.

Thanks,
Florian



More information about the Libc-alpha mailing list