This is the mail archive of the
mailing list for the binutils project.
Reserving a bit in ELF segment flags for huge page mappings
- From: Sriraman Tallam <tmsriram at google dot com>
- To: Michael Matz <matz at suse dot de>, Jan Hubicka <jh at suse dot cz>, gcc at gcc dot gnu dot org, binutils <binutils at sourceware dot org>, Ian Lance Taylor <iant at google dot com>
- Date: Tue, 24 Jul 2012 10:27:43 -0700
- Subject: Reserving a bit in ELF segment flags for huge page mappings
I am working on a patch to allow subsets of text sections to be
mapped to different ELF segments :
http://sourceware.org/ml/binutils/2012-07/msg00153.html using linker
This will allow splitting hot and cold functions into separate
segments so that only the hot segment can be then mapped to text huge
pages. It has been found for some Google applications that mapping
functions to huge pages, along with function layout, provides a
significant performance benefit and this feature can take this further
by only mapping certain functions to huge pages.
To do this, I would like to reserve a bit in the segment flags to
indicate that this segment is to be mapped to huge pages if possible.
Can I reserve something like a PF_LARGE_PAGE bit?