[PATCH v8 0/6] elf: THP-aware load segment alignment
Wilco Dijkstra
Wilco.Dijkstra@arm.com
Thu Apr 9 21:39:35 GMT 2026
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.
Cheers,
Wilco
More information about the Libc-alpha
mailing list