Skip to content

Made network carbon data intensity dynamic #1200

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions config.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@ sci:
# The number worldwide for 2024 is 473
# The number 334 that comes as default is for Germany from 2024 and comes from https://app.electricitymaps.com/zone/DE/all/yearly
I: 334
# N is not technically part of the SCI, but we keep the value here for better clustering.
# N is the network energy intensity per transferred data. It transforms values like GB to kWh
# See https://www.green-coding.io/co2-formulas/ for details
N: 0.001875

#optimization:
# ignore:
Expand Down
2 changes: 1 addition & 1 deletion lib/phase_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def build_and_store_phase_stats(run_id, sci=None):
# build the network energy
# network via formula: https://www.green-coding.io/co2-formulas/
# pylint: disable=invalid-name
network_io_in_kWh = Decimal(sum(network_bytes_total)) / 1_000_000_000 * Decimal(0.002651650429449553)
network_io_in_kWh = Decimal(sum(network_bytes_total)) / 1_000_000_000 * Decimal(config['sci']['N'])
network_io_in_uJ = network_io_in_kWh * 3_600_000_000_000
csv_buffer.write(generate_csv_line(run_id, 'network_energy_formula_global', '[FORMULA]', f"{idx:03}_{phase['name']}", network_io_in_uJ, 'TOTAL', None, None, None, None, None, 'uJ'))
# co2 calculations
Expand Down
Loading