Chapter 11
Power and energy
Where the joules per token go, and what power caps and clock scaling trade. Below, the mechanism as the simulator ran it, step by step; then what it measured, why it behaves that way, and the papers.
Check yourself ↓ three questions and what to remember, at the end
Loading the power animation…
What the simulator recorded
The sweep reports energy per token for every lever (the matrix's J/token column); power caps and clock scaling are recorded separately (results.md sections 3 and 6), in the matrix's colours against the uncapped disaggregated cluster.
| Configuration | TTFT p99 | TPOT p99 | SLO met | Avg power | J / token |
|---|---|---|---|---|---|
| Disaggregated 1P1D | 854.2 ms | 15.2 ms | 99.7% | 2,687 W | 2.77 |
| ... --dvfs | 854.2 ms | 15.2 ms | 99.7% | 2,570 W | 2.65 |
| ... --dvfs --decode-power-cap 250 | 854.2 ms | 17.2 ms | 99.7% | 2,503 W | 2.59 |
| ... --dvfs --decode-power-cap 200 | 854.2 ms | 27.2 ms | 12.6% | 2,284 W | 2.43 |
| 1P1D --power-cap 400 --dvfs | 1,240 ms | 15.2 ms | 95.3% | 2,190 W | 2.26 |
| 1P1D --power-cap 300 --dvfs | 1,651 ms | 15.2 ms | 83.3% | 2,013 W | 2.08 |
| Offered load | Avg power | J / output token | Static share of energy |
|---|---|---|---|
| 0.5 req/s | 1,472 W | 11.8 | 54% |
| 1 req/s | 1,729 W | 7.0 | 46% |
| 2 req/s | 2,066 W | 4.2 | 39% |
| 4 req/s | 2,687 W | 2.8 | 30% |
| 6 req/s | 3,254 W | 2.3 | 25% |
Where the joules go
The simulator's power model gives each pass a static part (the GPU idling) and a dynamic part, its compute and memory energy over its time. A compute-bound prefill draws far more than a memory-bound decode, so a cap clips the prefills: in the animation a cap of 300 W per GPU cuts energy per output token from 6.962 J to 5.183 J, and stretches TTFT p99 from 181.9 ms to 368.7 ms. DVFS lowers the clock on memory-bound passes, where compute waits for memory anyway, and saves a little energy at no cost in time (6.844 J).
Why the cheapest joule is the busy one
Static power is paid whether or not tokens flow, so energy per token is lowest when the GPUs are busy: as the load falls the static share grows (results.md section 6, from 30% at four requests per second to 54% at one every two seconds). That is why the levers that raise capacity also cut joules per token in the sweep: FP8 weights and matmuls -50% on chat, prefix caching -50%, while disaggregating at the same eight GPUs costs energy there (+4%). Narrower formats also move fewer bytes and do cheaper arithmetic per operation; what each format costs in silicon and energy per operation is Numerics Explained's hardware chapter. Energy-aware cluster managers (DynamoLLM) reconfigure instances and clocks as the load moves.
Check yourself
Commit to an answer before you reveal it: a wrong guess you can explain teaches more than a right one you skimmed. Every number in the answers comes from the same tested model as the chapter’s.
Reveal the answer
Answer: 5.183 (counted right within 5%)
Commit to a number, then reveal.
Reveal the answer
Answer: Static power is paid whether or not tokens flow, so idle time adds joules to every token
Pick one, then reveal.
Reveal the answer
Answer: Almost nothing in time: compute waits for memory there anyway
Pick one, then reveal.
Papers and sources
- Stojkovic, Zhang, Goiri et al., DynamoLLM: Designing LLM Inference Clusters for Performance and Energy Efficiency (arXiv:2408.00741): reconfiguring instances and GPU frequency for energy under SLOs
- Patel, Choukse, Zhang et al., Splitwise: Efficient generative LLM inference using phase splitting (arXiv:2311.18677): different hardware for the prompt and token phases