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

Set CPU core count #108

Closed
rhssk opened this issue Nov 22, 2016 · 3 comments
Closed

Set CPU core count #108

rhssk opened this issue Nov 22, 2016 · 3 comments
Assignees

Comments

@rhssk
Copy link

rhssk commented Nov 22, 2016

By default a fresh installation always ends up having just 1 CPU core. It is possible to change that in Vagrant file by adding
config.vm.provider "virtualbox" do |v| v.cpus = X end

Maybe it could be possible to automatize this with something like this?
https://gist.github.com/WIZARDISHUNGRY/2660808

@paliarush
Copy link
Owner

paliarush commented Dec 5, 2016

@rhssk Have you tried to set 2 or more CPUs for this box? Does it give any performance improvement?
I can make it configurable via config.yaml (the same way it is done for RAM). I'm not sure if it makes sense to increase the number of CPUs automatically because you can have multiple boxes running at the same time and as far as I understand, each of them will reserve specified number of CPUs

@rhssk
Copy link
Author

rhssk commented Dec 5, 2016

For me the difference between 1 and 2 cores is very noticeable, especially after clearing cache and reloading site.

@FinBoWa
Copy link

FinBoWa commented Dec 13, 2016

I'd suggest against it to be automatic if you referer on this:

geerlingguy/drupal-vm#855

But making it default to 1 and allow to it be changed easily it would be something that is good to add as it would be easier give more cpus if you don't mind the performance hit.

paliarush pushed a commit that referenced this issue Dec 15, 2016
@paliarush paliarush self-assigned this Dec 15, 2016
paliarush pushed a commit that referenced this issue Dec 16, 2016
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

3 participants