[GH-ISSUE #5009] [Engine] 0.1.55 16-row window is CPU-bound on 6-P-core hosts (gfx1100) #2314

Closed
opened 2026-11-04 01:58:23 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @ditupao on GitHub (Nov 2, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5009

Area

[Engine] (speed, kernels, models, the server and API)

Desktop app, Terminal or source?

Source (a build from a checkout)

What happened

On a single RX 7900 XTX (gfx1100), the 0.1.55 engine shipped in 0.2.9 is ~20% slower at prompt prefill
than the 0.1.53 engine shipped in 0.2.7.1. Same model, same options, same environment variables, same
CPU pinning. Decode is unchanged.

Engine 32K prefill (t/s) 32K decode (t/s) Window
0.1.53 (0.2.7.1 package) 2,908.2 70.9 8
0.1.55 (0.2.9 package) 2,316.8 70.3 16 (default)
0.1.55 rebuilt with -DSTRATA_WINDOW_MAX_T=8 2,913.9 82.3 8
  • Regression vs 0.1.53: -20.3%
  • Rebuild with 8-row windows: +25.8% over the shipped 0.1.55, back to 0.1.53 parity

Raw runs (32K prefill, t/s): 0.1.53 2908.2 / 2934.1 / 2756.7; 0.1.55 shipped
2362.1 / 2316.8 / 2295.3; 0.1.55 with 8 rows 2962.7 / 2885.3 / 2913.9.

Other engines on the same box: 0.1.45 2,947.5; 0.1.47 2,957.7; 0.1.50 2,977.2; 0.1.53 2,908.2;
0.1.55 (0.2.9) 2,316.8; 0.1.55 rebuilt 8-row 2,913.9. 0.1.45-0.1.50 are flat, so the drop lands
between 0.1.53 and 0.1.55, matching the 0.2.8 note: "The HIP engines now check and batch up to 16 rows
at once instead of 8" and "The 16-row windows are a build option (-DSTRATA_WINDOW_MAX_T=8); there is no
switch at run time."

The 16-row window was added for the four-card R9700 profile and multi-request batching. On one gfx1100
card with a single request it does not raise occupancy and appears to make the prompt path stage work
less efficiently. Decode is unaffected (70.9 -> 70.3), consistent with a prompt/batch-path change.

Smallest steps or command that reproduce it

  1. Start the shipped 0.2.7.1 and 0.2.9 strata-engine-*-linux-x86_64-hip-rx7900 packages with the same
    config and environment (below), pinned to the same cores.
  2. Send a 32,768-token prompt (fixed local corpus), greedy, 512 output tokens, 3 runs, take the median
    of timings.prompt_per_second from the engine's own API response.
  3. Rebuild the 0.2.9 tree with 8-row windows and repeat step 2:
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DSTRATA_ENABLE_HIP=ON \
  -DSTRATA_PREFILL_MMQ=ON -DSTRATA_MMQ_KQUANTS=ON -DSTRATA_WINDOW_MAX_T=8 \
  -DCMAKE_HIP_ARCHITECTURES=gfx1100 -DCMAKE_HIP_COMPILER=$ROCM/llvm/bin/clang++ \
  -DSTRATA_ROCWMMA_INCLUDE_DIR=$ROCM/include -DCMAKE_PREFIX_PATH=$ROCM
cmake --build build -j

The prefill returns to 0.1.53's level (2,913.9).

Reproduction status

Reproduced locally

Strata version

Strata 0.2.9 - engine 0.1.55 (control: Strata 0.2.7.1 - engine 0.1.53)

Graphics card, memory and system

RX 7900 XTX 24 GB (gfx1100, PCIe 4.0 x16) - 128 GB DDR4-2666 - Ubuntu 24.04.5 (kernel 6.17.0-42) -
ROCm 7.2.4 (hipBLASLt 1.2.2) - Intel i5-13500 (6P + 8E; the run is pinned to the 6 P-cores, taskset -c 0-11)

Model, size and settings

Swift-1.5-Qwen3.8-Flash-Next GSQ-RCO IQ3_XXS, native pack swift-iq3_xxs - 256K context
(--max-context 262144 --kv int8 --kv-resident 32768) - MTP draft - pictures on.

Launch: --max-context 262144 --kv int8 --kv-resident 32768 --prefill auto:32768 --spec 4 --spec-min-p 0.70 --mtp <rt> --pcie-frac 0 --expert-cache auto

Environment (the RDNA3 single-GPU set from docs/RDNA3_SETTINGS.md, identical for every engine compared):
STRATA_HIP_WMMA=1 STRATA_SELECT_WMMA=1 STRATA_GR_RDNA=1 STRATA_GR_RDNA_Q8=1 STRATA_RDNA_Q6K=1 STRATA_GR_RDNA_A8=1 STRATA_QFUSE=1 STRATA_COMBINE_CPU=1 STRATA_PF_FUSED=1 STRATA_PREFILL_RING=192 STRATA_PREFILL_CPU_SHARE=auto STRATA_PREFILL_CPU_SHARE_MAX=6144 STRATA_PREFILL_MMQ_TILE_ROWS=32 STRATA_PF_F16=2 STRATA_PF_GEMM=1 STRATA_PF_HCDOWN=1 STRATA_PF_PAD=1 STRATA_GDN_CHUNKED=1 STRATA_GDN_CONVL2=1 STRATA_GDN_HEAD=1 STRATA_GDN_NOY=1 STRATA_GDN_PP=1 STRATA_PA_FAST=1 STRATA_KV_HOST_DMA=1 STRATA_STAGER_RING=64 GPU_MAX_HW_QUEUES=6 STRATA_HIPBLASLT_TUNING=gfx1100-hipblaslt-100200.txt

Logs

Not attached: the logs only show the expert-cache fill and the ready line. Every number above comes
from the engine's timings fields, not from the Monitor.


Suggested fixes: (1) default the window per architecture - keep 16 rows for the multi-card /
multi-request cases, default to 8 on a single gfx1100 card; (2) expose a runtime switch such as
STRATA_WINDOW_MAX_T=8 so the regression can be recovered without a rebuild; (3) if neither, document
the rebuild flag in the 0.2.9 release notes.

Happy to run more configurations (more repeats, 131K/250K prompts, decode-only, or a second
quantization) to confirm.

Originally created by @ditupao on GitHub (Nov 2, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5009 **Area** [Engine] (speed, kernels, models, the server and API) **Desktop app, Terminal or source?** Source (a build from a checkout) **What happened** On a single RX 7900 XTX (gfx1100), the 0.1.55 engine shipped in 0.2.9 is ~20% slower at prompt prefill than the 0.1.53 engine shipped in 0.2.7.1. Same model, same options, same environment variables, same CPU pinning. Decode is unchanged. | Engine | 32K prefill (t/s) | 32K decode (t/s) | Window | |---|---:|---:|---| | 0.1.53 (0.2.7.1 package) | 2,908.2 | 70.9 | 8 | | 0.1.55 (0.2.9 package) | 2,316.8 | 70.3 | 16 (default) | | 0.1.55 rebuilt with -DSTRATA_WINDOW_MAX_T=8 | 2,913.9 | 82.3 | 8 | - Regression vs 0.1.53: -20.3% - Rebuild with 8-row windows: +25.8% over the shipped 0.1.55, back to 0.1.53 parity Raw runs (32K prefill, t/s): 0.1.53 `2908.2 / 2934.1 / 2756.7`; 0.1.55 shipped `2362.1 / 2316.8 / 2295.3`; 0.1.55 with 8 rows `2962.7 / 2885.3 / 2913.9`. Other engines on the same box: 0.1.45 2,947.5; 0.1.47 2,957.7; 0.1.50 2,977.2; 0.1.53 2,908.2; 0.1.55 (0.2.9) 2,316.8; 0.1.55 rebuilt 8-row 2,913.9. 0.1.45-0.1.50 are flat, so the drop lands between 0.1.53 and 0.1.55, matching the 0.2.8 note: "The HIP engines now check and batch up to 16 rows at once instead of 8" and "The 16-row windows are a build option (-DSTRATA_WINDOW_MAX_T=8); there is no switch at run time." The 16-row window was added for the four-card R9700 profile and multi-request batching. On one gfx1100 card with a single request it does not raise occupancy and appears to make the prompt path stage work less efficiently. Decode is unaffected (70.9 -> 70.3), consistent with a prompt/batch-path change. **Smallest steps or command that reproduce it** 1. Start the shipped 0.2.7.1 and 0.2.9 strata-engine-*-linux-x86_64-hip-rx7900 packages with the same config and environment (below), pinned to the same cores. 2. Send a 32,768-token prompt (fixed local corpus), greedy, 512 output tokens, 3 runs, take the median of timings.prompt_per_second from the engine's own API response. 3. Rebuild the 0.2.9 tree with 8-row windows and repeat step 2: ``` cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DSTRATA_ENABLE_HIP=ON \ -DSTRATA_PREFILL_MMQ=ON -DSTRATA_MMQ_KQUANTS=ON -DSTRATA_WINDOW_MAX_T=8 \ -DCMAKE_HIP_ARCHITECTURES=gfx1100 -DCMAKE_HIP_COMPILER=$ROCM/llvm/bin/clang++ \ -DSTRATA_ROCWMMA_INCLUDE_DIR=$ROCM/include -DCMAKE_PREFIX_PATH=$ROCM cmake --build build -j ``` The prefill returns to 0.1.53's level (2,913.9). **Reproduction status** Reproduced locally **Strata version** Strata 0.2.9 - engine 0.1.55 (control: Strata 0.2.7.1 - engine 0.1.53) **Graphics card, memory and system** RX 7900 XTX 24 GB (gfx1100, PCIe 4.0 x16) - 128 GB DDR4-2666 - Ubuntu 24.04.5 (kernel 6.17.0-42) - ROCm 7.2.4 (hipBLASLt 1.2.2) - Intel i5-13500 (6P + 8E; the run is pinned to the 6 P-cores, taskset -c 0-11) **Model, size and settings** Swift-1.5-Qwen3.8-Flash-Next GSQ-RCO IQ3_XXS, native pack swift-iq3_xxs - 256K context (--max-context 262144 --kv int8 --kv-resident 32768) - MTP draft - pictures on. Launch: `--max-context 262144 --kv int8 --kv-resident 32768 --prefill auto:32768 --spec 4 --spec-min-p 0.70 --mtp <rt> --pcie-frac 0 --expert-cache auto` Environment (the RDNA3 single-GPU set from docs/RDNA3_SETTINGS.md, identical for every engine compared): `STRATA_HIP_WMMA=1 STRATA_SELECT_WMMA=1 STRATA_GR_RDNA=1 STRATA_GR_RDNA_Q8=1 STRATA_RDNA_Q6K=1 STRATA_GR_RDNA_A8=1 STRATA_QFUSE=1 STRATA_COMBINE_CPU=1 STRATA_PF_FUSED=1 STRATA_PREFILL_RING=192 STRATA_PREFILL_CPU_SHARE=auto STRATA_PREFILL_CPU_SHARE_MAX=6144 STRATA_PREFILL_MMQ_TILE_ROWS=32 STRATA_PF_F16=2 STRATA_PF_GEMM=1 STRATA_PF_HCDOWN=1 STRATA_PF_PAD=1 STRATA_GDN_CHUNKED=1 STRATA_GDN_CONVL2=1 STRATA_GDN_HEAD=1 STRATA_GDN_NOY=1 STRATA_GDN_PP=1 STRATA_PA_FAST=1 STRATA_KV_HOST_DMA=1 STRATA_STAGER_RING=64 GPU_MAX_HW_QUEUES=6 STRATA_HIPBLASLT_TUNING=gfx1100-hipblaslt-100200.txt` **Logs** Not attached: the logs only show the expert-cache fill and the ready line. Every number above comes from the engine's timings fields, not from the Monitor. --- Suggested fixes: (1) default the window per architecture - keep 16 rows for the multi-card / multi-request cases, default to 8 on a single gfx1100 card; (2) expose a runtime switch such as STRATA_WINDOW_MAX_T=8 so the regression can be recovered without a rebuild; (3) if neither, document the rebuild flag in the 0.2.9 release notes. Happy to run more configurations (more repeats, 131K/250K prompts, decode-only, or a second quantization) to confirm.
Author
Owner

@github-actions[bot] commented on GitHub (Nov 2, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Fill in "Desktop app, Terminal or source?".

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6581965717 --> @github-actions[bot] commented on GitHub (Nov 2, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Fill in "Desktop app, Terminal or source?". Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@ditupao commented on GitHub (Nov 3, 2026):

Follow-up: the regression disappeared after a CPU upgrade

I changed the host CPU (i5-13500 → i7-14700K) and re-ran the same test. The GPU (RX 7900 XTX), ROCm 7.2.4, the IQ3_S model and pack, the launch options and the RDNA3 environment are all unchanged — only the CPU differs.

32K prompt, greedy, presence_penalty 0, 2 runs, median:

Host CPU 0.1.55 shipped (16-row) 0.1.55 rebuilt -DSTRATA_WINDOW_MAX_T=8
i5-13500 (6 P-cores) 2,317 t/s 2,914 t/s (−20%)
i7-14700K (8 P-cores) 3,198 t/s 3,216 t/s (−0.6%)

On the old 6-core host the 16-row window lost 20% and the 8-row rebuild recovered it. On the 14700K the stock 0.1.55 build matches the 8-row rebuild — the gap is gone.

So this was not a kernel regression: the wider verify window is CPU-bound on a 6-P-core host (the prompt path could not be fed), and the 16-row default is fine once the CPU can keep up. My original report measured a real effect, but I attributed it to the kernel instead of the CPU throughput limit.

No rebuild flag is needed on this machine; I run the stock 0.1.55 package.

Thanks for the -DSTRATA_WINDOW_MAX_T hint — without it the diagnosis would not have been possible.

<!-- gh-comment-id:6600435332 --> @ditupao commented on GitHub (Nov 3, 2026): ## Follow-up: the regression disappeared after a CPU upgrade I changed the **host CPU** (i5-13500 → i7-14700K) and re-ran the same test. The GPU (RX 7900 XTX), ROCm 7.2.4, the IQ3_S model and pack, the launch options and the RDNA3 environment are all unchanged — only the CPU differs. **32K prompt, greedy, `presence_penalty 0`, 2 runs, median:** | Host CPU | 0.1.55 shipped (16-row) | 0.1.55 rebuilt `-DSTRATA_WINDOW_MAX_T=8` | |---|---:|---:| | i5-13500 (6 P-cores) | 2,317 t/s | 2,914 t/s (−20%) | | **i7-14700K (8 P-cores)** | **3,198 t/s** | **3,216 t/s (−0.6%)** | On the old 6-core host the 16-row window lost 20% and the 8-row rebuild recovered it. On the 14700K the **stock 0.1.55 build matches the 8-row rebuild** — the gap is gone. So this was **not a kernel regression**: the wider verify window is CPU-bound on a 6-P-core host (the prompt path could not be fed), and the 16-row default is fine once the CPU can keep up. My original report measured a real effect, but I attributed it to the kernel instead of the CPU throughput limit. No rebuild flag is needed on this machine; I run the stock 0.1.55 package. Thanks for the `-DSTRATA_WINDOW_MAX_T` hint — without it the diagnosis would not have been possible.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2314
No description provided.