[PATCH v8 0/6] elf: THP-aware load segment alignment

H.J. Lu hjl.tools@gmail.com
Thu Apr 9 21:18:05 GMT 2026


On Thu, Apr 9, 2026 at 9:30 PM Wilco Dijkstra <Wilco.Dijkstra@arm.com> wrote:
>
> Hi HJ,
>
> > Is it always beneficial to load every program, big or small,
> > performance sensitive or non-sensitive, with THP?  If it is
> > the case, why bother with a tunable?
>
> Linux reads much larger blocks from the filesystem, so yes,
> it's beneficial if the binary is large enough and you have THP.
> Small binaries can't really benefit.
>
> Tunables are almost for free, it's just checking a global
> variable, not a system call.

The end-user still needs to set the tunable.  It is beyond
the programmer's control.  With a property bit, the developer
can set it on the binary.   If needed, it can be set in one of
crt files.


-- 
H.J.


More information about the Libc-alpha mailing list