[OE-core] Prelink problems -- need help!

Mark Hatle mark.hatle at windriver.com
Mon Oct 26 21:35:38 UTC 2015


On 10/26/15 4:18 PM, Phil Blundell wrote:
> On Mon, 2015-10-26 at 11:55 -0500, Mark Hatle wrote:
>> -last- time I got concrete numbers on a complex boot process.  It was on the
>> order of 1-5% boot time.. and a fairly large number of pages saved.. (which
>> reduced fragmentation as well as saved memory.)
> 
> I'm slightly surprised at the 5% figure.  Martin Jansa posted some
> statistics in another thread earlier today which showed an improvement
> from prelink of just under 0.5% (0.24 seconds saved out of 49.51 seconds
> total) and that's more like what I would have expected.  What sort of
> binaries were you running on the system you measured?

At the time, it was systemd, X11, a custom control module and a custom UI
program.  The custom UI program was written in C++ and had a heck of a lot of
libraries attached, and lots of RPC via dbus.

> I also don't entirely understand the fragmentation argument.  We're not
> talking about a no-mmu configuration here, are we?

Fragmentation takes time and can slow down memory allocation.  We've got both
the kernel page allocation, as well as the internal glibc memory allocation.
They work together, but are not the same.  (glibc will grab pages of memory from
the kernel and then dish them out.  As this memory fragments, it has to pull
more from the kernel to compensate... as well as free blocks to get more
contiguous memory allocated).. It's a bit of a viscous cycle of some small systems.

--Mark

> p.
> 
> 




More information about the Openembedded-core mailing list