Comments (7)
I did not realize ADL was fully public already.
A cpu where the TSC runs at different rates on different cores is buggy and should be fixed, so clearly there is a Si bug lurking here
from powertop.
Thanks for feedback, closing.
from powertop.
Reopening. I am able to reproduce this problem on different machines. I validated that the TSC counts the same base freq on all cores. I think the problem is that due to the 'turbo' the APERF can count higher than the TSC. If turbo is disabled on the machines, the C0 residency doesn't go over 100%.
I think the problem is here:
powertop/src/cpu/intel_cpus.cpp
Line 672 in 3b52946
Ratio is:
powertop/src/cpu/intel_cpus.cpp
Line 663 in 3b52946
I.e.: after simplification we get something like time_delta * aperf_delta/tsc_delta
And here:
powertop/src/cpu/cpu_linux.cpp
Line 251 in 3b52946
because time_delta == time_factor
we finally get aperf_delta/tsc_delta
which can be higher than the 1.0 (100%) with the turbo utilized.
And that's exactly what I am observing if the machines reach turbo freqs under load.
Or am I missing something?
I have constant_tsc which is running at the max core frequency without turbo.
I am not sure how to hack this into the current code, maybe just clamp the C0 residency to the 100%?
from powertop.
Clamping to the 100% will probably not work, because the CPU could e.g. spend 50% in the C0 running with the 200% turbo which will result in the report of the 100% C0 residency which is not correct.
from powertop.
What about mperf_delta/tsc_delta
? Would it help?
from powertop.
Being over 100% could be considered "correct" if it is just turbo executing more clock cycles than the nominal 100%. Is your turbo really four times the TSC? Or is your TSC frequency scaling? So an explanation in the documentation might be enough. Or, C0 active percent is obviously 100 minus the sum of the idle percents and forget all the MSR stuff.
from powertop.
Yes, in this case it seems the turbo is four times the TSC and the TSC is constant. I was a bit confused because I have seen this very rarely (on very few machines) in the past. I am OK with just documentation of it.
from powertop.
Related Issues (20)
- please make appimage format or binary file
- Devfreq not enabled,Cannot load from file /var/cache/powertop/saved_parameters.powertop
- powertop hangs when dual gpu is enabled HOT 1
- Pw Est and Idle stats missing when running powertop on a VM
- Powertop is meant only for Laptop? Cant we use it for vms or aws ec2 instances? HOT 2
- Documentation is not available any more? HOT 1
- Running powertop --auto-tune causes laptop to wake up to a black screen after suspend HOT 1
- some error log
- https://www.01.org/powertop doesn't go anywhere useful any more HOT 6
- What does _ACPI suffix mean? HOT 5
- Power estimation of USB-C adapter higher than discharge rate
- powertop issues with i226 HOT 6
- High power usage by unused network interface? HOT 1
- "usr/bin/xset: unable to open display ":0"" in Wayland session HOT 1
- Device shown as BAD despite `power/control` being `on` HOT 1
- Display of C0 power substates HOT 1
- Powertop force enables 400Mhz across all cores on Ryzen 7 6850u/Thinkpad T14 G3. HOT 1
- Some zombie processes are shown
- Can I use it in ARM based linux?
- Allow running as non-root HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powertop.