Skip to content

Conversation

@patgruber
Copy link
Contributor

Description

This fixes the issue of having wrong results on servers with multiple CPUs as described in #391

Related Issue(s)

Documentation

The fix is to prefix the name with the "id" of the package, which is taken from the parent directory name of the file. This won't cause issues with summing up values for the report, since it uses checks like "package" in result.name, but it fixes the issue with the computation of the differences, that confuse the values of cpu, dram and so on of different CPUs for being from the same CPU.

@patgruber patgruber requested a review from fvaleye as a code owner November 25, 2024 12:36
@patgruber patgruber changed the title Fix wrong result with multiple CPUs Add support for multiple packages for RAPL sensor Nov 29, 2024
Copy link
Owner

@fvaleye fvaleye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @patricgruber, for reporting the issue and providing a fix 🙏

LGTM 👍

Indeed, overriding the core and dram values in the dictionary was an issue when there were multiple packages.

I will include your fix in the next release.
Don't hesitate to check the values after again.

@fvaleye fvaleye merged commit d1176f4 into fvaleye:main Jan 3, 2025
7 of 8 checks passed
@patgruber
Copy link
Contributor Author

Thank you! I will try the new release soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrong result with multiple CPUs

2 participants