Optimize completed work rather than the smallest wattage
Measure runtime and system energy under a supported power policy while enforcing workload and service constraints.
On this page
The question for today
What you’ll understand
- Distinguish a requested power limit from measured average power.
- Compute device and node energy when runtime changes.
- Evaluate power policies under fixed work, quality, and latency constraints.
A power cap changes an operating constraint, not a completed-job energy total. A lower limit may reduce average device power while extending execution, leaving host components powered for longer. It may also barely affect a workload already limited by memory or communication. The useful question is how a supported policy changes completed service under a declared electrical boundary. Measure watts and duration together, retain quality and latency requirements, and keep the workload fixed before ranking settings by energy.
Treat the power policy as an intervention
The pinned NVML R535 command interface exposes power-management limits on supported hardware, with allowed constraints and permissions that must be checked. A requested limit is not a guarantee that every instantaneous sample equals that value or that the board always operates at the limit. Read back the relevant configuration, check return codes, and measure actual consumption. Record the device identity, driver, permitted range, and policy; otherwise a failed or overridden request can masquerade as an experimental setting.
Operating response depends on the workload and the hardware’s control mechanisms. Reducing a limit can change clocks or voltage and can interact with temperature, memory traffic, and contention. A compute-heavy phase and a bandwidth-heavy phase need not respond alike. Run enough completed work to observe the relevant phases, and inspect throttling or thermal conditions rather than assuming a universal percentage relationship between the requested cap and throughput. Controlled settings should not require invented device specifications.
The energy tradeoff is a product
For fixed work and a fixed boundary, the ratio of new to old energy is the power ratio multiplied by the runtime ratio. A one-quarter power reduction accompanied by a runtime increase greater than one-third raises energy under that simple comparison. Use actual averages rather than nameplate limits. Including a steady host load can reduce or reverse an accelerator-only benefit because every additional second incurs that host load, even if the device itself becomes more efficient.
A synthetic performance ceiling can explain why some resource changes fail to help without predicting watts. A memory bottleneck may keep throughput flat while additional compute capacity becomes available. Conversely, a cap can hurt a critical phase disproportionately even if average utilization looks modest. These mechanisms motivate measurement; they do not identify an energy optimum from a utilization chart. Search supported settings with the same representative workload and report where a bottleneck or service constraint changes.
Enforce service and comparison constraints
An energy minimum that violates a deadline is not a feasible setting for that service. Track tail latency, completed throughput, output quality, and failures alongside gross energy. Holding a fixed duration while allowing fewer completed requests changes the denominator and may reward dropping work. Holding fixed output count but allowing different model quality changes the service. Declare which dimensions are matched and which are constraints before looking at the energy results.
Repeat matched runs with controlled warmup and ordering so thermal drift, background jobs, or cache state do not become confounded with policy. A short low-limit run and a long already-hot baseline are not an informative pair. Preserve raw timings and energy windows as well as aggregates. When several settings have similar measured energy, uncertainty and operational robustness can matter more than a nominal minimum whose tiny advantage disappears under another representative input mix.
Work it through
A device benefit shrinks at the node boundary
For the same fictional completed job, setting A averages 400 W device power for 10 seconds; B averages 250 W for 14 seconds. Disjoint other-node power is 80 W throughout either run. A severe setting C averages 180 W device power for 25 seconds. The deadline is 15 seconds.
Device energy is 400×10=4000 J for A and 250×14=3500 J for B, a 500/4000=12.5% reduction. B takes 40% longer, so its power reduction and energy reduction differ.
Node energy is (400+80)×10=4800 J for A and (250+80)×14=4620 J for B. The node reduction is 180/4800=3.75%, smaller because the longer runtime adds other-node energy.
Setting C consumes 180×25=4500 J at the device alone and (180+80)×25=6500 J at the node. It also misses the 15-second deadline. The lowest device wattage is neither the lowest energy nor feasible here.
B is feasible and saves 3.75% node energy in this fictional fixture. C is worse and infeasible; none of these numbers predicts a real device’s response.
The living notebook
Explore the model
Interactive lab · roofline
A resource ceiling is not an energy response curve
Reset, set Operational intensity I to 4 and Memory bandwidth B to 100; predict a 400 GFLOP/s ceiling before Step. Reset, set I to 4 and B to 200; predict 800 GFLOP/s before Step. The fixed compute ceiling is a synthetic 1000 GFLOP/s. These controls expose a bandwidth bottleneck, not a power cap; the instrument supplies no watts, runtime measurement, or energy optimum.
- Attainable ceiling
- 640 GFLOP/s
- Ridge intensity
- 12.5 FLOP/byte
- Ceiling regime
- Memory-bound ceiling
Synthetic roofline ceiling min(1000, B·I), in GFLOP/s, with B in decimal GB/s and I in FLOP/byte. Playback traces the roof without changing the selected kernel. This upper-bound model is not a measured throughput prediction, hardware comparison or price model. 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 forUse a bottleneck model to formulate measurements, not to invent a power-policy response.
Pause & reason
Check your understanding
Your turn
Try it yourself
A fictional fixed job uses 200 W for 5 seconds at one setting and 150 W for 8 seconds at another. Both powers cover the entire declared boundary. Compare energy and feasibility under a 6-second deadline.
Take a moment to make a prediction or work it out on paper. Open a hint when you need one.
Give me a hint
Calculate both power–time products before applying the deadline.
Compare with the solution
The settings consume 1000 J and 1200 J respectively. Lower power therefore increases energy by 20% in this fixture, because the runtime increase dominates. The first setting meets the 6-second deadline and the second does not. These conclusions depend on matched work and the stipulated measured averages, not on a generic rule that every lower cap behaves this way.
Keep the idea
Take it with you
- A requested cap and an observed average power are different quantities.
- Longer runtime can erase a device-level or system-level energy benefit.
- Energy comparisons must preserve useful work and service constraints.
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.