Log inStart free
LESSON 33.C3 · 6 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW

Queueing an LLM server

Push more requests at one GPU and watch the slowest wait explode.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 2 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 33.C3 · QUEUE BAYλ 4 · μ 5 · ρ 0.80 · BUSY 78%
01
Stage 1 of 6 · Load and capacity
Arrival rate: 4 requests per second. One at a time, the GPU serves 5 per second, so ρ is 0.80.
Explain it simply

Each teal tick is a request that arrives. The ochre row shows when the GPU works. The utilization, the arrival rate over the service rate, is 0.80 here. So the GPU is busy about 78 percent of the run.

60 requests arrive at 4 per second. The GPU serves up to 5 per second. Utilization is 0.80.

requests, N(t)GPU, servicewaitlatency, L, P99
one toy GPU replica · time runs left to right05101520 sarrivals · λ 4 req/sGPU · 1 slot · a step: 16 ms + 4 ms per rowλ = 4 req/sμ = 5 req/s (full)ρ = λ / μ = 0.80GPU busy 78% of the run1.00 rows a step (mean)one toy GPU replica · time runs left to right05101520 sarrivals · λ 4 req/sGPU · 1 slot · a step: 16 ms + 4 ms per rowλ = 4 req/sμ = 5 req/s (full)ρ = λ / μ = 0.80GPU busy 78% of the run1.00 rows a step (mean)
Toy: 60 chat requests, one toy GPU, 16 ms per step + 4 ms per row
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
ρ=λμ\sy{rho}{out}{\rho} = \frac{\sy{lam}{data}{\lambda}}{\sy{mu}{param}{\mu}}
ρ=4/5=0.80\rho = 4 / 5 = 0.80

Utilization is the arrival rate over the service rate.

Common mix-ups

MYTHA GPU at 80% busy keeps latency near the service time.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01One slot, 300 requests: P99 is 2.04 s at 4 req/s. Below or above 4 s at 5.5?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 2 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.