Skip to content
Peter Styk HPC & AI Platform Engineer

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

Never idle: one stream is a memory load, 256 streams an arithmetic load

The baseline again, with three instruments on. One stream runs the card's memory at about half of its stated ceiling and its arithmetic at about 1% of the stated peak; 256 streams turn that around. The CPU stays at two cores of twenty and almost nothing crosses the network.

Test
Underlay probe
Run
20261125T192827Z-probe

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

01Overview

I ran the baseline's load again at 1, 32 and 256 streams with three instruments switched on: vLLM's own estimates of the work, AMD's device exporter on the card, and a profiler on the GPU kernels. With one stream, memory traffic runs at 48.9% of the card's stated ceiling and arithmetic at 0.9% of its stated peak. With 256 streams it is the other way round: 14.5% for memory, 23.2% for arithmetic. Those are vLLM's estimates; the card's own counters and the profiler tell the same story. The card is busy all the time at every level, and the CPU never is.

  • 48.9% of the stated memory ceiling: one stream's traffic vLLM's estimate, of AMD's stated 5.3 TB a second
  • 23.2% of the stated arithmetic peak: 256 streams' work vLLM's estimate, of AMD's stated 1.3 PFLOPS
  • 100% of the time the card is busy, at 1, 32 and 256 streams AMD's exporter; the profiler agrees
  • 2.0 of 20 CPU cores used by the engine, at every level the machine is 10.9% busy
bytes readarithmetic operations0204060% of AMD's stated peak132256streams kept in flight (log scale)23.214.548.930.20.913.1
Figure 1vLLM's estimates, as shares of AMD's stated peaks: 5.3 TB a second of memory traffic, 1.3 PFLOPS of arithmetic. Bytes read fall as streams are added; operations rise.Source: summary.json sweeps.random-1k-256.levels[].est_read_share_of_peak, est_flops_share_of_peak
memory activitymatrix units in use0204060%, as AMD's exporter reports it132256streams kept in flight (log scale)30.822.855.546.92.428.7
Figure 2The card's own counters tell the same story: memory activity falls, the matrix-multiply units get busy. Means of the exporter's readings while each level ran; single readings swing widely.Source: summary.json levels[].underneath.memory_activity_percent, matrix_unit_use_percent (AMD's device exporter)

The instruments cost little. Answer tokens a second with them, against the baseline run without: 55.3 against 56.2 for one stream (1.6% less), 745.9 against 782.7 for 32 (4.7%), 1,324.6 against 1,327.3 for 256 (0.2%). Same settings, same load, same requests per level; each level played once in each run.

Outside the card little happens. The machine's CPU is 10.5% to 10.9% busy, and the outside network carried at most 3,817 bytes one way during a level.

My reading: one stream is bound by memory traffic, and many streams are bound by the kernels themselves. For one token the server reads the whole model and does very little arithmetic with it; with hundreds of streams the same reading serves them all, and what is left to wait for is the arithmetic. The pages that follow give the grounds, and a test of the reading.

02How it was run

The machine, and what this test looks at

AMD Instinct MI300XQwen3.8-27B · vLLM 0.27.1streamsengine stepprefilldecodeattentioncachecompute units304, 100% busythis testclients1, 32, 256CPU · 20 coresthe engine uses 2.0 of them
Figure 3The card as every document in this series draws it. This test changes nothing in the server: it looks underneath, at the compute units, the memory beside them, and the CPU.Source: FACTS.json; summary.json sweeps.random-1k-256.levels[streams=256].underneath

Three instruments and a sampler

load tool, on the CPUvLLM's own: it keeps N requestsin flightengine stepone token for every runningstream, plus a bite of promptsGPU kernelsmultiplying by the weights,attention, the restthe card304 compute units and its memorysamplerCPU time per process, bytes pernetwork interface, every 2 svLLM's estimatesoperations and bytes for eachstep, computed from the model'sshapePyTorch profilerevery kernel timed, for 30engine steps of two short loadsAMD's device exporterthe card's own counters,refreshed about every 12 s
Figure 4Top row: where the work happens, left to right. Bottom row: what watches it. An arrow from an instrument points at the part it reads.Source: config.conf in summary.json (the server's switches), collect.py (the sampler), random-1k-256/samples.jsonl
  1. The server starts with the baseline's settings plus switches that only add counters. The profiler is made available, not recording.
  2. vLLM's own load tool keeps 1, then 32, then 256 requests in flight: 1,024 random tokens in, exactly 256 out, 4 requests per stream (at least 8), after 2 warm-up requests.
  3. Beside it a sampler reads AMD's exporter, each vLLM process's CPU time, every network interface and the server's gauges every 2 s.
  4. Then two short loads with the profiler recording 30 engine steps each: one stream, and 256.
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 20261125T192827Z-probe, started 2026-11-25T19:28:40Z, server ready after 142 s

vLLM's estimates

Computed for every engine step from the model's shape: so many operations, so many bytes. Never read from the hardware.

AMD's device exporter

Read from the card. Its values are replaced every 11 to 16 s and cover one "reading" of unknown length: I compare levels, never read rates.

PyTorch profiler

Every kernel call timed on the GPU's own clock, for thirty engine steps: a sample, not the level.

load streams requests failed it took prompt tokens answer tokens what it is for
level 1 8 0 37.0 s 8,192 2,048 the record
level 32 128 0 43.9 s 131,072 32,768 the record
level 256 1,024 0 197.9 s 1,048,576 262,144 the record
profiled 1 8 0 39.2 s 8,192 2,048 kernel times only
profiled 256 256 0 61.0 s 262,144 65,536 kernel times only

The load is made on the same machine as the server and shares its CPU cores; no request leaves it. Prompts are random tokens: nothing repeats, and the answers are not readable text.

03The record

The whole sweep, sample by sample

Requests at the serverrunningwaiting1 stream32 streams256 streams0100200Matrix units in use, % (AMD's exporter)050100Memory activity, % (AMD's exporter)050100Card power, watts (AMD's exporter)0500CPU cores used by the engine, of 20 (mean of the last 6 s)0240306090120150180210240270300330seconds since the sweep started
Figure 5The sweep on the sampler's clock, one sample every 2 s. Each band is one run of the load tool: its start-up, two warm-up requests, then the level. The exporter's values are drawn as it holds them, 11 to 16 s at a time: at 32 and 256 streams the matrix units swing from reading to reading while the card stays at full power. The engine's CPU cores do not move with the load.Source: random-1k-256/samples.jsonl; level marks from c1.t0 to c256.t1

The exact record

streams132256
The load tool and the server's timers (measured)
answer tokens a second55.3745.91,324.6
the same, per stream55.323.35.2
with the prompt tokens276.73,729.36,622.9
first token after, mean, s0.142.546.23
ms per answer token17.5933.04168.97
in line, s per request0.000.413.28
reading the prompt, s0.371.632.00
writing the answer, s4.488.3743.02
vLLM's estimates, from the model's shape
arithmetic, TFLOPS12.7170.6302.8
of AMD's stated peak0.9%13.1%23.2%
bytes read, TB a second2.591.600.77
of AMD's stated peak48.9%30.2%14.5%
bytes written, GB a second2.635.062.2
streams132256
AMD's device exporter, means over the level
card busy100.0%100.0%100.0%
matrix units in use2.4%28.7%30.8%
vector units active7.3%21.8%27.4%
memory activity55.5%46.9%22.8%
occupancy19.3%17.3%24.4%
power, watts715751749
16-bit operations, billions *13.0160.0271.7
GB fetched from memory *3.241.931.54
GB written to memory *0.0110.1850.357
The sampler: CPU and network across the level
machine CPU busy10.5%10.7%10.9%
CPU cores: the engine2.011.992.01
CPU cores: the front end0.020.040.07
CPU cores: the load tool0.000.020.03
outside network, bytes in3741,1663,300
outside network, bytes out3963,8172,686

One column per level, from summary.json. * The exporter's operation and byte counts cover one reading of unknown length: compare the columns, do not read them as rates. Its "occupancy per active compute unit" read 1,323, 7.6 and 449, with no pattern, and is left out. The loopback and bridge interfaces of the machine counted 2.9 to 15.5 MB per level: those are the sampler's own reads, not the load.

04Why they swap

vLLM's estimate, taken apart: the model is read once per engine step

bytes readtokens handled1×10×100×one engine step, against a step at 1 stream (log scale)132256streams kept in flight (log scale)198.6 times2.4 times
Figure 6One engine step at 32 and at 256 streams, against a step at one stream. It carries hundreds of times the tokens and reads only a little more.Source: the server's counters before and after each level (random-1k-256/c1, c32, c256 .before.prom, .after.prom)
server's counters, by streams132256
engine steps counted2,5601,2921,322
tokens handled12,800166,4001,313,280
tokens per engine step5.0128.8993.4
GB read per engine step46.955.3115.8
GB read per token9.370.430.12
billion operations per token45.745.745.7

Two numbers reproduce vLLM's bytes read at all three levels: 46.5 GB for every engine step, whatever it carries, and 0.07 GB for every token in it (fitted on the 1- and 256-stream levels; the 32-stream level comes out 0.3% away). 46.5 GB is 84.7% of the weights the server loaded (51.1 GiB, which is 54.9 GB): the estimate reads the model's weights once per step. Its operations are simply so many per token.

Inside the 256-stream level: reading, then writing

Answer tokens received in each second, all 256 streams (the load tool's record)promptsanswerspromptsanswerspromptsanswerspromptsanswers02,000Memory activity, % (AMD's exporter; it trails by up to one refresh)02550Matrix units in use, % (AMD's exporter)050100020406080100120140160180seconds since the level's first request
Figure 7The 256-stream level second by second. Shaded: the engine is taking in prompts. Clear: it writes answers only. Memory activity reads high while answers are written and low while prompts are read; the matrix units mostly read higher in the prompt stretches, and swing. The two clocks are aligned to about a second; the exporter trails by up to one refresh.Source: random-1k-256/c256.json (each request's first token and every gap after it); random-1k-256/samples.jsonl
the 256-stream levelstretchessecondsof the levelanswer tokens in a typical secondfirst tokens in a typical secondof all answer tokens
reading prompts412864.6%239811.7%
writing answers47035.3%3,328088.2%

The level is two loads taking turns. For 64.6% of its 198 seconds there is one engine step a second with 8 new prompts in it: 8,192 tokens, the step's limit. Every stream already answering gets one token from that step, about 239 answer tokens a second in all. In the other stretches the steps carry answers only: 3,328 answer tokens a second, 13 for each of the 256 streams. The level's mean of 1,324.6 is the blend.

The summary's bytes read at 32 and 256 streams are a little high. Its counters also hold each level's two warm-up requests, which run before it in about 256 small steps, and it scales them by tokens: right for operations, not for bytes, which go mostly by the step. Without the warm-up steps I get 1.35 TB a second (25.5% of the stated peak) at 32 streams, not 1.60, and 0.71 TB a second (13.4% of the stated peak) at 256 streams, not 0.77. One stream is not affected; the direction is the same.

05The profiler

Where the GPU's time goes

One stream

matrix times few vectors64.0 %full attention15.6 %compiled elementwise work12.1 %linear-attention layers4.0 %other kernels3.5 %memory copies and sets0.6 %
Figure 8Share of GPU kernel time, 30 engine steps with one stream: nearly two thirds goes to multiplying the weights by the few vectors of one token.Source: torch-profile/breakdown.txt, first trace (from the profiler's trace file)

256 streams

matrix multiply, batched65.6 %linear-attention layers18.6 %full attention8.1 %compiled elementwise work4.7 %other kernels2.7 %memory copies and sets0.3 %
Figure 9The same with 256 streams: two thirds again goes to the weights, now as batched matrix multiplies, and the linear-attention layers take almost a fifth.Source: torch-profile/breakdown.txt, second trace

In both traces GPU kernels fill 100% of the traced span: 0.548 s of kernels in 0.549 s with one stream (28,920 kernel calls), 6.085 s in 6.086 s with 256 (33,005 calls). The card does not wait between kernels, for the CPU or for anything else.

PyTorch's profiler counts the operations of the matrix multiplies from the shapes of the matrices. At 256 streams: 1,721 trillion operations in 3.106 s of GPU time over 1,550 calls, which is 554 TFLOPS while they run, 42.6% of AMD's stated peak. They take 51.0% of the traced GPU time.

1 stream, the whole level (vLLM's estimate)12.7 of 1,300 TFLOPS256 streams, the whole level (vLLM's estimate)302.8 of 1,300 TFLOPS256 streams, its matrix multiplies alone (profiler)554.2 of 1,300 TFLOPS
Figure 10Arithmetic against AMD's stated peak for the card. Top two: vLLM's estimate for a whole level. Bottom: the profiler's count for the matrix multiplies alone, over the GPU time they ran. Busy all the time is not the same as at the peak.Source: summary.json levels[].est_tflop_s; torch-profile/profiled-c256.profiler_out_0.txt (the row aten::mm); FACTS.json stated_peaks_used_as_divisors

The exact shares

1 stream: kernel familyshareseconds256 streams: kernel familyshareseconds
matrix times few vectors (wvSplitK_* kernels)64.0%0.351matrix multiply, batched (rocBLAS Tensile kernels, Cijk_*)65.6%3.991
full attention15.6%0.086linear-attention layers (gated delta rule, convolution)18.6%1.133
compiled elementwise work (norms, activations, gating)12.1%0.067full attention8.1%0.494
linear-attention layers (gated delta rule, convolution)4.0%0.022compiled elementwise work (norms, activations, gating)4.7%0.288
other kernels3.5%0.019other kernels2.7%0.162
memory copies and sets0.6%0.003memory copies and sets0.3%0.017
  • Matrix times few vectors: a layer's weights times the handful of vectors one token brings. The whole matrix is read for very little arithmetic.
  • Matrix multiply, batched: the same weights times hundreds or thousands of vectors at once.
  • Full attention: the 16 layers that look back over every token of the context.
  • Linear-attention layers: the other 48 of the 64, which keep a fixed-size state per stream.

The two profiled loads are not throughput results. With the profiler recording they ran slower: 52.3 answer tokens a second at one stream and 1,074.8 at 256 (with 256 requests, not 1,024).

The 256-stream trace happened to hold both kinds of step: answers only, and steps with new prompts in them. The 1-stream table of the profiler was overwritten on the machine; its trace was kept, and the breakdown is from the traces.

06Outside the card, and a test

Outside the card: the CPU and the network are almost idle

engine, 1 stream2.01 of 20 coresengine, 32 streams1.99 of 20 coresengine, 256 streams2.01 of 20 coresfront end, 256 streams0.07 of 20 coresload tool, 256 streams0.03 of 20 cores
Figure 11CPU cores in use by each vLLM process, against the machine's 20. The engine holds the same two cores with one stream as with 256.Source: summary.json levels[].underneath.cpu_cores_in_use (CPU time of each process across the level)

Two cores busy whenever a stream is running, and no more with 256 than with one: that looks like threads that spin while they wait for the card, not like work that grows with the load. In both profiler traces GPU kernels fill the traced span: the card is not waiting for the CPU.

level CPU busy network in, bytes out, bytes
1 stream 10.5% 374 396
32 streams 10.7% 1,166 3,817
256 streams 10.9% 3,300 2,686

A few thousand bytes on the outside network during a whole level: that is the remote session that drives the test, and whatever else the machine does on its own. The load tool reaches the server over the container's own loopback, which this run did not sample; later runs do.

A test of the reading: take compute units away

0255075100answer tokens a second, % of the unmasked card0152228compute units switched off, of 304256 streams 38.632 streams 51.71 stream 82.291.680.167.4
Figure 12The same load with half and with three quarters of the card's compute units switched off, as a share of this run's output. One stream hardly notices; 256 streams lose most.Source: summary.json of this run and of 20261125T194207Z-cu152 and 20261125T194900Z-cu76 (sweeps.random-1k-256.levels[].output_tok_s)

With 152 of 304 compute units left, one stream loses 8.3% and 256 streams lose 32.5%. With 76 left it is 17.7% and 61.3%.

That is what the reading predicts. A load that waits for memory keeps most of its speed when arithmetic is taken away; a load that waits for arithmetic does not. Each of the two masking runs has its own document.

compute units on 1 stream 32 streams 256 streams
304 (this run) 55.3 745.9 1,324.6
152 50.7 597.8 893.8
76 45.5 386.1 512.2

Answer tokens a second. One setting apart: the mask on the server's environment. The masking runs used 2 requests per stream (512 at 256 streams) where this run used 4 (1,024); at one stream all three ran 8.

Not results, and limits

The two profiled loads ran slower with the profiler recording (52.3 and 1,074.8 answer tokens a second). They are here for their kernel times only.

What this does not say: that the card could do four times as much at 256 streams. The shares are of AMD's stated peaks, which nothing here confirms, and vLLM's figures are arithmetic on the model's shape. They say what kind of load it is, not how much is left.

  • One sweep, each level played once. Prompts are random tokens: this is speed and behaviour, nothing about the quality of answers.
  • The exporter's level means are means of a few readings that differ widely.
  • The 256-stream level is two loads taking turns; its means describe the blend.
  • vLLM's bytes read at 32 and 256 streams are a little high in the summary, as the page on the swap explains.
  • The profiler saw thirty engine steps of each load. The 1-stream table was overwritten; its trace was kept.

07What it means

What I take from it

One stream is bound by memory traffic: about half the stated ceiling, and nearly two thirds of GPU time in kernels that read a whole matrix for a few vectors. Many streams are bound by the kernels themselves: the card is always busy, its matrix multiplies run at roughly two fifths of the stated peak by the profiler's count, and about a fifth of the time goes to linear-attention kernels. The CPU is not the limit. If that holds, one stream gains from fewer bytes per token and many streams from faster kernels; more CPU would change nothing.

The grounds, side by side

instrument, and what it reports1 stream256 streams
The memory side
vLLM's estimate: bytes read, of AMD's stated peak48.9%14.5%
AMD's exporter: memory activity55.5%22.8%
profiler: the largest share of GPU kernel timematrix times few vectors, 64.0%matrix multiply, batched, 65.6%
The arithmetic side
vLLM's estimate: arithmetic, of AMD's stated peak0.9%23.2%
AMD's exporter: matrix units in use2.4%30.8%
profiler: its matrix multiplies while they run, of AMD's stated peakno table kept42.6%
Busy, and held up by nothing outside the card
AMD's exporter: card busy100.0%100.0%
profiler: GPU kernels, of the traced span100%100%
sampler: CPU cores used by the engine, of 202.012.01

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

Engine step
one pass of the model over a batch: one new token for every decoding stream, plus a bite of prefill.
Matrix units in use
(amd_gpu_prof_tensor_active_percent, "MFMA utilization") how much of the time the card's matrix-multiply hardware is busy, as AMD's exporter reports it.
Memory activity
(amd_gpu_umc_activity) AMD's exporter value "memory engine usage in percent".
TFLOPS
trillions of arithmetic operations per second. Here always vLLM's estimate from the model's shape (--enable-mfu-metrics), not a hardware counter. It counts attention in all 64 layers where this model has it in 16: 1.7% high for short prompts, over half too high from 128,000 tokens of context.

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

FACTS.json 160f5ca0d495 · GLOSSARY.md 98323be796af · runs/20261125T184034Z-recipe/summary.json f93dd689d428 · runs/20261125T192827Z-probe/random-1k-256/c1.after.prom 04337507a2c2 · runs/20261125T192827Z-probe/random-1k-256/c1.before.prom 9a8e580b65c3 · runs/20261125T192827Z-probe/random-1k-256/c1.t0 e3ff8c964b8e · runs/20261125T192827Z-probe/random-1k-256/c1.t1 3c34cdd192e1 · runs/20261125T192827Z-probe/random-1k-256/c256.after.prom ce6eb11c3507 · runs/20261125T192827Z-probe/random-1k-256/c256.before.prom 845e4233ffa0 · runs/20261125T192827Z-probe/random-1k-256/c256.json 2306cd81b021 · runs/20261125T192827Z-probe/random-1k-256/c256.t0 58d92a41a894 · runs/20261125T192827Z-probe/random-1k-256/c256.t1 ffca5acf21be · runs/20261125T192827Z-probe/random-1k-256/c32.after.prom 845e4233ffa0 · runs/20261125T192827Z-probe/random-1k-256/c32.before.prom 04337507a2c2 · runs/20261125T192827Z-probe/random-1k-256/c32.json e5ea8f77b051 · runs/20261125T192827Z-probe/random-1k-256/c32.t0 f040d3d66eda · runs/20261125T192827Z-probe/random-1k-256/c32.t1 c1a4dfc065d3 · runs/20261125T192827Z-probe/random-1k-256/samples.jsonl 9ef52684e4fc · runs/20261125T192827Z-probe/summary.json 064f25b0020b · runs/20261125T192827Z-probe/torch-profile/breakdown.txt 0a6e4963bcfc · runs/20261125T192827Z-probe/torch-profile/profiled-c1.start ee8e9c04c94f · runs/20261125T192827Z-probe/torch-profile/profiled-c1.stop 4ae3679d2c9c · runs/20261125T192827Z-probe/torch-profile/profiled-c256.profiler_out_0.txt ff1aa0b043ea · runs/20261125T192827Z-probe/torch-profile/profiled-c256.start 77893dc3799d · runs/20261125T192827Z-probe/torch-profile/profiled-c256.stop 60edd0ffa4d3 · runs/20261125T194207Z-cu152/summary.json 1bdedd55da09 · runs/20261125T194900Z-cu76/summary.json 3015428c9534

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

7 pages · A4 · 497 KB · every number traced to its run file

Download the PDF