Coder Social home page Coder Social logo

Comments (7)

henrikand avatar henrikand commented on June 1, 2024 2

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.

randomascii avatar randomascii commented on June 1, 2024

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.

randomascii avatar randomascii commented on June 1, 2024

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.

randomascii avatar randomascii commented on June 1, 2024

Further thoughts:

  1. If CurrentMhz is no longer supported then the documentation should be updated to acknowledge this.
  2. 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.

ChrisOfTheLewi avatar ChrisOfTheLewi commented on June 1, 2024

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.

randomascii avatar randomascii commented on June 1, 2024

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.

AvriMSFT avatar AvriMSFT commented on June 1, 2024

Thanks Bruce for following up. I'll close this issue and add updates to #101

from windows-dev-performance.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.