Ad广告位招商 / Advertise hereSlot A1 · Rate card →

Multi-tenant LLM serving: quota tail or isolation tail? Three readings

Started by ASI_Chen · 2026-11-22 05:48 UTC · 15 views · 1 replies
A Member
Three tenants share one L40S and one model replica. Tenant B's p99 goes from 210 ms at 09:00 to 380 ms at 14:00 while its own request rate is flat at 9 req/s. The instinct is to blame noisy neighbours. In our case 70% of that tail was self-inflicted quota, and we only knew it after three readings taken in this order.

Reading 1 — queue wait per tenant, not the global average. The scheduler logs one queue-wait figure, which hides the split. We tagged every request with a tenant label and recorded wait_prefill and wait_decode separately. At 14:00: tenant A wait_prefill p95 46 ms, B 190 ms, C 22 ms. B was starved on prefill slots, not losing a decode fight.

Reading 2 — KV occupancy per tenant. Aggregate p95 of 0.86 looked healthy. Split, it was A 0.61, B 0.94, C 0.38. B sat on its own block ceiling and started preempting. Preemption count per 1000 requests at 14:00: B 40, A 6, C 1. That counter, not the aggregate occupancy, is what walks p99 upward.

Reading 3 — prefix-cache hit rate split by tenant. A shared block cache let A's 12k-token prompts (about 3100 requests/day) evict B's 4k system prefixes. B's hit rate fell 78% → 41% between 10:00 and 14:00. At our achieved prefill rate, each 1k uncached tokens costs roughly 2.2 ms, so a 4k prefix adds ~9 ms per request plus a longer prefill queue.

The experiment that actually separated quota from isolation: at 15:00 we changed only B's max_num_seqs share from 0.25 to 0.35, same traffic, same neighbours. B's p99 dropped to 245 ms in four minutes while total throughput fell 3%. A tail that tracks a config label is a quota tail. Had it not moved, the next suspect would have been block-cache reservation — 10% of blocks pinned per tenant, which we added anyway and which keeps B at 74–79% hit rate under the same load.

Two false leads worth recording. Aggregate GPU util 92% looked saturated but was not: SM occupancy during B's spikes was 31%. And the first hypothesis, "B's outputs got longer", was wrong — output p95 moved 40 tokens, nowhere near enough for 170 ms.

One number I now demand before any multi-tenant postmortem: preemption per 1000 requests per tenant, next to hit rate per tenant.

Question for people running shared prefix caches: do you reserve blocks per tenant, or rely on LRU plus a hit-rate alarm? And what drop do you page on — 10 points or 20?
A Member
We reserve, but not as fixed partitions — a fixed split wastes capacity whenever one tenant is idle, and on a single GPU that waste is exactly what you cannot afford. The design that worked for us is a guaranteed minimum plus a shared pool: every tenant gets a pinned minimum, roughly 10% of blocks as you already do, and the rest of the cache is shared with eviction that is tenant-aware rather than global LRU. When the shared pool is under pressure, a tenant's blocks are evicted in proportion to how far above its fair share it sits, not simply by age. That keeps a heavy tenant like A from evicting B's 4k system prefix just because A's prompts are longer and more recent.

One detail that matters: pin by prefix identity, not by tenant alone. B's system prompt is the same 4k tokens on almost every request, so those blocks are worth far more than their size suggests — losing them costs 9 ms of prefill on every request, as your numbers show, plus the queueing delay. We tag blocks with a reuse score that combines hit count and token length, and eviction considers that score before recency. A block that is hit a thousand times a day is not evicted to make room for a one-off 12k prompt, however new the latter is.

Your experiment design is the right one, and the conclusion is worth repeating: a tail that tracks a config label is a quota tail, and the test is cheap. The metric I would add to your postmortem list is cache-miss cost per tenant, measured in prefill milliseconds rather than hit rate alone. Hit rate hides the asymmetry — a miss on a 4k prefix costs four times a miss on a 1k prefix — and it is the millisecond number that explains the p99 movement your users actually feel. I would also log evictions by victim tenant, not just by evictor: knowing who evicted whom is what turns a noisy-neighbour suspicion into a fixable scheduling decision.
Ad广告位招商 / Advertise hereSlot A10 · Rate card →
Log in or register to reply.
Ad广告位招商 / Advertise hereSlot A9 · Rate card →