-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path02-operational-emissions.yml
179 lines (178 loc) · 5.07 KB
/
02-operational-emissions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
name: 02-operational-emissions
description: pipeline to calculate operational emissions of CPU jobs
tags:
aggregation:
metrics:
- carbon/operational
- energy
type: both
initialize:
plugins:
utilization:
path: builtin
method: Divide
config:
numerator: cpu/user-seconds
denominator: cpu/total-seconds
output: cpu/utilization
cpu-lookup:
path: builtin
method: CSVLookup
config:
filepath: ./resources/cpu-model.csv
query:
node: node-name
output: "*"
usage-to-wattage:
path: builtin
method: Multiply
config:
input-parameters: ["cpu/utilization", "watts-per-core"]
output-parameter: "wattage-scaled"
duration-to-hours:
path: builtin
method: Coefficient
config:
input-parameter: duration
coefficient: "=1/60"
output-parameter: duration-hours
watts-to-kw:
path: builtin
method: Coefficient
config:
input-parameter: wattage-scaled
coefficient: "=1/1000"
output-parameter: kilowatts
calculate-energy:
path: builtin
method: Multiply
config:
input-parameters: ["duration-hours", "kilowatts"]
output-parameter: energy
sci-o:
path: builtin
method: Multiply
config:
input-parameters: ["grid/carbon-intensity", "energy"]
output-parameter: carbon/operational
parameter-metadata:
outputs:
carbon/operational:
description: Total operational carbon
unit: gCO2eq/KWh
aggregation-method:
time: sum
component: sum
tree:
children:
job7984064:
defaults:
grid/carbon-intensity: 381
pipeline:
observe:
regroup:
compute:
- utilization
- cpu-lookup
- usage-to-wattage
- duration-to-hours
- watts-to-kw
- calculate-energy
- sci-o
inputs:
- cpu/system-seconds: 0.367402
cpu/total-seconds: 32.694612
cpu/user-seconds: 32.327209
duration: 1.0
node: node1318
timestamp: 1738617803
- cpu/system-seconds: 0.602918
cpu/total-seconds: 92.342047
cpu/user-seconds: 91.739128
duration: 1.0
node: node1318
timestamp: 1738617863
- cpu/system-seconds: 0.942671
cpu/total-seconds: 151.930837
cpu/user-seconds: 150.988165
duration: 1.0
node: node1318
timestamp: 1738617923
- cpu/system-seconds: 1.177192
cpu/total-seconds: 211.608131
cpu/user-seconds: 210.430939
duration: 1.0
node: node1318
timestamp: 1738617983
- cpu/system-seconds: 1.495147
cpu/total-seconds: 271.193105
cpu/user-seconds: 269.697958
duration: 1.0
node: node1318
timestamp: 1738618043
- cpu/system-seconds: 1.78727
cpu/total-seconds: 330.796453
cpu/user-seconds: 329.009182
duration: 1.0
node: node1318
timestamp: 1738618103
- cpu/system-seconds: 2.085316
cpu/total-seconds: 390.424759
cpu/user-seconds: 388.339442
duration: 1.0
node: node1318
timestamp: 1738618163
- cpu/system-seconds: 2.353671
cpu/total-seconds: 450.083889
cpu/user-seconds: 447.730218
duration: 1.0
node: node1318
timestamp: 1738618223
- cpu/system-seconds: 0.003974
cpu/total-seconds: 0.00531
cpu/user-seconds: 0.001336
duration: 1.0
node: node1326
timestamp: 1738617803
- cpu/system-seconds: 0.005243
cpu/total-seconds: 0.007005
cpu/user-seconds: 0.001762
duration: 1.0
node: node1326
timestamp: 1738617863
- cpu/system-seconds: 0.006489
cpu/total-seconds: 0.008671
cpu/user-seconds: 0.002181
duration: 1.0
node: node1326
timestamp: 1738617923
- cpu/system-seconds: 0.007715
cpu/total-seconds: 0.010308
cpu/user-seconds: 0.002593
duration: 1.0
node: node1326
timestamp: 1738617983
- cpu/system-seconds: 0.008942
cpu/total-seconds: 0.011948
cpu/user-seconds: 0.003006
duration: 1.0
node: node1326
timestamp: 1738618043
- cpu/system-seconds: 0.010226
cpu/total-seconds: 0.013663
cpu/user-seconds: 0.003437
duration: 1.0
node: node1326
timestamp: 1738618103
- cpu/system-seconds: 0.011443
cpu/total-seconds: 0.01529
cpu/user-seconds: 0.003846
duration: 1.0
node: node1326
timestamp: 1738618163
- cpu/system-seconds: 0.012694
cpu/total-seconds: 0.016961
cpu/user-seconds: 0.004267
duration: 1.0
node: node1326
timestamp: 1738618223