-
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
Instantaneous vs. cummulative cpufreq stats #428
Comments
+1. Looping in @discordianfish to check if this request makes sense, and if so, I'd be happy to raise a PR. (: |
Agreed, I think that would make sense |
Thanks both, I forgot to track this. Would be really good to have cumulative stats. |
|
Hmm. How about hiding this behind a flag, so only people interested enable it? It needs anyway a kernel module, that might not be always available. |
I think As this is a generically useful library, the decision on metrics exposition would happen in something like the |
Extracts data from the following files: * `total_trans` * `trans_table` * `time_in_state` Refer https://www.kernel.org/doc/html/latest/cpu-freq/cpufreq-stats.html#configuring-cpufreq-stats. Fixes: prometheus#428 Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
Extracts data from the following files: * `total_trans` * `trans_table` * `time_in_state` Refer: https://www.kernel.org/doc/html/latest/cpu-freq/cpufreq-stats.html#configuring-cpufreq-stats. Fixes: prometheus#428 Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
Extracts data from the following files: * `total_trans` * `trans_table` * `time_in_state` Refer: https://www.kernel.org/doc/html/latest/cpu-freq/cpufreq-stats.html#configuring-cpufreq-stats. Fixes: prometheus#428 Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
Extracts data from the following files: * `total_trans` * `trans_table` * `time_in_state` Refer: https://www.kernel.org/doc/html/latest/cpu-freq/cpufreq-stats.html#configuring-cpufreq-stats. Fixes: #428 Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
Extracts data from the following files: * `total_trans` * `trans_table` * `time_in_state` Refer: https://www.kernel.org/doc/html/latest/cpu-freq/cpufreq-stats.html#configuring-cpufreq-stats. Fixes: prometheus#428 Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
Hi,
Looking around at issues such as #122 and #123, I see that in both cases, what is collected is the current (i.e. instantaneous) state of the CPUs, either hardware (
cpufreq_*
counters) or software (scaling_*_freq
).However, if compiled as such, the kernel does provide cummulative statistics via the
stats/
subdirectory - see https://www.kernel.org/doc/html/latest/cpu-freq/cpufreq-stats.html.I think the
time_in_state
is the most interesting, followed bytotal_trans
. These would allow much better fidelity of historical CPU state.Thoughts?
The text was updated successfully, but these errors were encountered: