Log inStart free
LESSON 33.28 · 5 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Noisy neighbors and tenant isolation

See one tenant's burst slow another, and see a shared cache leak a prompt.


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

Go Pro · $8.25/mo
EXPLAINER · 33.28 · SERVING BAYREQUESTS A 6 · B 10 · PROMPTS 710 / 7,900
01
Stage 1 of 5 · Two tenants
Two tenants share one GPU. A sends 6 short prompts; B sends 10 requests with 7,900 prompt tokens.
Explain it simply

A tenant is one customer of a shared server. Tenant A sends short chat prompts. Tenant B sends long documents, and its burst adds six more of them. Both go to the same GPU.

Lanes for tenant A's 6 requests and tenant B's 10 requests, each with its arrival tick and prompt size.

request, prompt, KV (A solid, B faded)output token, cache hitwaitleakpool, quota, weights read
02505007501,0001,250mstenant Atenant BR1200 inR260 inR11900 inR12900 inR3800 inR13900 inR14900 inR15900 inR4120 inR16900 inR5400 inR680 inR71,000 inR8150 inR9300 inR10100 inA solid, B fadedrequestsA6B10prompt tokensA710B7,900requests of two tenantsprompt tokens: A 710, B 7,90002505007501,0001,250mstenant Atenant BR1200 inR260 inR11900 inR12900 inR3800 inR13900 inR14900 inR15900 inR4120 inR16900 inR5400 inR680 inR71,000 inR8150 inR9300 inR10100 inA solid, B fadedrequestsA6B10prompt tokensA710B7,900requests of two tenantsprompt tokens: A 710, B 7,900
Toy: the 29.C2 trace on one toy GPU, 8 slots, a 4,096-token KV pool
STAGE 1 / 5
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Pt=∑r∈tpr\sy{p}{data}{P_t} = \sum_{r \in t} \sy{p}{data}{p_r}
PA=710,  PB=7,900P_A = 710,\; P_B = 7{,}900

A tenant's prompt tokens add the prompts of its requests.

Common mix-ups

MYTHA memory quota isolates the tenants completely.

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

Predict, then reveal
3 CHECKS · PRO
Q01With no isolation, does A's mean TTFT drop without B's burst?

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