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

Power measurements in emissions.csv #559

Open
ConstanceDws opened this issue May 24, 2024 · 1 comment
Open

Power measurements in emissions.csv #559

ConstanceDws opened this issue May 24, 2024 · 1 comment

Comments

@ConstanceDws
Copy link

  • CodeCarbon version: 2.3.1
  • Python version: 3.9.2
  • Operating System: Debian GNU/Linux 11

Description

I have a question regarding the cpu_power, gpu_power, and ram_power values in the emissions.csv file generated by CodeCarbon. I noticed that these values represent the latest instantaneous power measurements for each component. Is this the normal operating behavior, or is it an error? If not, it would be helpful to clarify this in the documentation, as it can be misleading. Users might mistakenly assume that these values reflect the mean power consumption of each component over the measurement period.

Alternatively, would it be more useful to compute these power values as the mean power? This would involve dividing the energy consumption of each component by the duration of the measurement period. However, I realize that this approach may not be as informative, given that this information is already available in the emissions.csv file.

@SaboniAmine
Copy link
Collaborator

Hello, we have multiple ways of representing power, energy & emissions data.
I would answer that the behavior you mention is the expected one, but maybe you are expecting something else.
The mean power by itself is not quite useful, at least from my understanding, but its instant value gives an idea of what happened at a specific time.
Would you have a specific usecase, where a mean power value would be useful ? (it could be aggregated in a reporting app, for instance).

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

No branches or pull requests

2 participants