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

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


On Thu, Apr 9, 2026 at 6:29 PM Wilco Dijkstra <Wilco.Dijkstra@arm.com> wrote:
>
> Hi HJ,
>
> > I opened:
> >
> > https://sourceware.org/bugzilla/show_bug.cgi?id=34056
> >
> > for GNU_PROPERTY_1_NEEDED_TRANSPARENT_HUGEPAGE.
>
> So what is the reasoning for this? Where will it be set and under which conditions?

A programmer can ask for it.

> It looks like adding a lot of startup overhead for a flag that would either never be
> set if it is not the default or always set if it is the default. The whole point of THP
> is that it is transparent, ie. automatic, always enabled.
>

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?

-- 
H.J.


More information about the Libc-alpha mailing list