Describe the throughput - latency tradeoff curve for an LLM server, and explain goodput.
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Sweep offered load (or max batch size) on a fixed deployment and plot aggregate tokens/sec against per-request latency (TPOT and TTFT percentiles). The curve has three regions. At low load, latency is flat and near-optimal - adding traffic just fills idle capacity, throughput rises ~linearly (decode is memory-bound; extra sequences ride the same weight-reads). Approaching saturation there's a knee: batches are large enough that compute and KV memory contend, TPOT creeps up, and queueing delay - which is hyper-sensitive to utilization near 1 - starts exploding TTFT. Past the knee, throughput plateaus (hardware roofline reached) while latency grows without bound as the queue lengthens. Every serving deployment is choosing a point on this curve: batch-heavier = cheaper per token, worse per-user experience.
Full worked answer
Sweep offered load (or max batch size) on a fixed deployment and plot aggregate tokens/sec against per-request latency (TPOT and TTFT percentiles). The curve has three regions. At low load, latency is flat and near-optimal - adding traffic just fills idle capacity, throughput rises ~linearly (decode is memory-bound; extra sequences ride the same weight-reads). Approaching saturation there's a knee: batches are large enough that compute and KV memory contend, TPOT creeps up, and queueing delay - which is hyper-sensitive to utilization near 1 - starts exploding TTFT. Past the knee, throughput plateaus (hardware roofline reached) while latency grows without bound as the queue lengthens. Every serving deployment is choosing a point on this curve: batch-heavier = cheaper per token, worse per-user experience.
Goodput (the DistServe framing) is the correction to a classic misleading metric: it counts only throughput that meets your SLOs - e.g., requests/sec served with P99 TTFT < 1 s and TPOT < 50 ms. Raw tokens/sec can be gamed by running deep in saturation where every request violates latency targets; goodput goes to zero there. It's the right optimisation target and the right benchmark-comparison metric - two engines with equal max throughput can differ 2× in goodput under a tight SLO because of scheduling quality (chunked prefill, preemption behaviour, admission control).
Operationally: load-test each config to find the knee, then run at ~60-70% of knee capacity for headroom against bursts; autoscale on leading indicators (queue depth, KV utilization) rather than the lagging latency metrics; and evaluate scheduler/engine changes by goodput-vs-cost, not peak tokens/sec. Also note the SLO itself defines the curve you care about - interactive chat's tight ITL SLO forces a different operating point (and possibly different hardware split) than an offline batch pipeline on the same model.
What a good answer covers
- Sweep offered load (or max batch size) on a fixed deployment and plot aggregate tokens/sec against…
- At low load, latency is flat and near-optimal - adding traffic just fills idle capacity, throughput…
- Approaching saturation there's a knee
- Past the knee, throughput plateaus (hardware roofline reached) while latency grows without bound as the…
- Every serving deployment is choosing a point on this curve
Key terms: knee · Goodput
In the glossary: TPOT / ITL · TTFT · Goodput · SLO · Chunked prefill · Prefill
Interviewer follow-ups to expect
Why does queueing delay explode near saturation?
Your P99 TTFT breaches SLO but GPU utilization shows 60% - what do you investigate?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep