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

Show "instructions per clock" for E- and P-cores #37

Open
samuelfredrickson opened this issue Aug 11, 2022 · 5 comments
Open

Show "instructions per clock" for E- and P-cores #37

samuelfredrickson opened this issue Aug 11, 2022 · 5 comments

Comments

@samuelfredrickson
Copy link

powermetrics reports this metric for each CPU core cluster, as well as an average for the entire SoC. I've found it interesting to see how this value fluctuates under various workloads, and think it would be neat to see it incorporated into asitop.

@NightMachinery
Copy link

What does this value show exactly? Is it better higher or lower? I find it very difficult to interpret.

@dehydratedpotato
Copy link

dehydratedpotato commented Dec 4, 2022

@NightMachinery It is a metric of how many instructions we executed by the cpu cluster, per clock cycle, during the metric sample.

Higher is better, assuming you are looking for higher cpu performance (from faster execution of instructions).

@NightMachinery
Copy link

@BitesPotatoBacks Some instructions do more work than others though. Perhaps not as much of an issue in ARM CPUs.

@dehydratedpotato
Copy link

dehydratedpotato commented Dec 4, 2022

@NightMachinery Of course, certain instructions may take multiple cycles to complete (but these timings are often tied to the efficiency of the microarch). Though, I do not know the exact timings of the instructions supported by current Apple Silicon.

IPC is an average number for the cluster that gives the metric. Longer execution times for instructions would decrease the value.

@sowa705
Copy link

sowa705 commented Feb 27, 2023

This is a very interesting metric, Im pretty sure you can also get this metric on ryzen cpu's so it would be very interesting for comparisons between different CPU's

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

4 participants