Which registry key stores max cpu speed value precisely?

Chaitanya Singh 20 Reputation points
2024-08-29T10:39:29.85+00:00

Issue is happening in my Windows 11 machine with processor - AMD Ryzen 5 PRO 5650G, 3901MHz, 6 Core(s), 12 Logical Processors. I see in "sysinfo" and "wmic cpu" command outputs that cpu speed is 3901 MHz.

Now, I'm using a program with libuv function "uv_cpu_info" which is taking the cpu speed value from registry key value at "Computer\HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0,1,2.." - "~MHz" which has surprisingly a different value i.e. 3893.

So, I have a couple of questions:

  1. Which is the correct CPU speed- 3893 or 3901?
  2. How to get the 3901 value through APIs? Is that value stored at any other registry key location? If yes, where?

Pls help out.

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

Accepted answer
  1. Anonymous
    2024-09-02T03:03:25.7933333+00:00

    Hi Chaitanya Singh,

    Thanks for your post. Based on my research, WMIC and registry are call from different components. The WMI command-line (WMIC) utility provides a command-line interface for Windows Management Instrumentation (WMI). WMIC is compatible with existing shells and utility commands. The following information is a general reference guide for WMIC. For more information and guidelines on how to use WMIC, including additional information on aliases, verbs, switches, and commands, see Using Windows Management Instrumentation command-line and WMIC - Take command-line control over WMI.

    While the registry key is for information only. Its purpose is to pass the CPU information to applications running on Windows. Based on my experience, the wmic will be more exact than registry.

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.