green-metrics-tool icon indicating copy to clipboard operation
green-metrics-tool copied to clipboard

Docker container network reporter data is not correctly mapped into phase

Open ArneTR opened this issue 1 year ago • 0 comments

If a network transfer happens very close to the end of a phase it can happen that the cgroup reports the transferred data at a minimal later time than the process that initiated it ends.

Example: https://metrics.green-coding.berlin/stats.html?id=b746e03d-9f24-4950-949f-62d66b55df53 Screenshot 2023-07-26 at 12 20 10 PM

The image shows that the phase RUNTIME ends and the curl process has already returned with a exit-code = 0, but the cgroup reports a later timestamp.

Why is this happening? Since we are not on a distributed system here, should the cgroup time not be the same as the time in the python process?

ArneTR avatar Jul 26 '23 10:07 ArneTR