Re: Avoid reading /sys/kernel/mm/transparent_hugepage/?
From: Florian Weimer
Date: Fri Apr 10 2026 - 03:28:28 EST
* 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