It is currently March 28th, 2024, 7:23 pm

Measuring CPU OC in Perfmon.dll

Get help with creating, editing & fixing problems with skins
Jahiliyyah
Posts: 4
Joined: March 9th, 2014, 2:32 pm

Measuring CPU OC in Perfmon.dll

Post 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.
Bekarfel
Posts: 217
Joined: May 16th, 2012, 5:38 am

Re: Measuring CPU OC in Perfmon.dll

Post 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.
moshi wrote:there are many Rainmeter skins that aren't really useful, so let's add another one.
jsmorley wrote:I have good news and bad news.
First the bad news. [...] We would be happy to have this happen and would love to work with anyone who is feeling ambitious.
Now the good news.
I lied, there isn't any good news...
Jahiliyyah
Posts: 4
Joined: March 9th, 2014, 2:32 pm

Re: Measuring CPU OC in Perfmon.dll

Post 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.