Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building with make -j can cause system crashes #265

Closed
bisen2 opened this issue Sep 6, 2019 · 1 comment
Closed

Building with make -j can cause system crashes #265

bisen2 opened this issue Sep 6, 2019 · 1 comment

Comments

@bisen2
Copy link
Contributor

bisen2 commented Sep 6, 2019

Building with make -j as recommended in the docs is generally inadvisable. It steals all the threads it can and will cause crashes on some systems. It would be better to run make -j $(($(nproc)/2)) for linux or $(($(sysctl -n hw.ncpu)/2)) for mac if you want to speed up your build time by multithreading.

@asmuth
Copy link
Owner

asmuth commented May 14, 2020

Fixed. Thanks for pointing out the problem!

@asmuth asmuth closed this as completed May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants