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

Florian Weimer
2026-04-10T07:28:11Z

* 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