0ry0n / Resource_Monitor

Resource_Monitor is a GNOME Shell extension that Monitor the use of system resources like cpu, ram, disk, network and display them in GNOME Shell top bar.
https://extensions.gnome.org/extension/1634/resource-monitor/
GNU General Public License v3.0
154 stars 21 forks source link

Incorrect frequency reporting for Intel 12th gen CPUs #82

Closed xtenduke closed 3 weeks ago

xtenduke commented 9 months ago

Current source of CPU frequency /sys/devices/system/cpu/cpu1/cpufreq/scaling_cur_freq is unsuitable for modern CPUs, specifically heterogeneous CPUs like Intels 12th gen.

Attached example shows an i7 12800h running at idle.

Screenshot from 2024-01-25 09-55-22 I think it would be better if we changed this to the highest clock speed reported across all cores. Cores with the MAXMHZ of 3700 are E-cores and have a lower turbo clock sped.

Screenshot from 2024-01-25 10-08-41

https://github.com/0ry0n/Resource_Monitor/blob/7e6b378a53f2b4eff1f479f0875185fe1eb73e96/Resource_Monitor%40Ory0n/extension.js#L2541

0ry0n commented 3 weeks ago

Now the frequency of each core is monitored and the highest value is taken.