-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
[Q&A] Is there a way to get the number of performance cores on Apple Silicon? #104
Comments
Hm, so these cores are different than normal? Is there an API to query them? We'd need more info to answer the question properly, I think. |
I thought the best way for me to learn more is to look at sysinfo, which appears to use a Looking at it, there isn't anything obvious showing the amount of high performance (or high efficiency) cores for that matter:
Another bunch of flags yields nothing very telling either:
There is only this one line showing |
To make it a little less specific, a point validly criticised in the linked Let's see what AMD will do. |
With
Should be able to get the values from |
That's great, it looks like they have improved the output on Monterey, which the minimum OS for the M1 Pro CPUs. Now it looks like the |
As the author of
dua
I noticed that on the M1 chip IO performance gets worse if the high-efficiency cores are taken into consideration when configuring thread pools.Thus for now I hardcode the value for optimal performance knowing that it might break sometime later this year.
Do you think it's in scope to add such capability to num_cpus?
The text was updated successfully, but these errors were encountered: