Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's best value for make -j

What's the best value of -j switch?

I usually set this up to the number of CPU/Cores available.

Thanks.

like image 510
name Avatar asked Jun 11 '10 19:06

name


2 Answers

I've always seen the number of cores available plus 1 as the recommended value

like image 141
Michael Mrozek Avatar answered Oct 14 '22 23:10

Michael Mrozek


Just measure.

Start with the number of cores. And then add one until you feel that you get diminishing returns.

like image 22
quamrana Avatar answered Oct 14 '22 23:10

quamrana