Name the electrical boundary before reporting energy
Convert power traces into energy while preventing overlapping device, node, and facility accounts.
On this page
The question for today
What you’ll understand
- Distinguish watts, joules, watt-hours, and kilowatt-hours.
- Specify nonoverlapping electrical boundaries and measurement intervals.
- Separate measured energy from modeled allocation and nameplate estimates.
An energy number is incomplete until it says what was inside the meter and when the measurement started and stopped. A GPU-board counter, a server wall meter, and a facility electricity bill cover different equipment. All can be useful, but their totals cannot be exchanged or added indiscriminately. Begin a study with a boundary diagram and a time window, then attach units to every transformation. The numerical fixtures throughout this module are fictional teaching examples, not specifications for a device, electricity grid, or facility.
Integrate a rate over an explicit interval
Power is the rate of energy transfer. A constant reading of one watt maintained for one second corresponds to one joule; a brief high-power burst may consume less energy than a long low-power wait. Average power only becomes an energy estimate when multiplied by the duration over which that average applies. A peak reading, a power limit, and a thermal design value are not interchangeable with the measured average. Preserve the original timestamps rather than multiplying whichever dashboard number is most convenient.
Watt-hours express energy, despite containing the word watt. One hour contains 3,600 seconds, so one watt-hour equals 3,600 joules, and one kilowatt-hour equals 3,600,000 joules. The conversion does not depend on a hardware model. Using kilowatts with seconds without an additional conversion introduces a factor error. Write intermediate units alongside numbers; dimensional cancellation often exposes a mistake before a plausible-looking efficiency ratio hides it.
Add disjoint parts, not nested meters
Draw nested boxes for accelerator circuitry, the server, and the facility. A whole-server wall measurement normally already includes the accelerator and power-supply losses within that server boundary. Adding a GPU-board counter to it counts part of the electricity twice. To construct a node estimate from components, require disjoint component coverage, synchronized intervals, and a declared treatment of conversion losses. A quantity labeled host power must say whether it excludes the accelerator rather than relying on an ambiguous label.
A measurement also has a temporal boundary. Starting before initialization includes model loading and cache preparation; starting afterward measures another workload phase. Ending when an asynchronous kernel is launched omits the subsequent device execution. Define the completion event and account for all work relevant to the question, including retries or cleanup if they are within scope. Report excluded phases separately when their frequency could change the comparison between implementations.
Label estimates and allocation decisions
Green Algorithms provides an explicit estimation framework using runtime, hardware assumptions, utilization, and facility or grid inputs. Such a model can make missing measurements visible and support sensitivity analysis. It does not turn an assumed component power into an observed electrical trace. Store whether each input was metered, inferred, or assigned from a default. A reproducible estimate with an uncertainty range is more informative than a precise decimal whose measurement provenance is unavailable.
Shared infrastructure requires an additional accounting decision. A node counter covers all concurrent work on that node, not automatically one process. Assigning a fraction by time, reserved capacity, or measured activity is an allocation policy whose totals should reconcile to the parent account. Incremental energy relative to an idle baseline answers a different question from gross electricity during execution. Keep both the parent measurement and the allocation rule so another reader can reconstruct the reported job number.
Work it through
Construct one node account from disjoint fictional components
A fictional accelerator averages 180 W and all remaining node components together average 70 W during the same 120-second completed job. The two accounts are stipulated disjoint and complete. Compute accelerator, other-node, and total node energy in joules and watt-hours.
Multiply accelerator power by the common interval: 180 W×120 s=21,600 J. Divide by 3,600 to obtain 6 Wh. This number covers only the stipulated accelerator boundary.
Other-node energy is 70×120=8,400 J, or 7/3 Wh≈2.333 Wh. This account already includes the fictional remaining losses and components, so no additional node term is required.
Add the disjoint accounts: 21,600+8,400=30,000 J, or 25/3 Wh≈8.333 Wh=0.008333 kWh. Adding the accelerator again to that node total would double-count 21,600 J.
The complete fictional node uses 30,000 J during this window. Accelerator-only energy is 21,600 J; the two boundaries answer different questions.
The living notebook
Explore the model
Interactive lab · function
A rate curve and its accumulated area differ
Reset, set Coefficient a to 1 and Position x to 1; predict area 1/3 before Step. Reset, set a to 2 and x to 1; predict area 2/3 before Step. The exact dimensionless curve y=ax² illustrates integration and coefficient scaling. It is not an electrical trace or energy meter; Step moves the instrument animation, not the selected integration endpoint.
- y at chosen x
- 0.608
- Tangent slope · 2ax
- 1.35
- Signed area · ax³/3
- 0.182
This lab uses only y = ax². Playback traces the curve within the fixed integration interval from 0 to x; it does not estimate numerical error or change the chosen point. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.
Look forAccumulation depends on the full rate curve and interval, not merely a peak.
Pause & reason
Check your understanding
Your turn
Try it yourself
A fictional disjoint electrical boundary averages 90 W over 40 seconds. Convert its energy to joules, Wh, and kWh. Would an unrelated peak reading be needed?
Take a moment to make a prediction or work it out on paper. Open a hint when you need one.
Give me a hint
Multiply watts by seconds, then use 3600 J per Wh and 1000 Wh per kWh.
Compare with the solution
Energy is 90×40=3600 J=1 Wh=0.001 kWh. The stated average over the same interval already determines the integral. A peak is unnecessary and could not replace that average without a duration or trace model. This calculation says nothing about equipment outside the stipulated boundary.
Keep the idea
Take it with you
- State equipment coverage and start/stop events with every energy result.
- One Wh is 3600 J; power and energy have different dimensions.
- Only disjoint synchronized accounts can be added without double-counting.
Read further
Original sources and deeper explanations to follow at your own pace.
Optional progress, saved in this browser when available. Revisit any lesson at any time.
Lesson not marked complete.