<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 16, 2015 at 10:52 PM, Davide Italiano <span dir="ltr"><<a href="mailto:davide@freebsd.org" target="_blank">davide@freebsd.org</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 Mon, Mar 16, 2015 at 1:54 AM, Davide Italiano <<a href="mailto:davide@freebsd.org">davide@freebsd.org</a>> wrote:<br>
><br>
> Shankar's parallel for per-se didn't introduce any performance benefit<br>
> (or regression).<br>
> If the change I propose is safe, I would like to see Shankar's change<br>
> in (and this on top of it).<br>
> I have other related changes coming next, but I would like to tackle<br>
> them one at a time.<br>
><br>
<br>
</span>Here's an update.<br>
<br>
After <a href="http://reviews.llvm.org/D8372" target="_blank">http://reviews.llvm.org/D8372</a> , I updated the profiling data.<br>
<br>
<a href="https://people.freebsd.org/~davide/llvm/lld-03162015.svg" target="_blank">https://people.freebsd.org/~davide/llvm/lld-03162015.svg</a><br>
It seems now 85% of CPU time is spent inside<br>
FileArchive::buildTableOfContents().<br></blockquote><div><br></div><div>I'm rather amazed that that patch changed the total CPU time. Just doing the work in parallel shouldn't reduce the total CPU time spent on the task. A reduction in CPU time would happen though if parallelizing it increased the single-threaded performance of the tasks being done in parallel. Perhaps using multiple cores means we are using multiple caches, so each thread is getting much better single-threaded performance due to reduced memory bottlenecking?</div><div><br></div><div>-- Sean Silva</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In particular, 35% of the samples are spent inserting into<br>
unordered_map, so there's maybe something we can do differently there<br>
(e.g. , Rui's proposal of a concurrent map doesn't seem that bad).<br>
<div class="HOEnZb"><div class="h5"><br>
Thanks,<br>
<br>
--<br>
Davide<br>
<br>
"There are no solved problems; there are only problems that are more<br>
or less solved" -- Henri Poincare<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</div></div></blockquote></div><br></div></div>