Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
usefulcat
on Nov 16, 2012
|
parent
|
context
|
favorite
| on:
Netflix on Ubuntu Is Here
For bash: alias make="nice make -j $(grep 'processor' /proc/cpuinfo | wc -l)"
eik3_de
on Nov 16, 2012
|
next
[–]
> grep 'processor' /proc/cpuinfo | wc -l
or use "grep -c" instead of piping through wc
cpeterso
on Nov 16, 2012
|
prev
[–]
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: