-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cpu_freq metrics: use scaling or cpuinfo? #122
Comments
@fbegyn I checked it out, and found that See,
|
Interesting, honestly, I didn't look that closely at the documentation. I assumed they were the same, just a rename between different kernel versions. We originally changed the reading preference to work around bugs in the RHEL kernel permissions for the proc file. @mjtrangoni That's an old redhat kernel bug, on the upstream kernel and more recent patch versions of the RHEL kernel, the permission problem is fixed. I guess we need to re-read the kernel docs more carefully. /cc @rtreffer |
Discovered it while comparing node-exporter metrics from a few months ago with the current ones because we couldn't make sense of it. We changed cpu goverenor to I'm not fully comprehending the use for |
I'll have to review the docs, but after first glance, you're probably right. We shouldn't be using the Totally unrelated, |
@SuperQ This is read-only upstream now. See,
And here Dave Jones says why,
|
@mjtrangoni I think a number of distributions patch that file. Looking at a couple of my machines, it appears It seems like my systems have the |
@SuperQ FWIW, quoting
|
@fbegyn Out of curiosity, what platform/driver are you using? |
Since the |
I've created #123 as a possible solution. |
Is there anything more to do on this issue since #123 has been merged? |
This is OT but do you have any more details here? On Ivy Bridge I've been trying to figure out how to get a stable cpu frequency for benchmarking (or even figure out how to know if I'm getting a stable clock speed). I found setting the governor to There seems to be a lot of misinformation about all of this out there... |
@jberryman Yes, it's very complicated, as there's a lot of trickery going on under the hood in the hardware to perform power and thermal envelope management between cores and other parts of the chip. I don't have any specific documentation links off the top of my head. But I would look around for documentation on the various kernel modules that implement the changes. Things like |
…_with_root Get all processes with a custom root of `/proc` path
Since PR #94 it has the default behaviour of reading
scaling_cpu_freq
in favor ofcpuinfo_cur_freq
. These 2 represent different metrics in my eyes. The scaling one reflects at which frequency the linux kernel thinks the cpu runs, while cpuinfo reflects the actual HW frequency of the CPU.source: https://www.kernel.org/doc/Documentation/cpu-freq/user-guide.txt
IMHO cpuinfo should still be the default value to be read here, or these 2 values should maybe represent 2 different metrics. I'd like to know the reasoning for picking the
scaling
over thecpuinfo
statistic.The text was updated successfully, but these errors were encountered: