You are not logged in.
CPU clock frequency is available at `/sys/devices/system/cpu/cpuN/cpufreq/scaling_cur_freq` via the CPUFreq subsystem. The Arch wiki Ryzen page (https://wiki.archlinux.org/title/Ryzen) also lists some third party tools that use kernel modules to expose CPU frequency.
Can I simply use the /sys/* values provided by the CPUFreq subsystem or do the kernel modules have better insight or better data for clock speeds?
Offline
None of the modules in that page talk about frequency monitors so they're for different usecases
Offline
Did you mean this?
ryzen_smu — Ryzen SMU is a Linux kernel driver that exposes access to the SMU (System Management Unit) for certain AMD Ryzen Processors. Can for example be used for undervolting the 5800x3D.
It exposes advanced parameters including voltage level, TDP, dangerous voltage & clock control, and more. If you just have to read clock frequency, then "/sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq" is sufficient and recommended because it's safer than direct SMU access. The SMU access mostly for experienced enthusiast, hardware engineers, and daredevil overclockers.
Can I simply use the /sys/* values provided by the CPUFreq subsystem or do the kernel modules have better insight or better data for clock speeds?
Based on my experience, there is no accuracy/precision/response time difference with direct SMU access. So I recommend you to use "/sys/*" instead, unless you know what you're doing.
Offline