Unit 2 of 13 · about 4 hours · derive, measure
Offered and completed load, goodput and useful work
Build on Benchmark scenarios, MLPerf boundaries and endpoint goodput. Here you audit the engine's accounting and use it to locate sustainable serving capacity.
You'll be able to
- Reconcile offered, admitted, completed, failed and pending work from one trace boundary.
- Compute request and token goodput under a fixed quality and latency contract.
- Explain a utilization increase that does not increase useful completed work.
Covers
Read
In this order, only the parts listed
0 of 2 done
- Audit throughput and the traffic boundaryHands-On LLM Serving and Optimization - Chapters 8 and 9, frameworks and optimization in practice
Chapter 9, Step 3: Define Evaluation Metrics, printed pp. 300 to 301; Step 5: Benchmark the Qwen3 Model with vLLM, pp. 302 to 303
Use the two workload reports as accounting examples, not a controlled cache ablation: their length distributions and request rates differ. Do not infer cache benefit from their total-token throughput ratio.
- Capacity subject to per-request service qualityEtalon: Holistic Performance Evaluation Framework for LLM Inference Systems
arXiv:2407.07000v2, Sections 2.2, 3.1 and 4.2: metric boundaries, hidden stalls and Evaluation workflow and implementation (the Capacity Evaluation paragraph)
Focus on
- Use the same observation interval for rates. Also report an arrival cohort followed to terminal outcomes; a drain interval must not be silently counted as offered-load time.
- Define request goodput as quality-accepted completions satisfying all declared request SLOs per second. Token goodput counts only the accepted outputs of those requests, using one tokenizer.
- Capacity is a sustainable offered rate satisfying the target success fraction without persistent queue growth. It is not the maximum observed completion rate during a drain.
- Device busy time, padding, recomputation and rejected output can increase utilization without increasing useful work. Use correlated request and iteration traces to distinguish them.
Common mistakes · 3
- Calling the configured request rate the actual offered rate when client concurrency limits delay sending. Retain intended and actual send times.
- Counting cached input tokens as executed prefill work. Logical input throughput and computed-token throughput need separate counters.
- Dropping timeouts from the denominator. They are demand and service failures, not missing observations.
Try it yourself
Closed-book, before checking anything
servelab trace closed-book. For a CPU-checkable fixture, offer 100 unique requests in 10 seconds with no initial queue: 70 succeed, 10 fail, 10 are rejected and 10 remain pending at the boundary. Of the successes, 50 pass both quality and SLO gates and each returns 20 accepted output tokens. Obtain 10 offered requests/s, 7 successful completions/s, 5 good requests/s and 100 good output tokens/s; account for every request once.Quiz yourself
Answer first, then mark it. Missed ones go to Review.
0 got · 0 missed
1.Can completed load briefly exceed offered load?Answer
Yes, when an earlier backlog drains. Report the initial and final backlog and use a common time boundary.
2.Does higher device utilization prove a useful throughput gain?Answer
No. Padding, retries or recomputation can keep the device busy. Valid accepted completions and their SLOs determine useful work.
3.Is request goodput multiplied by mean output length always token goodput?Answer
Only if that mean is taken over the same good requests with the same tokenizer and interval. A mean over all completions can give a different value.
You're done when
Every offered request is accounted for, and you identify a sustainable load point from success fraction, goodput and queue growth rather than utilization alone.
Only when you can do this without notes.
Leads to
Notes
Resources · 2 for this unit, 12 more in the section
- Hands-On LLM Serving and Optimization - Chapters 8 and 9, frameworks and optimization in practiceChi Wang and Peiheng Hu (O'Reilly) · primary
Read Chapter 9 as a worked sequence from traffic generation and baseline through quantized and distributed variants, then the vLLM architecture and scheduler sections of Chapter 8. Replace its model, engine version and hardware with your own fixed contract.
- Etalon: Holistic Performance Evaluation Framework for LLM Inference SystemsMicrosoft Research · required
Use its per-request SLO and goodput framing to audit the benchmark. Preserve raw outcomes, quality acceptance and load shape so a throughput increase cannot hide missed latency targets.
Also in this section
- TensorRT-LLM Benchmarking GuideNVIDIA · required
Use the benchmark workflow, configuration capture, startup metrics and online-serving path as a benchmark-governance reference. Apply the same discipline to your engine and never import NVIDIA results as your own evidence.
- vLLM V1 Architecture OverviewvLLM Project · required
Map API server, EngineCore, scheduler, KV cache manager, model executor and distributed deployment from the current documentation into exact source files. Select the bounded contribution only after identifying its state and fallback boundaries.
- Nano-vLLM and Mini-SGLang as Engine Reconstruction BridgesGeeeekExplorer and SGLang Project · required
Reconstruct Nano-vLLM first, then compare Mini-SGLang cache, scheduler, overlap and model-runner boundaries. Move to vLLM or SGLang only when you can predict where the same responsibility lives.
- UCSD CSE 291A (Spring 2026) - Guest lecture: Engineering vLLMUC San Diego · support
Read the scribe notes, Sections 3, 6 and 7: the architecture overview, model parallelism and serving topology, and the hybrid KV allocator with offloading. Use it to predict where a change would live before reading code.
- AI Performance Engineering - Inference Engine and Benchmark LanesWafer · reference
A curated index. Use Sections 4 and 5 only to find a mechanism source for the contribution.
- AI Systems Performance Engineering companion code - inference labsChris Fregly (O'Reilly) · required
Use
labs/dynamic_router,labs/cache_aware_disagg_inference,labs/speculative_decodeorlabs/flashinfer_attentionas a pattern for a controlled baseline, optimization and profile. Rerun everything under your own manifest. - Machine Learning Systems, Volume 2 - The Economics and Architecture of InferenceHarvard (Vijay Janapa Reddi) · support
Read the opening sections of Inference at Scale for cost per token, utilization and serving-architecture dimensions, then build your own capacity and cost model from measured numbers.
- MLPerf Inference Datacenter BenchmarkMLCommons · support
Study scenario definitions, audit discipline and reproducibility. Borrow governance ideas appropriate to the capstone; submitting to MLPerf or reproducing its fleet hardware is outside the gate.
- Artificial Analysis - Performance benchmarking methodologyArtificial Analysis · reference
Read how its latency, output speed and price figures are measured. Use its public numbers as an outside comparison for your capacity plan, never as your own evidence.
- LLM Inference Systems Laboratory - Full CapstoneRoadmap-Final · required
Complete the architecture map, contribution, fallbacks, correctness and fault suite, raw benchmark package, negative result, capacity and cost plan, independent reproduction and design defense. This artifact supplies the track milestone.
- SciPy bootstrap confidence intervalsSciPy · support
Read the resampling procedure, paired parameter, Notes on degenerate data and Examples. Apply it to independent trials; do not assume correlated serving requests are independent samples.
- Machine Learning Systems, Volume 2 - Sustainable AIVijay Janapa Reddi · support
For optional energy/carbon accounting, read Energy measurement techniques, System-level energy profiling and Operational carbon calculation. State meter boundaries and apply PUE only to complete IT energy, once.