Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Leverage Dual CPU's with GNU Make' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Leverage Dual CPU's with GNU Make
Authored by: timkingman on May 03, '04 10:41:41AM

The reason the man page doesn't mention multiple CPUs is because make has no way of determining this. -j 2 simply tells make to start two compiling processes. It's up to the OS to figure out how to effectively run both simultaneous processes, and the usual method is to put them on different CPUs.

Some compiling instructions (especially as you get into distcc and spreading your processes over multiple machines) have you use a higher -j number than the total available CPUs, I assume to make sure every available cycle gets used. YMMV.



[ Reply to This | # ]