<div class="gmail_quote">On Thu, Jul 9, 2009 at 4:55 PM, Ulrich Drepper <span dir="ltr"><<a href="mailto:drepper@redhat.com">drepper@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">Adam Miller wrote:<br>
> I am curious as to this answer as well because prelink has been<br>
> something that actually hurt my netbook in performance so I nuked it.<br>
<br>
</div>Performance only ever can be hurt because prelink runs periodically to<br>
prelink newly installed code or re-randomize to increase security.<br>
<br>
prelink has two benefits:<br>
<br>
- almost all relocations a program has to perform are avoided.  These<br>
  can be very expensive when many dependencies and/or large symbol<br>
  tables are involved.  The latter is somewhat mitigated by the new<br>
  symbol table hashing we implemented some time back but still.<br>
<br>
- as a side effect of the first point some pages in the loaded binary<br>
  are not copied-on-write.  This can obviously have good effects on<br>
  systems with little memory (netbooks).<br>
<br>
<br>
Just run your own tests on apps with many relocations and dependencies.<br>
 FF, OO.org, most GUI apps come into mind.  Use<br>
<br>
  LD_DEBUG=statistics some/program<br>
<br>
to compare numbers.  Run it with and without prelink (but always with<br>
hot disk cache to be fair).  The number of cycles for total startup is<br>
representative of the win.<br>
<br>
Note, also small but frequently used apps benefit.  I run gcc etc a lot<br>
and like every single saved cycle.<br>
<font color="#888888"></font></blockquote><div><br>But something one have to pay a security prize on not disabling it :  it render impossible to have a<br>centralizzated security integrity management (e.g. <a href="http://rfc.sf.net">rfc.sf.net</a> for example) or one have to skip from check the prelink binary. Very bad i think.  <br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><font color="#888888"><br>
--<br>
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖<br>
</font><div><div></div><div class="h5"><br>
--<br>
fedora-devel-list mailing list<br>
<a href="mailto:fedora-devel-list@redhat.com">fedora-devel-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/fedora-devel-list" target="_blank">https://www.redhat.com/mailman/listinfo/fedora-devel-list</a><br>
</div></div></blockquote></div><br>