Unit 12 of 13 · about 4 hours · derive, measure

The bottleneck shift and the capacity and cost decision

Build on Cost categories and the Amdahl bound on end-to-end gain. Serving can shift the queueing boundary as well as the execution share, so local speedup is only one input to the decision.

You'll be able to

  • Explain an endpoint gain or regression using changed critical-path terms and queue/cache evidence.
  • Recompute scenario capacity and accepted-output cost after the contribution moves a bottleneck.
  • Choose deployment, selective fallback or rejection of the patch with an explicit reversal condition.

Covers

Bottleneck-shift explanationCapacity and cost decision
1

Read

In this order, only the parts listed

0 of 3 done

  1. Reinterpret a changed resource budgetHands-On LLM Serving and Optimization - Chapters 8 and 9, frameworks and optimization in practice

    Chapter 9, Step 6: Benchmark the Quantized Qwen3 Model with vLLM, printed pp. 304 to 305; Common Optimization Trade-offs, pp. 311 to 312

    Read how lower weight memory changes the KV budget. Use explicit byte units and your own quality/capacity results; do not infer a universal speedup from the worked run.

  2. Price the serving tax at the right levelMachine Learning Systems, Volume 2 - The Economics and Architecture of Inference

    The serving tax: Overhead of distribution, equation 1; Serving cost can dominate training cost, equation 2; The serving hierarchy, Table 5 (page read 2026-10-14)

  3. Model residuals and the shipping decisionLLM Inference Systems Laboratory - Full Capstone

    Milestone E: quantify residuals, optimize critical-path terms and preserve worse regions; Design-defense questions 5, 6, 9 and 10

2

Focus on

  • At fixed execution work, a changed share , local speedup and added overhead fraction predict latency speedup . This model does not hold queueing delay or batch composition fixed under load.
  • Reprofile off/on at matched offered load and at each variant's SLO capacity. Look for changed tokenization, dispatch, memory pressure, recomputation, stream delay and queue growth.
  • Replace the planner's scenario-specific capacity and attempt-cost inputs with final evidence. Preserve quality, retry, failure reserve and routing assumptions; quantify sensitivity to the weakest input.
  • A local gain can improve accepted-output cost without changing integer provisioning, or fail to improve either. Include maintenance, observability, portability and rollback costs in the decision.
Common mistakes · 3
  • Holding the old bottleneck classification after the change. The next largest constrained term can now dominate.
  • Pricing provisioned hardware at full gross throughput while accepted demand is smaller or reserve remains idle.
  • Claiming a causal bottleneck from utilization alone. Correlate phase, queue and ownership traces with controlled ablations.
3

Try it yourself

Closed-book, before checking anything

Closed-book, check a labeled additive execution model: a 10 ms baseline contains a 4 ms term; halving that term and adding 1 ms of overhead yields 9 ms and a speedup of . Do not convert this directly into serving capacity. Use your final off/on traces to explain the dominant residual, then update the three-scenario servelab plan and recommend enablement, bounded dispatch or the unchanged baseline.
4

Quiz yourself

Answer first, then mark it. Missed ones go to Review.

0 got · 0 missed

  1. 1.Why can endpoint latency improve by more than the fixed-work Amdahl estimate?Answer

    Under load, faster service can reduce queueing or change batching. That changes the model's fixed-work assumptions; it does not violate Amdahl's bound.

  2. 2.Can a faster path leave provisioned cost unchanged?Answer

    Yes. Integer replica counts, failure reserve, minimum warm capacity or another resource may prevent removing provisioned capacity.

  3. 3.What supports selective fallback rather than universal enablement?Answer

    A stable observable boundary, correctness-compatible state and held-out evidence that the reference is preferable beyond it. Include dispatch overhead and test the transition.

You're done when

Your decision reconciles the local model with endpoint traces, reprices all three scenarios and names an observation that would reverse the recommendation.

Only when you can do this without notes.

Leads to

Notes

Resources · 3 for this unit, 11 more in the section

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_decode or labs/flashinfer_attention as a pattern for a controlled baseline, optimization and profile. Rerun everything under your own manifest.

  • 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.

  • 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.

  • 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.