Hacker News new | past | comments | ask | show | jobs | submit login

For bash: alias make="nice make -j $(grep 'processor' /proc/cpuinfo | wc -l)"



> grep 'processor' /proc/cpuinfo | wc -l

or use "grep -c" instead of piping through wc


make -l (--load-average) will throttle the number of make jobs, so you can specify a big -j to have many ready jobs but ensure you don't exceed run more than your number of CPUs.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: