A good answer on make -j

It’s possible to speed up a ‘make buildworld’ by increasing the number of parallel make processes, with the -j option.  However, the optimal number of make processes depends on your system setup.  Simon ‘corecode’ Schubert did some testing, and it looks like the number of CPUs +1 is the best option – as long as you have more than 1 CPU.  His writeup even includes a nice graph.

2 Replies to “A good answer on make -j”

Comments are closed.

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)

Mentions

  • More parallelism tests: NCPUs + 1 still « The Daily BSD
  • More parallelism tests: NCPUs + 1 still · DragonFly BSD Digest