[PATCH v8 0/6] elf: THP-aware load segment alignment
H.J. Lu
hjl.tools@gmail.com
Thu Apr 9 22:24:57 GMT 2026
On Fri, Apr 10, 2026 at 5:40 AM Wilco Dijkstra <Wilco.Dijkstra@arm.com> wrote:
>
> Hi HJ,
>
> >> 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.
>
> The goal is to enable this by default on modern 64-bit targets given the extra
> alignment is not harmful (only minor reduction of ALSR bits when PMD size is 2MB).
>
> All this configurability is insane - nobody is ever going to figure out which settings are
> available, how to modify each setting, let alone which combination gives the best
> performance on every application on a particular machine... Users just want stuff to
> work well out of the box. Call them lazy if you like.
>
>
Why a tunable at all? Users may not set it.
--
H.J.
More information about the Libc-alpha
mailing list