<div dir="ltr">I build llvm with -j 4 without swapping with 16 GB of RAM. I build it with LLVM_ENABLE_DYLIB and LLVM_LINK_DYLIB which is probably helping.<div><br></div><div>The amount of RAM consumed is proportional to the number of parallel build process. Also swapping does not necessarily slow down compilation: the OS can swap slow process to use more RAM as a file cache if beneficial.</div><div>Swapping with -j 12 should be faster than not swapping with -j 2 as you are guaranteed to max out the usage of RAM.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 6, 2016 at 10:54 PM, Wink Saville via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've got a i7 with 12 logical cores and 16GB of RAM I successfully<br>
built RELEASE_390/final but for the last 100 or so files I'd to use<br>
"ninja -j2" so as not to keep from swapping in the best case and and<br>
in the worst case the build kills itself without completing because<br>
apparently its run out of memory.<br>
<br>
For the first 3200 files or so it was doing just fine with "ninja"<br>
which is probably "ninja -j12" but as I said for the last 100 or so<br>
files I had to use "ninja -j2" to get it to complete.<br>
<br>
So what is the recommended computer resources, and I guess RAM size in<br>
particular, for building llvm "quickly"?<br>
<br>
-- wink<br>
______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><b>Alexandre Isoard</b><br></div></div>
</div></div>