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?
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?