This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: feasibility of modifying Linux ld-linux.so to identify which mapped files are shared libraries


On Wed, May 11, 2005 at 09:33:34AM -0500, Ray Bryant wrote:
> Christoph Hellwig has suggested that instead we modify the dynamic loader
> to mark mapped files in kernel memory as being shared libraries; this would
> likely be communicated to the kernel via a new MMAP flag.

I can see situations where this could be useful for more than just
your immediate project.

We've demonstrated using IA64 protection keys for sharing TLB entries.
If we knew at mmap() time this was a shared library we could setup
keys then.  I think that could work out better than doing it carte
blanche on MAP_SHARED since it might help manage the limited
protection key registers better.

It might also act as an extra hint that this is a good candidate for a
higher order superpage than it may otherwise be allocated.

Not that anyone cares what I think, but I can see how this could be
useful.

-i
ianw@gelato.unsw.edu.au
http://www.gelato.unsw.edu.au

Attachment: signature.asc
Description: Digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]