<p dir="ltr">Meant to go to list</p>
<div class="gmail_quote">On Apr 18, 2013 2:15 PM, "John Moser" <<a href="mailto:john.r.moser@gmail.com">john.r.moser@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p dir="ltr"><br>
On Apr 18, 2013 2:07 PM, "Insanity Bit" <<a href="mailto:colintrexob@gmail.com" target="_blank">colintrexob@gmail.com</a>> wrote:<br>
><br>
> On 64bit multiple services (pulseaudio, rsyslogd, many others) are shipping without Position Independent Code. On 32bit there is a potential performance hit for startup time... but there shouldn't be any performance hit (or negligible) on 64bit.<br>


></p>
<p dir="ltr">There is a continuous performance hit of under 1% without -fomit-frame-pointer and under 6% with -fomit-frame-pointer on IA-32.  The impact is statistically insignificant (i got 0.002% +/- 0.5%) on x86-64.</p>


<p dir="ltr">The performance hit on IA-32 only applies to main executable code because library code is PIC already.  This accounts for under 2% runtime, except in X where it used to be 5%.  That makes the overall impact 2% of 6% or 0.12%--which is non-existent if your CPU is ever at less than 99.88% load because you would swiftly catch up.</p>


<p dir="ltr">In other words:  there is NO PERFORMANCE HIT for PIE in any non-laboratory, non-theoretical situation.  (Theo de Raadt argued this with me once, using the term "very expensive" a lot.  I built two identical Gentoo boxes and profiled them both extensively with oprofile.  It is exactly a theoretical cost, and the performance concerns come from people who have no clue what the execution flow of modern software looks like)</p>


<p dir="ltr">> "PIE on x86_64 does not have the same penalties, and will eventually be made the default, but more testing is required."<br>
> - <a href="https://wiki.ubuntu.com/Security/Features#pie" target="_blank">https://wiki.ubuntu.com/Security/Features#pie</a><br>
><br>
> Is there an open bug for testing? A way for users to test and give feedback without recompiling massive projects like pulseaudio?<br>
><br>
> 13.04 still doesn't ship PIE. I would expect this would be something you'd want to put in *before* an LTS release?<br>
><br>
><br>
> --<br>
> Ubuntu-devel-discuss mailing list<br>
> <a href="mailto:Ubuntu-devel-discuss@lists.ubuntu.com" target="_blank">Ubuntu-devel-discuss@lists.ubuntu.com</a><br>
> Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss</a><br>
><br>
</p>
</blockquote></div>