-
-
Notifications
You must be signed in to change notification settings - Fork 241
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
pmda-denki RAPL MSR support #2106
pmda-denki RAPL MSR support #2106
Conversation
OK. Looking through the code, one minor consideration is whether a common namespace prefix would be better than repeating denki.rapl for these metrics? i.e. naming like denki.rapl.sysfs and denki.rapl.msr ("raplsysfs" and "raplmsr" seems slightly more cryptic than need be)
Excellent.
That's OK - we just need to adjust the pmdadenki_filter() function to catch these expected outputs - I can help with that if you like. That function also needs to be updated for the changes to denki.rapl{msr,sysfs} metrics regarding "No value(s) available" handling (its out-of-date currently as it only handles denki.rapl as a metric name).
Which tool is that OOC? The whitespace changes generated there are causing CI failures as follows:
So, we'll definitely need to do something about that. |
Thanks for the input. I had separation into rapl.sysfs and rapl.msr considered, but got side tracked later. I used manedit ( http://freshmeat.net/projects/manedit/ ), package from Fedora41. For the committed version I simply edited the current upstream version with an editor. No big changes actually required to the manpage due to the change. |
Great! I've pushed tweaks to the test 1515 filtering and updated the test outputs to match the current denki implementation. Please double check my changes? Thanks! |
Including last commit, all looks good for me, includig qa/1515! |
So far, only /sys file system RAPL sources were supported. This adds /dev/msr register support, found on Intel. This makes on many Intel chips an exciting new metric available which reflects the overall systems power consumption - so far we have to use battery-metrics or smart meter for that.
Selinux looks good for the new MSR metrics.
I see just one unsolved issue with these commits: qa/1515 is right now failing. I do not see how to fix it, it seems the reason is that the new version of pmda-denki is outputting more defails to DEBUG-INFO. That's pieces output after initialization just one time and intended. Not sure how to modify the test accordingly.
Regarding man-page: it can be removed from the commit, no useful content was updated (but the tool changed all kinds of formatting).