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

Only 4 cores used by default on 8 core machine #2061

Closed
stevage opened this issue Sep 9, 2013 · 1 comment
Closed

Only 4 cores used by default on 8 core machine #2061

stevage opened this issue Sep 9, 2013 · 1 comment
Milestone

Comments

@stevage
Copy link
Contributor

stevage commented Sep 9, 2013

Not sure if this is a bug, user error, a documentation issue... I installed from source a few days ago [commit 2fe69d4 ] and found only 4 cores on an 8 core VM were being used (total user CPU% was around 48-49%). From some random googling, I discovered this environment variable:

export UV_THREADPOOL_SIZE=12

(I gather the right number of threads is cores x 1.5) Once set, CPU usage went to nearly 100%.

Node is reporting the number of cpu's correctly:

$ node
> require('os').cpus().length
8

This is an Ubuntu Quantal VM running on openstack.

@springmeyer
Copy link
Member

thanks for catching this. Had done this for TM2 (mapbox/mapbox-studio-classic#16), but forgot to apply for TileMill proper.

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