Closed ArneTR closed 2 weeks ago
The overhead is now down from 23s to 5s
It is unclear to me why the step for a measurement takes 5s. In local testing the time is less than 200ms
Even when I look at the detail logs the time seems to be less than 1s.
I found the culprit. Aparently sending a process to the background makes GitHub steps hang for a while of the input and output streams are not handled.
This code part fixes it: https://github.com/green-coding-solutions/eco-ci-energy-estimation/commit/4425e1bd2371ac042c38f61f2b784719919d4a15
Brought it now also to this branch
Eco-CI Output: | Label | 🖥 avg. CPU utilization [%] | 🔋 Total Energy [Joules] | 🔌 avg. Power [Watts] | Duration [Seconds] |
---|---|---|---|---|---|
Total Run (incl. overhead) | 14.757 | 23.0745 | 2.10 | 11 | |
Sleep 3s | 6.445 | 5.65728 | 2.83 | 2 | |
ls -alhR /usr/lib | 26.5233 | 11.2577 | 2.81 | 4 | |
Sleep 3s | 0.856667 | 6.15952 | 2.05 | 3 |
🌳 CO2 Data: City: Washington, Lat: 38.7095, Lon: -78.1539 CO₂ from energy is: 0.010129486 CO₂ from manufacturing (embodied carbon) is: 0.003138452 Carbon Intensity for this location: 439 gCO₂eq/kWh SCI: 0.013268 gCO₂eq / pipeline run emitted
Eco-CI Output: | Label | 🖥 avg. CPU utilization [%] | 🔋 Total Energy [Joules] | 🔌 avg. Power [Watts] | Duration [Seconds] |
---|---|---|---|---|---|
Total Run (incl. overhead) | 23.6765 | 56.5316 | 2.98 | 19 | |
Sleep 3s | 10.005 | 7.25165 | 3.63 | 2 | |
ls -alhR /usr/lib | 36.5856 | 41.2396 | 4.12 | 10 | |
Sleep 3s | 4.68 | 8.04038 | 2.68 | 3 |
🌳 CO2 Data: City: San Jose, Lat: 37.1835, Lon: -121.7714 CO₂ from energy is: 0.003787577 CO₂ from manufacturing (embodied carbon) is: 0.005420962 Carbon Intensity for this location: 67 gCO₂eq/kWh SCI: 0.009209 gCO₂eq / pipeline run emitted
Eco-CI Output: | Label | 🖥 avg. CPU utilization [%] | 🔋 Total Energy [Joules] | 🔌 avg. Power [Watts] | Duration [Seconds] |
---|---|---|---|---|---|
Total Run (incl. overhead) | 23.9335 | 56.6945 | 3.15 | 18 | |
Sleep 3s | 13.445 | 7.49903 | 3.75 | 2 | |
ls -alhR /usr/lib | 35.6756 | 40.706 | 4.07 | 10 | |
Sleep 3s | 6.97667 | 8.48949 | 2.83 | 3 |
🌳 CO2 Data: City: San Jose, Lat: 37.1835, Lon: -121.7714 CO₂ from energy is: 0.003798498 CO₂ from manufacturing (embodied carbon) is: 0.005135649 Carbon Intensity for this location: 67 gCO₂eq/kWh SCI: 0.008934 gCO₂eq / pipeline run emitted
Old Energy Estimation
Eco-CI Output: |Label|🖥 avg. CPU utilization [%]|🔋 Total Energy [Joules]|🔌 avg. Power [Watts]|Duration [Seconds]| |---|---|---|---|---| |Total Run|28.5882|136.957|3.70154|70| |Sleep 3s|2.9|3.53779|1.7689|24| |ls -alhR /usr/lib|31.7416|128.113|4.00352|33| |Sleep 3s|1.17|5.30669|1.7689|3| 📈 Energy graph: ```bash 4.40 ┤ â•â•® 4.14 ┤ â•â•® â•â•® ││ â•â”€â”€â•® 3.87 ┤ │╰───╯╰────────╯╰────────────╯ │ 3.61 ┤ │ │ 3.35 ┤ │ │ 3.08 ┤ │ │ 2.82 ┤ │ │ 2.56 ┤ │ │ 2.29 ┤ │ │ 2.03 ┤ │ │ 1.77 ┼─╯ ╰── Watts over time ``` 🌳 CO2 Data: City: Boydton, Lat: 36.677696, Lon: -78.37471 COâ‚‚ from energy is: .05930238100000000000 COâ‚‚ from manufacturing (embodied carbon) is: .01997196656202434362 Carbon Intensity for this location: 433 gCOâ‚‚eq/kWh SCI: 0.079274 gCOâ‚‚eq / pipeline run emitted