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

Why different trace on the same device, the type of cpu is different and max frequency is also different? #829

Open
ZhangQinglian opened this issue Jun 21, 2024 · 1 comment

Comments

@ZhangQinglian
Copy link

SCR-20240621-jkkd SCR-20240621-jkhx
@LalitMaganti
Copy link
Collaborator

This is already tracked internally at Google at b/314738464 but quoting the same info here:

Problem:
We display big/little/mid core information in the UI on cpu tracks
That information is often wrong

Root cause:
Today we infer core types by analyzing the max(cpufreq) for each core during the trace
That's incorrect because a core could be fully idle, or could be even at max frequency (but then we wouldn't record any freq change), or anything in between

Proposed solution:
We should instead scrape the list of available frequencies from cpufreq and report it into the trace, and use that information to inform the core type
We even have that code, but is behind an optional data source "linux.system_info" which is not enabled in AOT
We should consider always dump that data (as we do for UTSname and kernel version) instead

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

2 participants