Reputation: 502
If my Kernel's Makefiles have correct dependency information,
To spawn mutliple jobs, I should use this
$make -jn
n = is the number of jobs to spawn
If I use Quad Core Machine like i7 4700MQ with 8 GB RAM, what should be the ideal and the maximum value of n ?
Upvotes: 0
Views: 398
Reputation: 1091
grep '^processor' /proc/cpuinfo | wc -l
It should give You number of CPU's in the system (as seen by OS). You can use this number. Also +1 to this number usualy won't hurt (it depends on project You are building, scheduler in use, etc.).
Upvotes: 2