Thomas Maier-Komor wrote:

> I am wondering if it would be possible to inherit a library mapping across 
> exec
 > and reduce like this the number of mmaps and munmaps.

This question might be better off targeted at those familiar
with the VM system.  I suspect it would be a complex issue
that might raise concerns with security, versioning etc.

I believe there is active work targeted at making exit/exec
faster.

Although the number of stat/open/mmap calls used to load
the dependencies of a process look daunting, their cost
typically isn't the high order bit when investigating
dependency processing.  The relocation costs of large
numbers of libraries, excessive global symbols, (and
large symbol names - think C++) is typically the major
time consumer.  Then of course there's the amount of
work carried out with .init sections.

-- 
Rod

Reply via email to