Skip to content
Peter Styk HPC & AI Platform Engineer

Reports · Qwen3.8-27B on one AMD Instinct MI300X · Overload

Overload costs time, never a request

Requests arrive at 2, 4, 6, 8, then 12 a second, whether the server keeps up or not. It keeps up to 4, falls behind at 6, fills its cache at 8 and holds a line at 12. Every one of the 1,399 gets its answer, and the backlog is gone 81 seconds after arrivals stop.

Test
Overload
Run
20261125T201346Z-series

Also as a one-minute video and a PDF of 6 pages.

01Overview

I sent one server requests on a timer instead of on its answers: 2 a second, then 4, 6, 8 and 12, for 45 seconds each, every prompt 1,024 tokens and every answer 256. It kept up to 4 a second, fell behind at 6, filled its cache at 8 and held a line at 12. It refused nobody. When arrivals stopped, 813 requests were open; 81 seconds later every one of the 1,399 had its answer.

  • 1,399 of 1,399 requests ended well: none refused, none failed, none cut
  • 81 s to empty a backlog of 813 open requests once arrivals stopped
  • 36.4 s median wait for a first token at 12 arrivals a second; 0.31 s at 4
  • 11.1 times as long for a whole answer at 12 a second as at 2, on average
sentfirst token receivedanswer ended2 a second4 a second6 a second8 a second12 a secondno arrivals05001,000requests0306090120150180210240270300seconds since the plan started813 open
Figure 1Running totals over the plan: requests sent (grey), requests that had their first token (blue), requests whose answer had ended (green). The height between grey and green is the number of requests open at that moment; the distance to the right, from grey to green, is how long the requests sent then took. All three lines end at 1,399. Shaded bands are the stages, labelled with the arrivals asked for.Source: plan-overload-open/requests.jsonl (t_sent, t_first, t_end of every request); stage times from client.jsonl

2 a second keeps up: 23 open at most, first token after 0.19 s

4 a second keeps up: 91 open at most, first token after 0.31 s

6 a second falls behind: open requests climb to 223 and do not level

8 a second the cache fills: 470 streams running, 99.8% in use

12 a second a line forms: 329 waiting, first token after 36.4 s

In this plan nothing was refused and nothing failed. All 1,399 requests got HTTP 200 and their full 256 tokens. The load generator cut none: it allowed 240 s for the line to empty, and 81 were enough.

The price was time, in two places. From 6 arrivals a second the answers themselves slow down: green falls away from blue. Only at 12 does a line form in front of the first token: blue falls away from grey.

02How it was run

The machine, and who sets the pace

AMD Instinct MI300XQwen3.8-27B · vLLM 0.27.1streamsat most 470 at oncethis testengine stepprefilldecodeattentioncache1,826,476 token slotsthis testcompute unitsclientson a timerCPU · 20 cores
Figure 2The card as every document in this series draws it: seven parts wired left to right, the clients outside, the host CPU below. In this test the clients set the pace, not the server. Lit: where requests arrive, where they run, and where their state is kept.Source: FACTS.json; plans/overload-open.json; summary.json server.kv_cache_tokens, plans.plan-overload-open.stages[].running_max

An open loop

clientsa new requeston a timer,answered or notthe linerequests theserver cannotschedule yetengine stepone token forevery runningstream, and abite of the newpromptscachea slice perrunning stream,held until itsanswer endsanswer256 tokens,streamed back
Figure 3An open loop: a new request is sent on a timer, whether or not the earlier ones have been answered. What the server cannot schedule yet waits in its own line, and that line has no limit.Source: loadgen.py (rate stages); plans/overload-open.json
  1. The plan plays five stages back to back, 45 seconds each: 2, 4, 6, 8 and 12 new requests a second. Then no arrivals, until every open request has ended.
  2. The gaps between requests are random around the stage's rate, so a stage sends about its rate, not exactly: 532 requests at 12 a second, where 540 is the mean.
  3. Every prompt is 1,024 random token ids, so no two prompts share a prefix; every answer is forced to 256 tokens.
  4. Beside it a sampler reads the server's counters, the card and the CPU once a second.

Closed loop (the staircase)

A fixed number of requests is kept open; a new one starts only when one ends. The server sets the pace and is never sent more than it finishes.

Open loop (this test)

Arrivals keep their own pace. If the server is slower, open requests pile up: first as running streams, then as a line.

Settings

Model Qwen3.8-27B: 27.8 billion parameters, BF16 weights, 262,144 tokens of context
Card one AMD Instinct MI300X: 304 compute units, 191.7 GiB of memory
Server vLLM 0.27.1+rocm723, ROCm 7.2.3, PyTorch 2.11.0+gitd0c8b1f
Machine a cloud GPU virtual machine: 20 virtual cores, Intel Xeon Platinum 8568Y+
This run 20261125T201346Z-series, started 2026-11-25T20:13:59Z, server ready after 94 s

The load is made on the same machine as the server and shares its CPU cores. The generator runs inside the server's container and talks to it on the loopback address: no request leaves the machine.

New requests a secondsent, each secondsent, 7-second centred meanasked for2 a second4 a second6 a second8 a second12 a secondno arrivals010200306090120150180210240270300seconds since the plan started
Figure 4What was asked for and what was sent. The gaps are random, so each second differs (thin grey); the 7-second centred mean follows the steps of the plan.Source: plan-overload-open/timeline.json (target, sent)

03Stage by stage

It keeps up to 4 a second, then requests pile up

Requests on the serverrunning and waiting togetherrunningwaiting in line2 a second4 a second6 a second8 a second12 a secondno arrivals0500Cache in use, %050100Seconds to the first token, by the second the request was sentlongestmedian025500306090120150180210240270300seconds since the plan started
Figure 5The plan second by second. Top: requests running on the server, waiting in its line, and the two together. Middle: the cache. Bottom: how long the requests sent in each second then waited for a first token, median and longest.Source: plan-overload-open/timeline.json (vLLM's gauges, and requests.jsonl by the second sent)

At 4 a second the running streams peaked at 90 and were back at 65 when the stage ended. At 6 they climbed from 62 to 221 and never levelled: the server had fallen behind, with nothing waiting yet and the cache at most 46.5% full.

At 8 the cache filled: its gauge reached 99.8% with 470 streams running, and went no higher. From there a request is let in only when another ends, and the server's reason for every waiting request is "capacity". At 12 the line grew through the whole stage, to 337 waiting in its last second.

The exact record: the line

arrivals asked forsentendedopen at mostrunning at mostwaiting at mostcache at most, %first token, median s99th percentile sin line, server's timer, s
2 a second8567232304.90.190.350.0
4 a second1861399190019.10.310.730.0
6 a second265107223219046.50.641.420.0
8 a second331634834701499.81.609.250.0
12 a second53221081347032999.836.3863.140.0
no arrivals081381347033699.8--23.6

The exact record: the engine

arrivals asked forprompt tokens/sanswer tokens/sbothengine steps/stokens per stepms per steprunning, meananswer tokens/s per running streamTFLOPS, est.
2 a second1,9534362,38933.5871301333.31109
4 a second4,3099305,23915.65335646115.19239
6 a second5,9069186,8246.671,0221501466.31311
8 a second7,1667517,9182.163,6624633472.17360
12 a second4,5481,7886,3363.811,6612624693.81291
no arrivals4,3901,7456,1355.621,0911784234.12282

One row per stage, from summary.json. Ended: requests whose answer ended in the stage, whenever they were sent. First-token times are for requests sent in it; the server's timer is vLLM's own queue time, averaged over the requests that ended in it. "Both", "ms per step" and "per running stream" are computed; TFLOPS is vLLM's estimate. A row spans 44 s of a 45 s stage, so its last second is missing: the row for 12 a second has 329 waiting at most, the per-second record 337. "Open" is the generator's count; it differs from the server's running plus waiting by up to 51 for a second or two, while requests are on their way in or out.

04Why it falls behind

The server keeps reading new prompts, and pays for it in answers

Prompt tokens read a second (prefill)2 a second4 a second6 a second8 a second12 a secondno arrivals05,00010KAnswer tokens written a second (decode)02,0004,000Engine steps a second020400306090120150180210240270300seconds since the plan started
Figure 6What the engine did, second by second: each second thin and grey, a 7-second centred mean in colour. Prompt tokens read climb with the arrivals; answer tokens written do not, until the line forms at 12 a second. Steps become fewer.Source: plan-overload-open/timeline.json (vLLM's token and step counters)
arrivingread by the server05,00010Kprompt tokens a second1.9K2.0K24.2K4.3K46.0K5.9K67.5K7.2K812.1K4.5K12arrivals a second asked for
Figure 7Prompts: tokens arriving a second and tokens the server read, by stage. It reads them as they come, up to 8 a second.Source: summary.json stages[].sent, server_prompt_tok_s; arriving = sent x prompt length / stage seconds, computed
owed to the arrivalswritten by the server01,0002,0003,000answer tokens a second48443621,05893041,50891861,88375183,0261,78812arrivals a second asked for
Figure 8Answers: tokens owed to the requests that arrived and tokens the server wrote. The shortfall is here.Source: summary.json stages[].sent, server_output_tok_s; owed = sent x answer length / stage seconds, computed

Every stream gets one token per engine step, and the record on the page before shows it: answer tokens a second per running stream equal the engine's steps a second (33.3 and 33.6 at 2 a second, 2.17 and 2.16 at 8). So an answer of 256 tokens needs 256 steps, and at 2.16 steps a second that is 119 s.

The steps get long because they carry the new prompts: 71 tokens a step at 2 a second, 3,662 at 8. Eight arrivals bring 8,192 prompt tokens a second on average, which is what one step may hold (8,192 tokens, the server's default).

The line is what saves the answers. Once the cache is full the server cannot let every arrival in, so less of each step goes to new prompts (4,548 prompt tokens a second at 12 against 7,166 at 8), steps come faster (3.81 a second) and output more than doubles, from 751 to 1,788 answer tokens a second. The numbers are measured; that one causes the other is my reading.

The line forms when the cache is full, and it is full at 470 streams: 1,826,476 token slots / 470 = 3,886 slots for each running stream, 2,606 more than the 1,280 tokens a stream can hold. On the same server the staircase's shorter streams took 3,106 each. My reading: a stream keeps a fixed amount of state besides its tokens. Arithmetic on the cache size, not read from vLLM's source.

05What a client saw

Later and slower, never refused

0200400246812aftersent at 2sent at 4sent at 6sent at 8sent at 12ended while arrivals wererequests
Figure 9Requests by the stage in which they were sent (back to front) and the stage in which their answer ended (left to right). A view only: the exact values are in the matrix beside it.Source: plan-overload-open/requests.jsonl (stage, t_end); stage times from client.jsonl
ended while arrivals were246812aftersent at 267180000sent at 4012165000sent at 60042631600sent at 8000050281sent at 1200000532darker = more: requests
Figure 10The same values, exactly. "After" is the time with no arrivals.Source: plan-overload-open/requests.jsonl; client.jsonl

Read along a row. Requests sent at 2 and at 4 a second mostly ended in their own stage. Of those sent at 6, most ended two stages later. Not one request sent at 8 or at 12 a second ended in the stage it was sent in. The column sums are the "ended" column of the record.

sending to first tokenfirst token to the end02550752 a second8.5 s4 a second19.3 s6 a second66.2 s8 a second85.5 s12 a second94.9 sseconds from sending a request, mean of the stage
Figure 11Where a request's time went, by the stage in which it was sent. Until the line forms, almost all of it is the answer being written slowly.Source: plan-overload-open/requests.jsonl (t_sent, t_first, t_end), means per stage

A whole answer took 8.5 s on average for requests sent at 2 a second and 94.9 s for those sent at 12. No request took longer than 104.5 s.

The first token came after 0.19 s at the median at 2 a second, 1.6 s at 8 and 36.4 s at 12, when 362 requests waited more than half a minute for it.

The exact record, by the stage in which a request was sent

sent atrequestsfirst token: median slongest smean sfirst token to the end: mean swhole answer: mean slongest slongest silence in an answer, s
2 a second850.190.350.218.38.513.70.36
4 a second1860.310.790.3619.019.330.51.49
6 a second2650.641.560.6665.566.283.74.14
8 a second3311.609.691.9683.685.594.85.61
12 a second53236.3864.5536.4558.594.9104.55.66

First-token times and the longest silence are from summary.json; the means are computed from requests.jsonl. A silence is the longest gap between two pieces of text inside one answer, the largest among the stage's requests.

06Underneath, and what it means

What the card was doing

Compute, TFLOPS (vLLM's estimate, 7-second centred mean)2 a second4 a second6 a second8 a second12 a secondno arrivals0200400Matrix units in use, % (AMD's exporter)0501000306090120150180210240270300seconds since the plan started
Figure 12Underneath the same plan. Compute is vLLM's estimate from the model's shape, not a hardware counter. Matrix units in use is a reading of AMD's device exporter, which refreshes every 11 to 16 s. The card drew 747 to 751 W as stage means, and the engine process used 2.0 of the 20 CPU cores throughout: two flat lines, not drawn.Source: plan-overload-open/timeline.json; summary.json stages[].watts, engine_cores

What I take from it

  • All 1,399 requests of this plan ended well, with arrivals up to 12 a second. None was refused, none failed, none was cut.
  • The backlog of 813 open requests was gone 81 s after arrivals stopped.
  • The most the server handled in a stage was 7,918 prompt and answer tokens a second, at 8 a second. The arrivals at 6 a second already brought 7,538.
  • vLLM's estimate of the compute is highest, 360 TFLOPS or 27.6% of AMD's stated peak, in the stage with the least output: the card was busy reading prompts.
  • An overloaded server makes its clients wait; it does not turn them away. The line shields the streams that are already running.

Limits

  • One plan, played once, with one seed for the random gaps. Each stage starts where the last one left off, so a stage is not a steady state: at 6 a second the server was still falling behind when the stage ended.
  • Prompts are random tokens: nothing repeats, and answers are not readable text.
  • No other finished run has played this plan, so nothing here is compared with another server.
  • The CPU was 10.6 to 11.2% busy in every stage, of 20 cores.

I found no setting in this vLLM's help text for a longest line, for refusing work under overload, or for a request timeout.

measured: read from a run file · computed: arithmetic on measured values · estimate: vLLM's, from the model's shape · my reading: interpretation, not measurement

Words used

Open loop
requests arrive at a fixed rate whether or not the server keeps up. The line can grow.
Engine step
one pass of the model over a batch: one new token for every decoding stream, plus a bite of prefill.
Prefill
the server reading the prompt. Every prompt token passes through the model once before the first answer token.
Decode
the server writing the answer, one token per stream per engine step.
Cache
(KV cache) the GPU memory where the server keeps what the model computed for every token of every open stream, so it need not be recomputed.
Capacity
(waiting reason) the server's label for a request it cannot schedule now, because the cache or the step's token budget is used up. Reported in vllm:num_requests_waiting_by_reason.

Every number in this document was read from these files at build time (sha256, first 12 characters):

FACTS.json 160f5ca0d495 · GLOSSARY.md 98323be796af · plans/overload-open.json 204fa20d344e · runs/20261125T201346Z-series/plan-overload-open/client.jsonl c20eca48ac28 · runs/20261125T201346Z-series/plan-overload-open/requests.jsonl 33e1c43237ae · runs/20261125T201346Z-series/plan-overload-open/timeline.json 3709ccddee19 · runs/20261125T201346Z-series/summary.json aab3940eb12e

107 values bound by path, 12 figures drawn from data.

Supporting material · video

The same result in a minute

The whole series

Supporting material · PDF

The report as a document

6 pages · A4 · 373 KB · every number traced to its run file

Download the PDF