[llvm-dev] Recommended computer resources to build llvm

Alexandre Isoard via llvm-dev llvm-dev at lists.llvm.org
Tue Sep 6 15:05:50 PDT 2016


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.

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.
Swapping with -j 12 should be faster than not swapping with -j 2 as you are
guaranteed to max out the usage of RAM.

On Tue, Sep 6, 2016 at 10:54 PM, Wink Saville via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> I've got a i7 with 12 logical cores and 16GB of RAM I successfully
> built RELEASE_390/final but for the last 100 or so files I'd to use
> "ninja -j2" so as not to keep from swapping in the best case and and
> in the worst case the build kills itself without completing because
> apparently its run out of memory.
>
> For the first 3200 files or so it was doing just fine with "ninja"
> which is probably "ninja -j12" but as I said for the last 100 or so
> files I had to use "ninja -j2" to get it to complete.
>
> So what is the recommended computer resources, and I guess RAM size in
> particular, for building llvm "quickly"?
>
> -- wink
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>



-- 
*Alexandre Isoard*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160906/0f8be3c2/attachment.html>


More information about the llvm-dev mailing list