GNU make: should -j equal number the number of CPU cores in a system?

Posted by Johan on Stack Overflow See other posts from Stack Overflow or by Johan
Published on 2010-03-23T10:29:10Z Indexed on 2010/03/23 10:33 UTC
Read the original article Hit count: 437

Filed under:
|

Hi

What is you experience with the make -j flag?

There seem to be some controversial if the jobs are supposed to be equal to the numbers of cores, or if you can maximize the build by adding one extra job that can be cued up while the others "work".

The question is if it is better to use -j4 or -j5?

And have you seen (or done) any benchmarking that support one or the other?

Thanks Johan

© Stack Overflow or respective owner

Related posts about make

    Related posts about gnumake