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 load reflects only one core #7

Open
N3xusPr1me opened this issue Nov 8, 2021 · 4 comments
Open

CPU load reflects only one core #7

N3xusPr1me opened this issue Nov 8, 2021 · 4 comments

Comments

@N3xusPr1me
Copy link

N3xusPr1me commented Nov 8, 2021

Hello, first of all thanks for this awesome utility.

I noticed something weird when running grep : it said my P-CPU usage was 100% whereas grep was only loading a single P-core (I confirmed this with Activity Monitor.app). it seems like the P-CPU usage only reflects a single core.

I am not sure if it is meant to be that way, but imo the better information would be total P-CPU usage, not single core usage.

Could you please check this ? (It may also apply to E-CPU usage, didn't try)

Thanks for your help keep it up :)

@tlkh
Copy link
Owner

tlkh commented Nov 8, 2021

This is due to the reporting in powermetrics, it sometimes (for some reason) reports the residency in the entire P0 or P1 CPU cluster to be 100% although only 1 core is loaded.

I am planning to manually computing the actual usage from the individual residency values of each individual core, but I havent got around to doing that yet.

@fengzee
Copy link

fengzee commented May 4, 2022

This is due to the reporting in powermetrics, it sometimes (for some reason) reports the residency in the entire P0 or P1 CPU cluster to be 100% although only 1 core is loaded.

I am planning to manually computing the actual usage from the individual residency values of each individual core, but I havent got around to doing that yet.

Consider using psutil.cpu_times() for this metric?

@valeriylo
Copy link

Still an issue for me. E-CPU and P-CPU usages are 100% all the time. GPU and ANE are fine.
image

@dbacks2196
Copy link

Same here

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

5 participants