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

Accurately get hardware cpu count in Vagrantfile. #8024

Merged
merged 1 commit into from May 11, 2015
Merged

Accurately get hardware cpu count in Vagrantfile. #8024

merged 1 commit into from May 11, 2015

Conversation

BenTheElder
Copy link
Member

In Vagrantfile replace hack that assumed hyper threading was enabled on
the host and divided ncpu by 2 with methods of getting the actual
hardware core count.

In Vagrantfile replace hack that assumed hyper threading was enabled on
the host and divided ncpu by 2 with methods of getting the actual
hardware core count.
@BenTheElder
Copy link
Member Author

I have a pretty fast 4 core intel proc (i5-2500k @ 4.2ghz turbo) without hyperthreading enabled so when I spotted the copy-pasta here assuming hyperthreading I whipped up a quick fix. Tested on Yosemite (on a laptop that does have hyperthreading) and Fedora 21 but should be quite portable, did a little googling to find some methods of getting physical core count. Not sure about the best solution for windows so I left that as is.

@zmerlynn
Copy link
Member

zmerlynn commented May 9, 2015

LGTM

@zmerlynn zmerlynn added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 9, 2015
jszczepkowski added a commit that referenced this pull request May 11, 2015
Accurately get hardware cpu count in Vagrantfile.
@jszczepkowski jszczepkowski merged commit 54e0f46 into kubernetes:master May 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants