[GH-ISSUE #5148] [Engine] Windows HIP gfx1201: IQ3_S decode stuck at ~30 tok/s — CPU pool "jobs" wait on the FileExpertSource path (IQ3_XXS arena: 90 tok/s); plus two start failures #3060

Open
opened 2026-11-07 14:37:44 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @jordan01236 on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5148

Summary

On an RX 9070 XT (16 GB) + 64 GB RAM under Windows, IQ3_XXS decodes at 78–98 tok/s with the full expert arena, but IQ3_S is stuck at ~30 tok/s in every configuration I could start. STRATA_DECODE_TIMING=1 shows the difference is almost entirely the CPU expert-pool jobs wait (37–53 ms/window for IQ3_S vs 0.04 ms for IQ3_XXS). IQ3_S's 46.8 GiB arena doesn't fit beside Windows on 64 GB, so it runs through FileExpertSource (--mmap-experts, or --resident-experts), and that path appears to be the bottleneck rather than the GPU kernels, the GPU cache hit rate (~80% for both) or the CPU per-expert cost (42–57 µs for both).

While testing I also hit two start failures on engine 0.1.56 (details below):

  1. --resident-experts with IQ3_S: unspecified launch failure during the first checkpoint save (worked on 0.1.54).
  2. Full arena with IQ3_S on 64 GB: cudaHostRegister of the whole arena fails, 43 of 50.3 GB get pinned in slices, then the embedding buffer failed and the engine exits — rather than falling back to the file path.

Environment

GPU AMD Radeon RX 9070 XT 16 GB (gfx1201), driver 32.0.32015.7029, Windows budgets 15,419 of 16,304 MiB
CPU Ryzen 7 9800X3D (8C/16T, SMT on), 7 pool workers + host thread (default)
RAM 64 GB DDR5-6000 (2×32 GB, CMH64GX5M2B6000C40), 61.6 GiB visible (iGPU reserves 2 GB)
Board / drive Gigabyte B650M GAMING PLUS WIFI, PCIe probe 28.5 GB/s; models on WD_BLACK SN850 1 TB
OS Windows 11 Pro, build 26200
Strata engine + control 0.1.56 (windows-x86_64-hip-rx9070, app v0.2.10); also checked on 0.1.54
Models qwen/IQ3_XXS and qwen/IQ3_S (ISTA-DASLab GSQ-RCO), DFlash2 drafter (default)

Common launch settings (strata launch ... --no-tui):

--context 128k (IQ3_S) / 256k (IQ3_XXS) --vision off --tune quick
--set kv-resident=32768 --set conversation-cache-mib=2048 --set vram-reserve-mib=1024
--set STRATA_HIPBLASLT_TABLE=on --set STRATA_DECODE_TIMING=1
IQ3_S only: --set mmap-experts=on

Test request: one chat completion, 69-token prompt, 700 tokens out, reasoning_effort: low, temperature: 0, sent twice.

Decode timing, same request, engine 0.1.56

IQ3_XXS (arena, ArenaExpertSource) — 90–93 tok/s:

strata decode timing: 284 windows, avg T 4.24, 2.46 tokens/window, 29.17 ms/window = adapt wait 0.16 + verify 24.77 (GPU-reach wait 13.47 + per-layer host 7.94 [plan 0.19 actq 0.15 jobs 0.04 CPU 7.53] + stage 0.01) + commit/emit 0.07 + draft 4.17 + adapt join 0.00 + other 0.00; per layer-window: CPU experts 3.36 (4.87 entries), VRAM hits 34.15, PCIe 0.60; 23.9 swaps/window
strata decode timing: 281 windows, avg T 4.16, 2.49 tokens/window, 27.22 ms/window = adapt wait 0.05 + verify 22.96 (GPU-reach wait 13.72 + per-layer host 6.02 [plan 0.16 actq 0.13 jobs 0.04 CPU 5.66] + stage 0.01) + commit/emit 0.07 + draft 4.14 + adapt join 0.00 + other 0.00; per layer-window: CPU experts 2.73 (3.84 entries), VRAM hits 34.83, PCIe 0.54; 23.9 swaps/window

IQ3_S (--mmap-experts, FileExpertSource) — 28–32 tok/s:

strata decode timing: 259 windows, avg T 4.23, 2.70 tokens/window, 96.43 ms/window = adapt wait 0.05 + verify 85.99 (GPU-reach wait 15.59 + per-layer host 66.46 [plan 0.34 actq 0.27 jobs 53.24 CPU 12.00] + stage 0.01) + commit/emit 0.09 + draft 2.93 + adapt join 7.37 + other 0.00; per layer-window: CPU experts 5.50 (7.66 entries), VRAM hits 31.22, PCIe 0.00; 24.1 swaps/window
strata decode timing: 286 windows, avg T 4.08, 2.45 tokens/window, 76.50 ms/window = adapt wait 0.04 + verify 66.56 (GPU-reach wait 14.89 + per-layer host 47.88 [plan 0.29 actq 0.24 jobs 37.23 CPU 9.65] + stage 0.01) + commit/emit 0.09 + draft 2.90 + adapt join 6.90 + other 0.00; per layer-window: CPU experts 4.48 (6.04 entries), VRAM hits 31.97, PCIe 0.00; 23.8 swaps/window
per window IQ3_XXS (arena) IQ3_S (file)
total 27–29 ms 76–96 ms
jobs 0.04 ms 37–53 ms
CPU 5.7–7.5 ms 9.7–12 ms
GPU-reach wait ~13.5 ms ~15 ms
adapt join 0 ~7 ms
PCIe (per layer-window) 0.54–0.60 0.00
CPU experts (per layer-window) 2.7–3.4 4.5–5.5
decode hit rate 77–87 % 76–84 %

The PCIe-share calibration reports a similar CPU cost per missed expert for both (the CPU pool takes 42–57 us per missed expert), so the ~40 ms of jobs per window looks like time spent getting the expert bytes through the file-backed path rather than compute.

What I tried for IQ3_S

Configuration Decode Notes
--mmap-experts, 256K context, 0.1.54 ~14–17 tok/s page cache 37.4 GiB < file set 44.3 GiB
--mmap-experts, 128K, 0.1.54 28–29 tok/s
+ vram-reserve-mib 1024, STRATA_HIPBLASLT_TABLE=on, 0.1.54 33.7 tok/s expert cache 7.5 GiB
--resident-experts (42.1 GiB page-locked, "0 blob reads from the file"), 0.1.54 28–40 tok/s no gain despite no file reads
same, without adapt-* / spec-min-p / pcie-frac 30–40 tok/s
--mmap-experts, 0.1.56 (DFlash2) ~29.5 tok/s prompt read 410 → 624 tok/s (thanks!)
--pool-cores 1-15 (15 workers on SMT siblings), 0.1.56 10–19 tok/s jobs up to 177 ms — worse
full arena, 64K context, conversation-cache-mib 512, 0.1.56 did not start see failure 2
--resident-experts, 0.1.56 did not start see failure 1

Interesting point: --resident-experts on 0.1.54 removed all file reads but did not improve decode, so it may be the FileExpertSource CPU path itself (vs ArenaExpertSource) rather than page faults. I didn't get a DECODE_TIMING profile of resident mode because of failure 1.

Failure 1 — --resident-experts + IQ3_S on 0.1.56

Same flags as the table above plus --set resident-experts=on (engine args include --mmap-experts --resident-experts --kv-resident 32768 --max-context 131072 --vram-reserve-mib 1024, STRATA_HIPBLASLT_TABLE=on). The same setup worked on 0.1.54.

strata generate: resident RAM mode: 41.84 GiB of experts in RAM (page-locked), 4075 in the GPU cache; adaptive swaps exchange them with the GPU cache (no file reads)
strata verify: captured the 6-token window (upload no error, sync no error) in 38.6 ms
strata serve: checkpoint save: conversation snapshot running-state copy: unspecified launch failure
Hip error: 'unspecified launch failure'(719) at C:/home/runner/_work/rockrel/rockrel/rocm-libraries/projects/hipblaslt/library/src/amd_detail/hipblaslt.cpp:468
[strata] the engine reported an error: saving a conversation checkpoint failed

I haven't isolated whether STRATA_HIPBLASLT_TABLE=on or DFlash2 is involved — happy to rerun with either off.

Failure 2 — full arena for IQ3_S on 64 GB (0.1.56)

strata generate: memory guard: limit 61.6 GiB (source: meminfo), current 10.9 GiB, reclaimable cache credited 0.0 GiB; available 50.7 GiB (MemAvailable 50.7 GiB), floor 2560 MiB
strata generate: expert arena read unbuffered (0 of 16 probe reads from the file cache; 2.1 GiB available, 51.1 GiB of files)
strata generate: expert arena: locked 3502 MiB via working-set minimum + VirtualLock; cudaHostRegister of the whole arena FAILED (invalid argument); 45 slices pinned (43 GiB); large pages refused for 50295996416 B (...)
strata generate: session is up (engine 0.1.56)
strata generate: the embedding buffer failed
 error: unspecified launch failure

Expected this to be too tight, but given #4846 (fall back to file reads when RAM is short at the arena), I'd expect a fallback to --mmap-experts here instead of EngineDied.

Questions

  1. Is the jobs time on the FileExpertSource path expected to be ~1000× the arena path for the same number of CPU experts? Is there a knob (e.g. STRATA_POOL_SPIN_US, STRATA_POOL_UMWAIT, STRATA_ADAPT_OVERLAP_RESIDENT=1) worth trying on Windows?
  2. Could resident mode use the same CPU/PCIe path as the arena (it already has the experts page-locked), so a model whose experts are slightly larger than free RAM still gets arena-like decode?
  3. Is a partial arena (hottest N GiB via --resident-budget-gib) supported for the native ISTA packs, or only for the Unsloth budget files?

Happy to run any build or switch combination and post STRATA_DECODE_TIMING output.

Originally created by @jordan01236 on GitHub (Nov 3, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5148 ### Summary On an RX 9070 XT (16 GB) + 64 GB RAM under Windows, **IQ3_XXS decodes at 78–98 tok/s** with the full expert arena, but **IQ3_S is stuck at ~30 tok/s** in every configuration I could start. `STRATA_DECODE_TIMING=1` shows the difference is almost entirely the CPU expert-pool **`jobs`** wait (37–53 ms/window for IQ3_S vs 0.04 ms for IQ3_XXS). IQ3_S's 46.8 GiB arena doesn't fit beside Windows on 64 GB, so it runs through `FileExpertSource` (`--mmap-experts`, or `--resident-experts`), and that path appears to be the bottleneck rather than the GPU kernels, the GPU cache hit rate (~80% for both) or the CPU per-expert cost (42–57 µs for both). While testing I also hit two start failures on engine 0.1.56 (details below): 1. `--resident-experts` with IQ3_S: `unspecified launch failure` during the first checkpoint save (worked on 0.1.54). 2. Full arena with IQ3_S on 64 GB: `cudaHostRegister` of the whole arena fails, 43 of 50.3 GB get pinned in slices, then `the embedding buffer failed` and the engine exits — rather than falling back to the file path. ### Environment | | | |---|---| | GPU | AMD Radeon RX 9070 XT 16 GB (gfx1201), driver 32.0.32015.7029, Windows budgets 15,419 of 16,304 MiB | | CPU | Ryzen 7 9800X3D (8C/16T, SMT on), 7 pool workers + host thread (default) | | RAM | 64 GB DDR5-6000 (2×32 GB, CMH64GX5M2B6000C40), 61.6 GiB visible (iGPU reserves 2 GB) | | Board / drive | Gigabyte B650M GAMING PLUS WIFI, PCIe probe 28.5 GB/s; models on WD_BLACK SN850 1 TB | | OS | Windows 11 Pro, build 26200 | | Strata | engine + control 0.1.56 (`windows-x86_64-hip-rx9070`, app v0.2.10); also checked on 0.1.54 | | Models | `qwen/IQ3_XXS` and `qwen/IQ3_S` (ISTA-DASLab GSQ-RCO), DFlash2 drafter (default) | Common launch settings (`strata launch ... --no-tui`): ``` --context 128k (IQ3_S) / 256k (IQ3_XXS) --vision off --tune quick --set kv-resident=32768 --set conversation-cache-mib=2048 --set vram-reserve-mib=1024 --set STRATA_HIPBLASLT_TABLE=on --set STRATA_DECODE_TIMING=1 IQ3_S only: --set mmap-experts=on ``` Test request: one chat completion, 69-token prompt, 700 tokens out, `reasoning_effort: low`, `temperature: 0`, sent twice. ### Decode timing, same request, engine 0.1.56 **IQ3_XXS (arena, `ArenaExpertSource`)** — 90–93 tok/s: ``` strata decode timing: 284 windows, avg T 4.24, 2.46 tokens/window, 29.17 ms/window = adapt wait 0.16 + verify 24.77 (GPU-reach wait 13.47 + per-layer host 7.94 [plan 0.19 actq 0.15 jobs 0.04 CPU 7.53] + stage 0.01) + commit/emit 0.07 + draft 4.17 + adapt join 0.00 + other 0.00; per layer-window: CPU experts 3.36 (4.87 entries), VRAM hits 34.15, PCIe 0.60; 23.9 swaps/window strata decode timing: 281 windows, avg T 4.16, 2.49 tokens/window, 27.22 ms/window = adapt wait 0.05 + verify 22.96 (GPU-reach wait 13.72 + per-layer host 6.02 [plan 0.16 actq 0.13 jobs 0.04 CPU 5.66] + stage 0.01) + commit/emit 0.07 + draft 4.14 + adapt join 0.00 + other 0.00; per layer-window: CPU experts 2.73 (3.84 entries), VRAM hits 34.83, PCIe 0.54; 23.9 swaps/window ``` **IQ3_S (`--mmap-experts`, `FileExpertSource`)** — 28–32 tok/s: ``` strata decode timing: 259 windows, avg T 4.23, 2.70 tokens/window, 96.43 ms/window = adapt wait 0.05 + verify 85.99 (GPU-reach wait 15.59 + per-layer host 66.46 [plan 0.34 actq 0.27 jobs 53.24 CPU 12.00] + stage 0.01) + commit/emit 0.09 + draft 2.93 + adapt join 7.37 + other 0.00; per layer-window: CPU experts 5.50 (7.66 entries), VRAM hits 31.22, PCIe 0.00; 24.1 swaps/window strata decode timing: 286 windows, avg T 4.08, 2.45 tokens/window, 76.50 ms/window = adapt wait 0.04 + verify 66.56 (GPU-reach wait 14.89 + per-layer host 47.88 [plan 0.29 actq 0.24 jobs 37.23 CPU 9.65] + stage 0.01) + commit/emit 0.09 + draft 2.90 + adapt join 6.90 + other 0.00; per layer-window: CPU experts 4.48 (6.04 entries), VRAM hits 31.97, PCIe 0.00; 23.8 swaps/window ``` | per window | IQ3_XXS (arena) | IQ3_S (file) | |---|---|---| | total | 27–29 ms | 76–96 ms | | `jobs` | **0.04 ms** | **37–53 ms** | | `CPU` | 5.7–7.5 ms | 9.7–12 ms | | GPU-reach wait | ~13.5 ms | ~15 ms | | adapt join | 0 | ~7 ms | | PCIe (per layer-window) | 0.54–0.60 | 0.00 | | CPU experts (per layer-window) | 2.7–3.4 | 4.5–5.5 | | decode hit rate | 77–87 % | 76–84 % | The PCIe-share calibration reports a similar CPU cost per missed expert for both (`the CPU pool takes 42–57 us per missed expert`), so the ~40 ms of `jobs` per window looks like time spent getting the expert bytes through the file-backed path rather than compute. ### What I tried for IQ3_S | Configuration | Decode | Notes | |---|---|---| | `--mmap-experts`, 256K context, 0.1.54 | ~14–17 tok/s | page cache 37.4 GiB < file set 44.3 GiB | | `--mmap-experts`, 128K, 0.1.54 | 28–29 tok/s | | | + `vram-reserve-mib 1024`, `STRATA_HIPBLASLT_TABLE=on`, 0.1.54 | 33.7 tok/s | expert cache 7.5 GiB | | `--resident-experts` (42.1 GiB page-locked, "0 blob reads from the file"), 0.1.54 | 28–40 tok/s | no gain despite no file reads | | same, without `adapt-*` / `spec-min-p` / `pcie-frac` | 30–40 tok/s | | | `--mmap-experts`, 0.1.56 (DFlash2) | ~29.5 tok/s | prompt read 410 → 624 tok/s (thanks!) | | `--pool-cores 1-15` (15 workers on SMT siblings), 0.1.56 | **10–19 tok/s** | `jobs` up to 177 ms — worse | | full arena, 64K context, `conversation-cache-mib 512`, 0.1.56 | did not start | see failure 2 | | `--resident-experts`, 0.1.56 | did not start | see failure 1 | Interesting point: `--resident-experts` on 0.1.54 removed all file reads but did **not** improve decode, so it may be the `FileExpertSource` CPU path itself (vs `ArenaExpertSource`) rather than page faults. I didn't get a `DECODE_TIMING` profile of resident mode because of failure 1. ### Failure 1 — `--resident-experts` + IQ3_S on 0.1.56 Same flags as the table above plus `--set resident-experts=on` (engine args include `--mmap-experts --resident-experts --kv-resident 32768 --max-context 131072 --vram-reserve-mib 1024`, `STRATA_HIPBLASLT_TABLE=on`). The same setup worked on 0.1.54. ``` strata generate: resident RAM mode: 41.84 GiB of experts in RAM (page-locked), 4075 in the GPU cache; adaptive swaps exchange them with the GPU cache (no file reads) strata verify: captured the 6-token window (upload no error, sync no error) in 38.6 ms strata serve: checkpoint save: conversation snapshot running-state copy: unspecified launch failure Hip error: 'unspecified launch failure'(719) at C:/home/runner/_work/rockrel/rockrel/rocm-libraries/projects/hipblaslt/library/src/amd_detail/hipblaslt.cpp:468 [strata] the engine reported an error: saving a conversation checkpoint failed ``` I haven't isolated whether `STRATA_HIPBLASLT_TABLE=on` or DFlash2 is involved — happy to rerun with either off. ### Failure 2 — full arena for IQ3_S on 64 GB (0.1.56) ``` strata generate: memory guard: limit 61.6 GiB (source: meminfo), current 10.9 GiB, reclaimable cache credited 0.0 GiB; available 50.7 GiB (MemAvailable 50.7 GiB), floor 2560 MiB strata generate: expert arena read unbuffered (0 of 16 probe reads from the file cache; 2.1 GiB available, 51.1 GiB of files) strata generate: expert arena: locked 3502 MiB via working-set minimum + VirtualLock; cudaHostRegister of the whole arena FAILED (invalid argument); 45 slices pinned (43 GiB); large pages refused for 50295996416 B (...) strata generate: session is up (engine 0.1.56) strata generate: the embedding buffer failed error: unspecified launch failure ``` Expected this to be too tight, but given #4846 (fall back to file reads when RAM is short at the arena), I'd expect a fallback to `--mmap-experts` here instead of `EngineDied`. ### Questions 1. Is the `jobs` time on the `FileExpertSource` path expected to be ~1000× the arena path for the same number of CPU experts? Is there a knob (e.g. `STRATA_POOL_SPIN_US`, `STRATA_POOL_UMWAIT`, `STRATA_ADAPT_OVERLAP_RESIDENT=1`) worth trying on Windows? 2. Could resident mode use the same CPU/PCIe path as the arena (it already has the experts page-locked), so a model whose experts are slightly larger than free RAM still gets arena-like decode? 3. Is a partial arena (hottest N GiB via `--resident-budget-gib`) supported for the native ISTA packs, or only for the Unsloth budget files? Happy to run any build or switch combination and post `STRATA_DECODE_TIMING` output.
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#3060
No description provided.