Comments (7)
I work on Chrome and would also very much appreciate if the original support in Windows was restored to enable me to use user-mode (public and documented) APIs and track when throttling happens. There is support on macOS to track the CPU_Speed_Limit
metric described in https://discussions.apple.com/thread/252039204 and it would be great if we could match this on Windows.
from windows-dev-performance.
This appears to have changed in build 21H1 (19043) because on my 20H2 (19042) machine CurrentMHz fluctuates according to load as it used to, but on my 21H1 machine it stays locked at the same value as MaxMhz.
from windows-dev-performance.
Update: the behavior in Windows 11 is the same as in build 19043. That is, the most recent version of Windows 10 and also Windows 11 never change the value returned for CurrentMhz, making detection of thermal throttling much more difficult.
from windows-dev-performance.
Further thoughts:
- If CurrentMhz is no longer supported then the documentation should be updated to acknowledge this.
- My reason for wanting CurrentMhz was so that I could compare it to the actual CPU frequency in order to detect thermal throttling. If this very useful technique (which I've used for 8+ years on several investigations) is no longer going to work then it becomes all the more important for the OS to expose this information (throttling status) in some other way. At the very least there needs to be some way to get it into ETW traces. Having it available from user mode would be better. Without throttling information (thermal or power) some types of performance problems become almost impossible to diagnose. That is, some mysterious performance problems are because the CPU is running at 800 MHz due to power or thermal constraints and unless information about the throttling is in ETW traces it is very hard to understand why things are running so slowly.
from windows-dev-performance.
I saw this pop up in my email and while I can't comment on the originally reported problem, I did want to say that you can get the CPU frequency from ETW traces. I don't recall the specific provider off the top of my head (it's included with the CPU and GeneralProfile profiles running last I checked), but you can see it under CPU Frequencies in WPA (which shows up under Other and is documented here: https://docs.microsoft.com/en-us/windows-hardware/test/wpt/cpu-analysis ). I also find that information invaluable in tracking down performance issues fairly often. Hopefully this can help you out while waiting on a resolution to your reported problem.
from windows-dev-performance.
It sounds like CurrentMhz is not going to be coming back, due to changes in how the CPU and OS coordinate to choose CPU frequencies.
However the underlying issue of needing a way to detect thermal throttling remains. In order to focus on that underlying issue I filed a separate github issue at #101
This one can probably be closed.
from windows-dev-performance.
Thanks Bruce for following up. I'll close this issue and add updates to #101
from windows-dev-performance.
Related Issues (20)
- Throttling detection needed in Windows HOT 5
- Symbol server PE files are being overwritten with different versions HOT 13
- WinDbg's `dU` command is painfully slow HOT 4
- Merge module validation in Orca fails on well-formed merge module
- NT heap scales horrendously in some cases HOT 2
- Set up your dev environment on Windows for Rust HOT 2
- PrefetchVirtualMemory does not prefetch virtual memory (windows api bug) HOT 1
- Explorer leaks resources over a long time HOT 2
- Configuring RDP with MSA is impossible using the RDP Developer Menu HOT 1
- Argon containers use only weak cores on systems with heterogeneous CPUs HOT 4
- Extremely slow Context Menu launch in Windows Explorer HOT 2
- Unexpected Sleep(1) Precision with Different Clock Interrupt Frequencies (Timer Resolution) HOT 3
- Dev drive has vanished HOT 3
- Windows incorrectly schedules utility QoS threads exclusively to E-cores when running on AC power
- Alt + Tab Sometimes Skips over the Last Window
- Alt+tab issue when in full-screen app HOT 2
- Can't Pinpoint What to do with Error PR175 with Visual Studio HOT 2
- "Must define a target architecture" issue from winnt.h when included by `.rc` files HOT 7
- Consistent CPU performance for benchmarking HOT 6
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 windows-dev-performance.