[llvm-dev] Recommended computer resources to build llvm

Bruce Hoult via llvm-dev llvm-dev at lists.llvm.org
Tue Sep 6 15:06:13 PDT 2016

That's a reasonably well resourced machine, though the last couple of years
I've been spec'ing quad core (plus HT) machines with 32 GB rather than 16
GB, and you've got 50% more cores.

Still that should be plenty for 12 compiler instances. I suspect the
problem is something else, such as link steps.

I haven't looked at the actual ninja rules, but you can specify a smaller
"-j" setting for particular kinds of build steps. See:


I have no idea whether the llvm ninja rules currently include something
like that.

On Wed, Sep 7, 2016 at 9:54 AM, 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160907/c2dc5a8a/attachment.html>

More information about the llvm-dev mailing list