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: krishna on May 04, '04 10:33:16PM

Well, you can *be* nice by *using* nice:

nice -n 20 make -j 2

Will lower the priority (I always forget if it should be +20 or -20, check the man page). Then your build process will have the lowest claim on processor cycles and won't starve out other users or programs for processor time.

In particular, I run

nice -n 20 screen -dmS compile

and then reconnect to that screen session when I want to do a build. That way anything I build in that screen session, even if I do smaller subcompiles by hand, is at a lower priority, and doesn't steal cycles from important things like iTunes :-)



[ Reply to This | # ]