Closed alysondeives closed 4 months ago
powerstat_core_cpu_frequency_mhz metric reports a frequency with value 0 for isolated cores.
@zak-pawel the current behavior when we cannot get the frequency seems correct. However, there is a second question about estimating the behavior. I am not sure defaulting to minimum or maximum makes sense either as that could equally throw off someone using these values.
Thoughts?
the current behavior when we cannot get the frequency seems correct.
I agree with that. And it is not even that we cannot get the frequency, but (as @alysondeives wrote) scaling_cur_freq
contains 0
.
I am not sure defaulting to minimum or maximum makes sense either as that could equally throw off someone using these values.
And I also agree that defaulting to minimum or maximum may be misleading and in many cases wrong. There is a way to calculate current frequency using MSRs, but reading MSRs in more costly (for cores latency) than reading files from filesystem.
Need to think about it.
@alysondeives
Can you please file an upstream issue at: https://github.com/intel/powertelemetry and @p-zak can consider what to do here.
Thanks
Hello! I am closing this issue due to inactivity. I hope you were able to resolve your problem, if not please try posting this question in our Community Slack or Community Forums or provide additional details in this issue and reqeust that it be re-opened. Thank you!
Use Case
There is an issue with intel_pstate where scaling_cur_freq is reported as 0 when nohz_full is enabled (i.e. the core is isolated). This behavior makes it difficult to calculate metrics that uses the scaling_cur_freq on the system and generates outliers.
Example: kernel params: nohz_full=1-19,21-39 isolcpus=nohz,domain,managed_irq, rcu_nocbs=1-19,21-39 kthread_cpus=0,20 irqaffinity=1-19,21-39
Output from telegraf metrics
It would be great if intel_powerstat plugin could estimate the frequency of isolated cores. My naive approach on this situation is to set the cur_freq according to scaling_governor: if scaling_governor is powersave, use the values from scaling_min_freq, otherwise use scaling_max_freq. Is there any way to improve this estimation?
Expected behavior
powerstat_core_cpu_frequency_mhz metric should report a frequency value for isolated cores.
Actual behavior
powerstat_core_cpu_frequency_mhz metric reports a frequency with value 0 for isolated cores.
Additional info
No response