Avoid reading /sys/kernel/mm/transparent_hugepage/?

Florian Weimer fweimer@redhat.com
Fri Apr 10 07:27:59 GMT 2026


* H. J. Lu:

> To enable THP segment load, ld.so opens and reads 2 files under
> /sys/kernel/mm/transparent_hugepage/.   This requires mounting
> /sys and is expensive.   Is it possible to put such info in vDSO?

Alexey Dobriyan proposed adding AT_PAGE_SHIFT_LIST to the auxiliary
vector a while back, but I don't know the status of that.

Thanks,
Florian



More information about the Libc-alpha mailing list