Before you start: words you need#
| Word | Plain meaning |
|---|---|
| Performance programme | A standing, multi-quarter effort to make the whole fleet cheaper or faster, with a backlog, targets and measured results. |
| Goodput | Useful output per unit of resource: tokens per GPU-hour delivered within the SLO. Tokens that missed the SLO do not count. |
| Fleet scorecard | One table showing, per model and hardware, goodput, cost per token and utilization, trended weekly. |
| Amdahl’s law | Speeding up part of the work speeds up the whole only in proportion to that part’s share (22.a). |
| Realization rate | The fraction of a benchmark gain that shows up in production. Usually well below 100%. |
| Performance regression | A change (engine upgrade, new model, config) that makes things slower or costlier without anyone meaning it to. |
| Continuous benchmarking | Running the same benchmarks automatically on every candidate change, so regressions are caught before production. |
1. What is it?#
Module 22 teaches how to make one service faster: measure, find the bottleneck, fix it, verify. A fleet-wide performance programme applies that loop to the whole fleet, every quarter, as a managed portfolio:
flowchart LR M["Measure<br/><small>fleet scorecard</small>"] --> F["Find<br/><small>top bottlenecks by $</small>"] F --> E["Estimate<br/><small>EV per engineer-week</small>"] E --> P["Prototype<br/><small>benchmark at the SLO</small>"] P --> V["Validate<br/><small>quality + performance gates</small>"] V --> R["Roll out<br/><small>canary, then fleet</small>"] R --> RE["Realize<br/><small>measure actual saving</small>"] RE --> M class M,RE memory class F,E io class P,V compute class R warn
The principal usually owns the programme: its scorecard, its backlog and its honesty about what was actually saved.
2. Why does it matter?#
- Gains compound only if someone keeps them. An engine upgrade that gives 12% and a config change that silently loses 8% net out to almost nothing. Without a programme nobody notices.
- Value per point is large. For a $40M-a-year fleet, each 1% of fleet-wide throughput is worth about $400k a year (section 6). That justifies a dedicated team.
- Projected savings are not real savings. Benchmarks overstate, gains overlap, and only part of the fleet benefits. Teams that add up headline numbers report savings finance never sees, and lose credibility.
- The fleet changes underneath. New models, new hardware, traffic shifts (agents, reasoning) make last year’s optimizations irrelevant and create new bottlenecks.
3. Simple analogy#
A company-wide energy-saving programme. One engineer can make one machine efficient. To cut the whole factory’s bill, you need meters on every machine, a list of the biggest consumers, a backlog of projects ranked by savings, a check that each project actually cut the bill (not just the machine’s spec), and someone noticing when a new machine is installed that wastes more than all the projects saved.
4. Tiny example#
Five projects with headline gains of 12%, 25%, 40%, 30% and 21%. Naively, “128% faster”.
Amdahl: each applies only to its share of the fleet → 46% cheaper projected
Overlap: each later project acts on an already-smaller fleet → (already included above)
Realization: production sees 50–90% of each benchmark gain → 37% cheaper realized$14.6M a year realized, against $18.3M projected and a “128%” headline. Report the realized number.
5. Technical explanation#
1. The scorecard#
One row per (model, hardware, workload), trended weekly (22.j):
| Column | Why |
|---|---|
| GPU-hours per week, and share of fleet | where the money is |
| Goodput: tokens per GPU-hour within SLO | the efficiency number |
| $ per M input / output tokens | 23.c |
| Utilization (useful busy time) | 23.c, not nvidia-smi (22.d) |
| Cache hit rate, average batch size, prefill share | the usual explanations |
| SLO attainment | a cheaper fleet that misses SLOs is not a win |
| Engine version and config hash | to explain step changes |
Sort by GPU-hours. The top five rows are usually most of the fleet; that is where the programme works.
2. Finding bottlenecks at fleet scale#
The question is not “what is slow?” but “where is the money going that need not?”. Typical findings, roughly in order of how often they are the largest:
- Idle and fragmented capacity: low utilization, too many small deployments, peak-sized reservations (23.c, 31.d).
- Wrong placement: a model on hardware that does not suit it (21.e), or TP too wide (14.m).
- Missing caching: system prompts recomputed because routing ignores prefixes (21.h).
- Stale configuration: engine versions a year old, default batch sizes, CUDA-graph sizes that pad (13.k).
- Precision left on the table: BF16 where FP8 or FP4 passes the quality gate (13.e, 13.g).
- Kernel-level gaps: a missing fused kernel or attention backend for a new model (Module 25).
Profile representative replicas, not one (22.h). Most fleet waste is visible from metrics alone.
3. The backlog#
Rank by expected value per engineer-week (31.a), using the scorecard’s numbers:
fleet saving ≈ share of fleet × (1 − 1/(1 + gain)) × probability × realizationKeep a realization history: for every past project, the benchmark gain and the production gain. Use it to discount new projections of the same kind. Without it, every projection is optimistic.
4. Gates#
No change reaches the fleet without passing:
- Performance: goodput at the SLO on a replay of real traffic (22.g), not a synthetic sweep.
- Quality: evals and logprob/KL checks against the current production configuration (Module 28). Precision changes, speculative decoding and new kernels can all change outputs.
- Stability: a soak test under load; memory growth, error rates.
- Rollback: a flag or a config revert that takes minutes (23.g).
5. Continuous benchmarking#
Engine releases arrive every few weeks (19.h) and each can speed things up or slow them down for your models. Run a nightly or per-release benchmark matrix: your top models × your hardware × two or three traffic replays × the candidate engine version. Fail the upgrade on a regression beyond noise. This is the cheapest insurance a programme has.
6. Measuring realized savings#
After rollout, compare goodput on the scorecard for the affected rows, before and after, at comparable traffic. Then convert it to money finance can see:
- Capacity released: GPUs no longer needed at the same traffic. Only real if those GPUs are returned, re-used for growth that would otherwise be bought, or used for batch work.
- Avoided purchases: growth absorbed without new hardware. Count it against the forecast (31.d).
A saving that leaves the same GPUs idle is a utilization drop, not a saving.
7. Organising the work#
- A small central team (often 3–8 engineers) owns the scorecard, the benchmark infrastructure, the gates and the cross-cutting projects.
- Model and product teams own their services and adopt the improvements, with the central team doing the first migration and writing the playbook.
- A quarterly review with finance: projected, realized, next quarter’s plan. The principal presents it.
6. Under the hood: a year of the programme#
The program applies five projects in sequence to a $40M fleet, each on its share of GPU-hours (Amdahl), and compares the projected saving with the realized one, using realization rates of the kind a programme learns from its own history. The shares, gains and rates are illustrative.
// portfolio.go — a year of a fleet performance programme: projected vs realized savings.
package main
import "fmt"
type item struct {
quarter string
name string
share float64 // share of fleet GPU-hours the change applies to
gain float64 // throughput gain at the SLO on that share, as measured in the benchmark
realize float64 // fraction of the benchmark gain seen in production (from past projects)
}
func main() {
const fleet = 40e6 // $ per year at today's traffic
fmt.Printf("value of a 1%% fleet-wide throughput gain: $%.0fk a year\n\n", fleet*(1-1/1.01)/1e3)
plan := []item{
{"Q1", "engine upgrade + tuned CUDA-graph sizes", 0.80, 0.12, 0.8},
{"Q1", "prefix-aware routing, agent tier", 0.35, 0.25, 0.7},
{"Q2", "NVFP4 weights on the B200 pool", 0.45, 0.40, 0.6},
{"Q3", "speculative decoding (EAGLE-style drafter)", 0.50, 0.30, 0.5},
{"Q4", "consolidate models, fill troughs (58% → 70% busy)", 1.00, 0.207, 0.9},
}
projected, realized := 1.0, 1.0 // fleet cost as a fraction of today's
fmt.Printf("%-3s %-50s %10s %10s\n", "", "project", "projected", "realized")
for _, it := range plan {
// Amdahl: only `share` of the GPU-hours gets faster.
projected *= (1 - it.share) + it.share/(1+it.gain)
realized *= (1 - it.share) + it.share/(1+it.gain*it.realize)
fmt.Printf("%-3s %-50s %9.1f%% %9.1f%%\n", it.quarter, it.name, (1-projected)*100, (1-realized)*100)
}
fmt.Printf("\nend of year: projected saving $%.1fM, realized $%.1fM a year\n",
fleet*(1-projected)/1e6, fleet*(1-realized)/1e6)
fmt.Printf("naive sum of the five headline gains: %.0f%%\n", (0.12+0.25+0.40+0.30+0.207)*100)
}Output:
value of a 1% fleet-wide throughput gain: $396k a year
project projected realized
Q1 engine upgrade + tuned CUDA-graph sizes 8.6% 7.0%
Q1 prefix-aware routing, agent tier 15.0% 11.9%
Q2 NVFP4 weights on the B200 pool 25.9% 19.5%
Q3 speculative decoding (EAGLE-style drafter) 34.5% 24.8%
Q4 consolidate models, fill troughs (58% → 70% busy) 45.7% 36.6%
end of year: projected saving $18.3M, realized $14.6M a year
naive sum of the five headline gains: 128%How to read it:
- “128% faster” is nonsense and the kind of number that destroys a programme’s credibility. The honest projection is 46% cheaper, and the honest expectation 37%.
- Speculative decoding has the lowest realization (0.5) because its gain shrinks at the large batch sizes a busy fleet runs (13.n). Benchmarks at batch 1 flatter it.
- Utilization is last but large. It applies to the whole fleet. In many real programmes it is the first project, not the last.
- The saving is in “$ per year at today’s traffic”. If traffic doubles, the programme shows up as GPUs not bought (31.d), which is why the forecast must include it.
7. Performance implications#
- Optimise goodput, not throughput. A configuration that doubles throughput by doubling ITL past the SLO has lowered goodput.
- Every gain decays. New models and traffic shapes erode old optimizations. The scorecard is how you notice.
- The order of projects matters. Precision changes (FP4) shift the bottleneck from memory to compute, which changes the value of later projects like speculative decoding. Re-estimate the backlog after each large change.
8. Production implications#
- Publish the scorecard to every team that owns a model. Visibility drives much of the improvement.
- Make continuous benchmarking a release gate for engine upgrades and config changes.
- Keep a realization ledger and use it to discount projections.
- Report savings in finance’s terms: GPUs returned, purchases avoided, $/M tokens per product.
- Protect the quality gate. A performance programme that degrades quality will be shut down, rightly, after the first incident (31.g, Module 28).
9. Common mistakes#
- Adding up headline gains. Use Amdahl and realization rates.
- Optimising the wrong rows. Start with the largest GPU-hour consumers.
- Benchmarking synthetic traffic only. Replay real traffic at the real SLO.
- Claiming savings while GPUs stay idle. Released capacity must be returned or reused.
- No regression gate. Engine upgrades and config drift silently undo gains.
- Skipping the quality gate for “pure performance” changes that change outputs.
- Kernel work first, fleet hygiene last. Usually the reverse order pays more.
10. Hands-on exercise#
- Run
portfolio.go. Move the utilization project to Q1. Does the final realized saving change? Why or why not? (Hint: multiplication commutes; what does change is when the money arrives.) - Compute the money saved within the year, assuming each project’s saving starts at the end of its quarter.
- Design a fleet scorecard for a fleet you know: list the rows (models × hardware) and the columns. Which columns can you not compute today?
- For one engine upgrade, write the benchmark matrix: which models, which hardware, which traffic replays, which metrics, and the threshold that fails the upgrade.
11. Interview questions#
- How would you set up a performance programme for a fleet of 5,000 GPUs?
- What is goodput, and why is it a better target than throughput?
- Five projects each claim 20–40%. How do you estimate the combined saving honestly?
- How do you prove to finance that a performance project saved money?
- Why might speculative decoding deliver much less in production than in its benchmark?
- An engine upgrade improves your main model by 10% and regresses a smaller one by 15%. Ship it?
12. Further reading#
Checked on 13 November 2026.
- The USE method (Brendan Gregg) — utilization, saturation and errors for every resource; the habit behind a fleet scorecard.
- SemiAnalysis InferenceX — continuous cross-vendor inference benchmarks; a model for what your own nightly matrix should look like.
- 22.a (the debugging methodology), 22.g (benchmarking), 22.j (metrics), 22.k (case studies), 23.c (cost per token), 13.a (optimization methodology), 19.d (tuning and benchmarking vLLM).