Skip to content
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

Wrong result with multiple CPUs #391

Open
patricgruber opened this issue Nov 25, 2024 · 0 comments · May be fixed by #392
Open

Wrong result with multiple CPUs #391

patricgruber opened this issue Nov 25, 2024 · 0 comments · May be fixed by #392
Labels
bug Something isn't working

Comments

@patricgruber
Copy link

Environment

Tracarbon version: v0.7.2

Environment:

  • Source: pypi
  • OS: Linux (NixOS)
  • Other:

Bug

What happened: The server I tested on has multiple physical CPUs. The resulting energy usage is completely wrong.

What you expected to happen: The energy usage is correct.

How to reproduce it: Run the Tracarbon on a server with multiple physical CPUs

More details:
The problem seems to be that multipe CPUs means that there are multiple RAPL directories. This is handled mostly correctly, but there is the issue that there are multiple dram or core sensors, which is a problem when storing previous results in a dictionary in the RAPL implementation. There is no distinction between core and dram or CPU 1 or CPU 2.
This then causes problems with the calculation of differences, since the old CPU 2 value could be used for the new CPU 1 value or vice versa.

@patricgruber patricgruber added the bug Something isn't working label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant