Log inStart free
LESSON 33.18 · 5 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW

Arrival rate, service rate and utilization

Watch 60 requests queue for one GPU as the load rises.


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

Go Pro · $8.25/mo
EXPLAINER · 33.18 · QUEUE BAYλ 3 REQ/S · 60 REQUESTS IN 20.0 S
01
Stage 1 of 5 · Arrivals
Requests arrive one by one, at random gaps. The arrival rate λ is 60 requests in 20.0 s: 3 per second.
Explain it simply

Each teal tick is one chat request that reaches the GPU. The gaps between the ticks are random, so some requests come in bunches. On average, 3 requests arrive every second. That is the arrival rate.

A time axis of 20.0 seconds with 60 teal ticks, one per request, at random gaps.

requestsGPU busyGPU idlewaitutilization
time (s)05101520the streamarrivalsGPUarrival rateλ = 3 req/s60 requests in 20.0 s60 / 20.0 s = 3 req/stime (s)05101520the streamarrivalsGPUarrival rateλ = 3 req/s60 requests in 20.0 s60 / 20.0 s = 3 req/s
Toy: 60 requests, one toy GPU, one request at a time
STAGE 1 / 5
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
λ=nT\sy{lam}{data}{\lambda} = \frac{n}{T}
λ=6020.00 s=3 req/s\lambda = \frac{60}{20.00\ \text{s}} = 3\ \text{req/s}

The arrival rate is the number of requests per second.

Common mix-ups

MYTHA GPU that is 60% busy has no queue.

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

Predict, then reveal
3 CHECKS · PRO
Q01At 20 ms per token, does the mean wait grow by a third when λ goes from 3 to 4?

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

PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
  • 4 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.