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

Increase default threads per CPU #18

Open
ttuegel opened this issue Apr 17, 2016 · 2 comments
Open

Increase default threads per CPU #18

ttuegel opened this issue Apr 17, 2016 · 2 comments

Comments

@ttuegel
Copy link
Collaborator

ttuegel commented Apr 17, 2016

One thread per CPU is used by default. Generating packages is heavily IO-bound. My own experiments suggest that four threads per CPU works better. See also #16.

@mdorman
Copy link
Collaborator

mdorman commented Jul 5, 2016

I'll just note that in my four-core, SSD laptop, I found 6 to be a little bit better for keeping the machine saturated, but not over-committed---8 was too many, and other things became unusable, and 4 was too few and I had a fair bit of idle time.

@ttuegel
Copy link
Collaborator Author

ttuegel commented Jul 5, 2016

This probably depends on what type of storage hardware is used. With a spinning disk, I found 4*NCPUS worked best. With an SSD, it sounds like 1.5*NCPUS works better. I think the sensible thing to do here is increase the default number of threads to 1.5*NCPUS and advise increasing that number if it does not saturate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants