<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 26, 2016 at 8:08 AM, Carsten Mattner <span dir="ltr"><<a href="mailto:carstenmattner@gmail.com" target="_blank">carstenmattner@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On Mon, Sep 26, 2016 at 4:25 PM, Teresa Johnson <<a href="mailto:tejohnson@google.com">tejohnson@google.com</a>> wrote:<br>
> No worries, thanks for the update. Teresa<br>
<br>
</span>2048 wasn't enough. Bumped to 4096. Only 1300 ninja targets left.<br>
<br>
Once I've been successful with this, I might try building a ThinLTO Firefox<br>
or maybe Chromium, </blockquote><div><br></div><div>I have built both of those successfully with ThinLTO, so they should work.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">although browsers usually have PGO profiles one<br>
can run for feeding back real-world exercise. Not sure if PGO can be<br>
combined with LTO, or if it makes sense at all...<br></blockquote><div><br></div><div>Yes, absolutely! ThinLTO and PGO are largely orthogonal, but PGO will help enable</div><div>more indirect call promotion with ThinLTO, and there is also a patch out for review (D24638)</div><div>to use FDO to guide ThinLTO function importing heuristics.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
What would be more fun is combining ThinLTO for C code with MLton<br>
for SML code when building Ur/Web.<br></blockquote><div><br></div><div>Interesting. I am not at all familiar with SML code/building, but theoretically switching the C code to</div><div>use -flto=thin shouldn't affect the interaction between those two compiles. Presumably one or both</div><div>are compiled into a library and linked in to create a final binary?</div><div><br></div><div>Teresa</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="gmail-HOEnZb"><div class="gmail-h5"><br>
> On Mon, Sep 26, 2016, 7:16 AM Carsten Mattner <<a href="mailto:carstenmattner@gmail.com">carstenmattner@gmail.com</a>><br>
> wrote:<br>
>><br>
>> On Mon, Sep 26, 2016 at 3:52 PM, Teresa Johnson <<a href="mailto:tejohnson@google.com">tejohnson@google.com</a>><br>
>> wrote:<br>
>> ><br>
>> > ThinLTO needs to create as many temporary files as there are input<br>
>> > modules to the link. From your 'ls' below, it doesn't look like there is<br>
>> > an incredibly huge amount already created, can you check your limits?<br>
>> > What is the output of:<br>
>> ><br>
>> > $ ulimit -n<br>
>> ><br>
>> > and<br>
>> ><br>
>> > $ sysctl fs.file-max<br>
>><br>
>> Sorry for the noise, forgot to verify because I had assumed it was<br>
>> still set to 4096 from a similar change a couple days ago.<br>
>> Alas, it's just 1024 in this session. Given the # of object files,<br>
>> 2048 looks more than enough. Going to re-run with that.<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><span style="font-family:times;font-size:medium"><table cellspacing="0" cellpadding="0"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small"><td nowrap style="border-top:2px solid rgb(213,15,37)">Teresa Johnson |</td><td nowrap style="border-top:2px solid rgb(51,105,232)"> Software Engineer |</td><td nowrap style="border-top:2px solid rgb(0,153,57)"> <a href="mailto:tejohnson@google.com" target="_blank">tejohnson@google.com</a> |</td><td nowrap style="border-top:2px solid rgb(238,178,17)"> 408-460-2413</td></tr></tbody></table></span></div>
</div></div>