-
Notifications
You must be signed in to change notification settings - Fork 63
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
4GHz was detected as 8GHz #91
Comments
@edisonchan - that is very interesting. It might indicate a interesting microarchitectural effect in ADL. Basically the way the speed is determined is by running a long chain of dependent addition instructions. Except on the Pentium 4 with double-pumped ALU, these should never run faster than 1 per cycle. It is possible the CPU can fuse two adjacent additions into one in some cases, and run them at 2 every cycle. You can set the MHZ manually like so:
Then run uarch bench and it will just use the specified MHZ. I am wondering if you could upload here the results of running |
Something wrong here.
|
What is the non-turbo frequency of the P and E cores on your CPU? Usually you can reboot unattended with We can also try to undo whatever If you still have your results from the first/any run, there is some diagnostic output at the top which indicates if/how turbo was disabled, but anyway, the approaches are: Write 1 to If that file doesn't exist,
This assumes your system has 16 or fewer cores (if fewer you will get some error messages about the cores not existing). Another theory is that the 3.2 GHz value comes from the E cores, not the P cores. |
@travisdowns I had try if update: the |
|
@edisonchan - thanks for the update! FWIW for setting frequencies, you might try What model is this? Strange the pcores are still at 3.1 GHz. I guess this is the i9-12900K[F], so 3.2 sounds like the base frequency for the pcores. Note that you can test the pcores and ecores separately by pinning the cpu in Is it still reporting 2x the frequency? If you can share some of the output, I can help diagnose it. You can email me if you don't want to share in public. |
@edisonchan - just saw your reply. I created a branch edison: https://github.com/travisdowns/uarch-bench/tree/edison If you could pull this branch and run it, it has some extra logging around the MHz setting. I'm adding more too in case that doesn't work. |
By the way, if you want to avoid |
@edisonchan - I just added in f89b7eb some tests for loops similar to the calibration routine to the benchmark. If you could pull and run:
and share the results it might help get to the bottom of this. |
The clock is still detected as 8.0 GHz. I don't know how to use git to update the local files, so I just download the "RAW" file to local through the "view file" option. |
Thanks, I am narrowing down the issue (but it's not clear why the env var override doesn't work).
How did you originally clone the repository? I've merged these changes to |
@edisonchan - I think I've fixed the frequency calibration. Why don't you pull master or clone a new repo and try? |
@travisdowns The system is offline now, I need to wait for guys to boot it. The results of f89b7eb was sent to your gmail. Update, now the clock was detect as 4GHz. I had sent the new results to you. |
I have set my CPU (ADL-S) to 4GHz in BIOS and set the power mode to "performance" in Ubuntu 21.10 kernel 5.15rc7, but uarch-bench was detected it is running 8GHz.
The text was updated successfully, but these errors were encountered: