Page 1 of 1

Measuring CPU OC in Perfmon.dll

Posted: February 12th, 2017, 11:41 pm
by Jahiliyyah
I already have Speedfan, afterburner, and my mobo suite running to monitor/OC everything, so I don't want to install HWinfo or coretemp to measure something my OS can already display. I've noticed an ongoing problem with performance monitor not displaying correct clock speeds when boost clocks or overclocks are applied. It seems to just display whatever is in the registry or power management for your stock frequency.

https://forum.rainmeter.net/viewtopic.php?t=19516

However, it seems there is one value that does read correctly...sort of.

http://superuser.com/questions/256921/what-does-the-maximum-frequency-number-mean-in-the-windows-resource-monitor

So if you simply multiply the % maximum frequency by the stock frequency we should get the real frequency.

Code: Select all

[MeasureCPURegistry]
Measure=Registry
RegHKey=HKEY_LOCAL_MACHINE
RegKey=HARDWARE\DESCRIPTION\System\CentralProcessor\0
RegValue=~MHz

[MeasureFrequency]
Measure=Plugin
Plugin=Plugins\PerfMon.dll
PerfmonObject="Processor Information"
PerfmonCounter="% of Maximum Frequency"
PerfmonInstance="0,0"
PerfmonDifference=0

[MeasureCPUMHz]
Measure=Calc
Formula=MeasureFrequency*MeasureCPURegistry/100
When I looked for other people attempting this, I found one person who had issues: https://forum.rainmeter.net/viewtopic.php?t=14051

I'm guessing it's an issue with update rates. I tried a quick stress test and while resource monitor is displaying the maximum frequency increasing accurate to the OC, no change is being displayed on the skin or performance monitor. I guess that means the post in superuser is wrong. Maybe Maximum Frequency in Resource Monitor is not the same as % of Maximum Frequency in Performance Monitor, so what is? I double checked all the instances under "% of Maximum Frequency" & "Frequency" to be sure, and none of them actually displayed any fluctuations when the clock increased.

Re: Measuring CPU OC in Perfmon.dll

Posted: February 19th, 2017, 5:03 am
by Bekarfel
My computer doesn't even have a value for this setting. Resmon reports 0% Maximum frequency, and Perfmon does the same. If I were having problems like you've described I'd try to display the raw values I'm using to calculate the value, and then check those against the calculated value to see if I was doing something wrong, or if the data was wrong.

Re: Measuring CPU OC in Perfmon.dll

Posted: February 19th, 2017, 8:42 pm
by Jahiliyyah
I did try that, no luck. Mine always reports 100%. I think I'm just going to switch to HWInfo eventually. Just going to replace my case fans first since I need Speedfan right now.