mlco2 / codecarbon

Track emissions from Compute and recommend ways to reduce their impact on the environment.
https://mlco2.github.io/codecarbon
MIT License
1.01k stars 158 forks source link

Account for the cost of cooling #416

Closed roarin-roran closed 11 months ago

roarin-roran commented 1 year ago

Description

it seems that the costs estimated are based on the direct energy usage of hardware but in data centers a significant fraction of the energy usage comes from cooling requirements.

are approaches to this mentioned anywhere I'm missing?

if not, this should probably be discussed and estimated

benoit-cty commented 1 year ago

Hello, We just added in version 2.2.3 an option to set the datacenter PUE for that purpose : https://github.com/mlco2/codecarbon/blob/master/examples/pue.py

roarin-roran commented 1 year ago

fantastic!

should this be documented here: https://mlco2.github.io/codecarbon/parameters.html

seems to cover @track_emissions, but not the variables in the example.

also, how is this cooling cost estimated/measured? we're considering using code carbon for scientific purposes where we'll need to detail that.

benoit-cty commented 11 months ago

Hello, the PUE is a multiplication factor provided by the user, so it is up to the user to get it from his cloud provider.

Old data-centers have a PUE up to 2.2, where new green one coud be as low as 1.1.

I will update the documentation.