I was using time to profile make builds, and I noticed that having -j 8 was several milliseconds slower than -j 4. I am compiling with gcc on a Intel Core2 Quad, so there are only four processor cores. Could this slowdown be due to the resource limitations, and whatever make uses to schedule jobs is adding some overhead?
I was using time to profile make builds, and I noticed that having -j
Share
If you have more processes running than processors, then the operating system will require some context switching. This isn’t an issue with
make; it’s just how jobs are scheduled when there are insufficient resources.