<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Oct 20, 2016 at 1:30 PM, Sriraman Tallam <span dir="ltr"><<a href="mailto:tmsriram@google.com" target="_blank">tmsriram@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, Oct 20, 2016 at 1:07 PM, Rui Ueyama <<a href="mailto:ruiu@google.com">ruiu@google.com</a>> wrote:<br>
> +tmsriram because he seems to have done something with<br>
> --section-ordering-file so he might have an expert's opinion about how much<br>
> it is useful/effective.<br>
<br>
</span><a href="http://taras.glek.net/blog/2010/04/05/linux-how-to-make-startup-suck-less-and-reduce-memory-usage/" rel="noreferrer" target="_blank">http://taras.glek.net/blog/<wbr>2010/04/05/linux-how-to-make-<wbr>startup-suck-less-and-reduce-<wbr>memory-usage/</a><br>
<br>
--section-ordering-file in gold was used to reduce firefox startup<br>
time IIRC.  It was/is also used by Chrome for similar purposes.</blockquote><div><br></div><div>I wonder if we can see that much difference on SSDs.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">
><br>
> On Thu, Oct 20, 2016 at 8:48 AM, George Rimar <<a href="mailto:grimar@accesssoftek.com">grimar@accesssoftek.com</a>><br>
> wrote:<br>
>><br>
>> grimar added a comment.<br>
>><br>
>> In <a href="https://reviews.llvm.org/D25766#574420" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D25766#574420</a>, @davide wrote:<br>
>><br>
>> > In <a href="https://reviews.llvm.org/D25766#574368" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D25766#574368</a>, @ruiu wrote:<br>
>> ><br>
>> > > Is this effort coordinated with Davide?<br>
>> ><br>
>> ><br>
>> > Yes! Thanks George for taking care of this.<br>
>> >  BTW, I think the hard part of this feature is trying to evaluate and<br>
>> > understand if it's worth it.<br>
>> >  You may want to do some benchmarking/write a systap/dtrace script to<br>
>> > collect data and feed into the linker and make sure this has some real<br>
>> > impact. I recommend to use bare metal for testing and not VM as the results<br>
>> > might be unreliable.<br>
>> >  Rui, Rafael, what do you think?<br>
>><br>
>><br>
>> After today investigations I found next more or less known ways to produce<br>
>> such file.<br>
>><br>
>> - First is use of valgring + icegrind plugin:<br>
>><br>
>><br>
>> <a href="https://blog.mozilla.org/tglek/2010/04/07/icegrind-valgrind-plugin-for-optimizing-cold-startup/" rel="noreferrer" target="_blank">https://blog.mozilla.org/<wbr>tglek/2010/04/07/icegrind-<wbr>valgrind-plugin-for-<wbr>optimizing-cold-startup/</a><br>
>> <a href="https://glandium.org/blog/?p=1008" rel="noreferrer" target="_blank">https://glandium.org/blog/?p=<wbr>1008</a><br>
>> Method looks a bit outdated though.<br>
>><br>
>> - Use of function_reordering_plugin from gcc google branch<br>
>> (<a href="https://codereview.appspot.com/5124041" rel="noreferrer" target="_blank">https://codereview.appspot.<wbr>com/5124041</a>,<br>
>> <a href="https://codereview.appspot.com/4802070/" rel="noreferrer" target="_blank">https://codereview.appspot.<wbr>com/4802070/</a>).<br>
>><br>
>> As far I understand along with job it do, it also should produce<br>
>> final_layout.txt file where sections should be dumped in a correct order,<br>
>> and we should be able to reuse that file for LLD needs.<br>
>><br>
>> - facebook/hhvm<br>
>> (<a href="https://github.com/facebook/hhvm/tree/master/hphp/tools/hfsort" rel="noreferrer" target="_blank">https://github.com/facebook/<wbr>hhvm/tree/master/hphp/tools/<wbr>hfsort</a>) has tools<br>
>> and scrips for generating sections ordering file for gold, though<br>
>><br>
>> I am not sure how much easy can be to reuse it for any other applications.<br>
>><br>
>> I am going to check gcc way tomorrow, it seems to me as most easy possible<br>
>> path.<br>
>><br>
>><br>
>> <a href="https://reviews.llvm.org/D25766" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D25766</a><br>
>><br>
>><br>
>><br>
><br>
</div></div></blockquote></div><br></div></div>