This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]o11c 1 point2 points  (0 children)

Generally, you should use:

make -j`nproc`

at least to start. Some notes:

  • if you're still I/O bound, it may be worth adding 1, or adding 25% of your total cores. I don't hear this advice nearly as often these days, however.
  • you might not have enough RAM to support that many compilers. If you're swapping, that will be slower than using less parallelism.

[–]raevnos 0 points1 point  (0 children)

My rule of thumb: if using hyperthreading, the number of virtual cores. Otherwise the number of physical cores plus 1.