From: Mark Hatle <mark.hatle@windriver.com>
To: Khem Raj <raj.khem@gmail.com>
Cc: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: Prelink problems -- need help!
Date: Thu, 29 Oct 2015 13:41:54 -0500 [thread overview]
Message-ID: <56326872.7070406@windriver.com> (raw)
In-Reply-To: <ED6C3F78-5E77-4942-9CD4-18A57F84CF42@gmail.com>
On 10/29/15 1:32 PM, Khem Raj wrote:
>
>> On Oct 26, 2015, at 9:55 AM, Mark Hatle <mark.hatle@windriver.com> wrote:
>>
>> On 10/26/15 11:50 AM, Phil Blundell wrote:
>>> On Mon, 2015-10-26 at 11:45 -0500, Mark Hatle wrote:
>>>>
>>>>
>>>> While some of the modern hashing techniques and such do improve run
>>>> -time dynamic
>>>> link performance, there is still a hit that we must take. For
>>>> devices that need
>>>> quick boot times, quick startup, or are memory constrained, the
>>>> prelinker can
>>>> still help. (Memory usage on very small systems is a good example.
>>>> Memory
>>>> usage can be reduced in larger applications by reducing the number of
>>>> Copy-on-write pages required to handle the relocation information.)
>>>
>>> Do you have any concrete data on how much of a boot time speedup,
>>> and/or what reduction in dirty pages, you see on a modern image with
>>> prelink versus the same image without?
>>
>> -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.)
>
> How is fragmentation getting better ? if dynamic linker was improving the page
> locality then it would be possible but that does not seem to be the case here.
With no relocations, you don't end up doing COW pages. No COW pages means less
memory used for running many of the small quick Linux scripts at easy boot.
These are issues I've seen on older slower systems. It's not that big of a deal
with a lot of the newer ones.
However, someone pointed out to me earlier today that with more and more IFUNCs
being used across different platforms, that it's likely the COW page savings are
reduced from what they used to be.... If the IFUNCs are 'local to the same
page', then it should still help reduce the overall count... but I'm not sure
that is something that is controlled in the normal case.
--Mark
>>
>> We're not talking huge numbers for each, there is a statistics mode in glibc
>> that can be enabled to show the number of relocations and some of the costs
>> involved. Once this is working again, I will be able to run that and give more
>> concrete numbers.
>>
>> --Mark
>>
>>> p.
>>>
>>
>> --
>> _______________________________________________
>> Openembedded-core mailing list
>> Openembedded-core@lists.openembedded.org
>> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
next prev parent reply other threads:[~2015-10-29 18:41 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-26 14:28 Prelink problems -- need help! Mark Hatle
2015-10-26 16:10 ` Phil Blundell
2015-10-26 16:45 ` Mark Hatle
2015-10-26 16:50 ` Phil Blundell
2015-10-26 16:55 ` Mark Hatle
2015-10-26 21:18 ` Phil Blundell
2015-10-26 21:35 ` Mark Hatle
2015-10-29 18:32 ` Khem Raj
2015-10-29 18:41 ` Mark Hatle [this message]
2015-10-27 0:40 ` Mark Hatle
2015-10-30 3:50 ` Prelink status Mark Hatle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=56326872.7070406@windriver.com \
--to=mark.hatle@windriver.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=raj.khem@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.