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

CPU counts on OS X are wrong #671

Closed
tas50 opened this issue Dec 5, 2015 · 1 comment
Closed

CPU counts on OS X are wrong #671

tas50 opened this issue Dec 5, 2015 · 1 comment
Labels
Type: Bug Does not work as expected.
Milestone

Comments

@tas50
Copy link
Contributor

tas50 commented Dec 5, 2015

On OS X we report the following aggregate CPU information on a Retina MBP:
"real": 4,
"total": 8,

The problem is this system has 1 real cpu, 4 total (real cores), and 8 cores (hyperthreaded cores).

we use sysctl -n hw.physicalcpu for real CPUs which is actually real cores not CPUs.

If we want the number of physical CPUs we want hw.packages

@tas50
Copy link
Contributor Author

tas50 commented Dec 8, 2015

Turns out we're not doing this wrong. We're just not reporting the real CPU.

@tas50 tas50 closed this as completed Dec 8, 2015
@thommay thommay added Type: Bug Does not work as expected. and removed Bug labels Jan 24, 2017
@chef chef locked and limited conversation to collaborators Nov 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Bug Does not work as expected.
Projects
None yet
Development

No branches or pull requests

2 participants