[GH-ISSUE #579] AMD/HIP RX 9070 XT (gfx1201) stalls during batched prompt ingestion on ROCm 10.0 #272

Closed
opened 2026-11-04 01:41:31 +07:00 by bsakaguchi · 9 comments
Owner

Originally created by @s91402001 on GitHub (Oct 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/579

Summary

On an AMD Radeon RX 9070 XT (gfx1201) under Ubuntu 24.04, Strata's HIP engine stalls during batched prompt ingestion. The 60-second watchdog reports no progress and aborts the engine; OpenCode then receives:

{"message":"the engine stopped unexpectedly (exit code -6); the next request restarts it","type":"server_error"}

This was still reproducible after upgrading Strata to v0.1.38 and installing AMD ROCm 10.0.0 for gfx1201. A short OpenAI-compatible request succeeds; a long prompt hangs during batched prefill.

Environment

  • Strata repository/tag: v0.1.38, commit 99f3dbd
  • Engine: 0.1.38, locally built HIP engine, target gfx1201
  • GPU: AMD Radeon RX 9070 XT, 16 GB VRAM, gfx1201
  • Secondary GPU: Ryzen 7 8745HS integrated Radeon 780M, gfx1103 (Strata config selects GPU 0, the RX 9070 XT)
  • CPU: AMD Ryzen 7 8745HS, 16 logical CPUs; AVX2 and AVX-512 reported
  • RAM: 30.7 GiB usable
  • OS: Ubuntu 24.04.4 LTS
  • Kernel: 6.17.0-40-generic
  • ROCm user-space: AMD ROCm package 10.0.0-4 for gfx1201
  • HIP runtime: 7.15.26333-0000000
  • Installed AMD driver package: amdgpu-dkms 7.1.3.31500000, firmware 31.50
  • Kernel module currently loaded: amdgpu 6.16.13 (the new DKMS driver has been installed but not yet tested after reboot)
  • Model: Qwen3.8-Flash-Next IQ2_XS, native pack, PLE shard and MTP draft
  • Backend/config: HIP, GPU 0, --expert-cache auto --prefill 512 --spec 4 --spec-min-p 0.5 --max-context 131072 --kv int8 --kv-resident 32768 --mmap-experts
  • STRATA_PLE_BATCH is unset for the current ROCm 10 build.

Reproduction

  1. Start the configured IQ2_XS server.
  2. Send an OpenAI-compatible chat completion with a long prompt (roughly 8K tokens or more; an OpenCode request also reproduces).
  3. The request stalls in reading the prompt (batched) and the watchdog aborts the engine after 60 seconds without progress.

A short API request succeeds. A synthetic prompt of about 21.5K tokens was also tried.

Observed failure

With the ROCm 10 build, the server log reported:

[strata] the engine stopped unexpectedly (exit code -6).
The engine stopped itself because it had stopped making progress
...
strata serve: no progress for 60 s during a request
(reading the prompt (batched): layer 5 of the prompt chunk from token 0)

The engine log contains the corresponding stall report. At the time, it reported about 20 GiB of RAM available and effectively no swap use; this does not look like ordinary system-RAM exhaustion.

The earlier ROCm 7.2.4 log shows the same stall class at multiple layers (for example layers 5, 14, 16, 20, 23, 27 and 38), also during batched prompt ingestion. That older log predates the ROCm 10 cleanup/reinstall, so the attached logs should be read with their timestamps in mind.

What I tried

  • Checked the OpenCode endpoint and OpenAI-compatible API; short requests succeed.
  • Tried --prefill auto and --prefill 512; the stall persisted.
  • Upgraded Strata from engine 0.1.35 to 0.1.38 and rebuilt for gfx1201; the stall persisted.
  • Tried STRATA_PLE_BATCH=0; it did not prevent the reported failure.
  • Installed ROCm 10.0.0 gfx1201 packages, rebuilt the engine against /opt/rocm/core-10.0, and verified the binary loads ROCm 10 HIP/hipBLAS/rocBLAS libraries. A short API request succeeded.
  • The long-prompt ROCm 10 run in /tmp/strata-rocm10.log occurred before I noticed that cleaning up ROCm 7 had removed ROCm 10 files; ROCm 10 was subsequently reinstalled. Please treat that run as a useful but not fully clean A/B result.
  • ROCm 10 DKMS driver 7.1.3 is installed, but this run has not been rebooted, so the loaded module is still 6.16.13.

Attachments

  • strata-iq2_xs.log — engine log with repeated stall reports.
  • /tmp/strata-rocm10.log — server output from the ROCm 10 run, including the 21.5K-token request and watchdog error.
  • The configured server arguments are listed above; the config's model paths and profile can be redacted if desired.

strata-iq2_xs.log

strata-rocm10.log

Originally created by @s91402001 on GitHub (Oct 3, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/579 ## Summary On an AMD Radeon RX 9070 XT (`gfx1201`) under Ubuntu 24.04, Strata's HIP engine stalls during batched prompt ingestion. The 60-second watchdog reports no progress and aborts the engine; OpenCode then receives: ```json {"message":"the engine stopped unexpectedly (exit code -6); the next request restarts it","type":"server_error"} ``` This was still reproducible after upgrading Strata to v0.1.38 and installing AMD ROCm 10.0.0 for gfx1201. A short OpenAI-compatible request succeeds; a long prompt hangs during batched prefill. ## Environment - Strata repository/tag: `v0.1.38`, commit `99f3dbd` - Engine: `0.1.38`, locally built HIP engine, target `gfx1201` - GPU: AMD Radeon RX 9070 XT, 16 GB VRAM, `gfx1201` - Secondary GPU: Ryzen 7 8745HS integrated Radeon 780M, `gfx1103` (Strata config selects GPU 0, the RX 9070 XT) - CPU: AMD Ryzen 7 8745HS, 16 logical CPUs; AVX2 and AVX-512 reported - RAM: 30.7 GiB usable - OS: Ubuntu 24.04.4 LTS - Kernel: `6.17.0-40-generic` - ROCm user-space: AMD ROCm package `10.0.0-4` for gfx1201 - HIP runtime: `7.15.26333-0000000` - Installed AMD driver package: `amdgpu-dkms 7.1.3.31500000`, firmware `31.50` - **Kernel module currently loaded:** `amdgpu 6.16.13` (the new DKMS driver has been installed but not yet tested after reboot) - Model: Qwen3.8-Flash-Next IQ2_XS, native pack, PLE shard and MTP draft - Backend/config: HIP, GPU 0, `--expert-cache auto --prefill 512 --spec 4 --spec-min-p 0.5 --max-context 131072 --kv int8 --kv-resident 32768 --mmap-experts` - `STRATA_PLE_BATCH` is unset for the current ROCm 10 build. ## Reproduction 1. Start the configured IQ2_XS server. 2. Send an OpenAI-compatible chat completion with a long prompt (roughly 8K tokens or more; an OpenCode request also reproduces). 3. The request stalls in `reading the prompt (batched)` and the watchdog aborts the engine after 60 seconds without progress. A short API request succeeds. A synthetic prompt of about 21.5K tokens was also tried. ## Observed failure With the ROCm 10 build, the server log reported: ```text [strata] the engine stopped unexpectedly (exit code -6). The engine stopped itself because it had stopped making progress ... strata serve: no progress for 60 s during a request (reading the prompt (batched): layer 5 of the prompt chunk from token 0) ``` The engine log contains the corresponding stall report. At the time, it reported about 20 GiB of RAM available and effectively no swap use; this does not look like ordinary system-RAM exhaustion. The earlier ROCm 7.2.4 log shows the same stall class at multiple layers (for example layers 5, 14, 16, 20, 23, 27 and 38), also during batched prompt ingestion. That older log predates the ROCm 10 cleanup/reinstall, so the attached logs should be read with their timestamps in mind. ## What I tried - Checked the OpenCode endpoint and OpenAI-compatible API; short requests succeed. - Tried `--prefill auto` and `--prefill 512`; the stall persisted. - Upgraded Strata from engine 0.1.35 to 0.1.38 and rebuilt for `gfx1201`; the stall persisted. - Tried `STRATA_PLE_BATCH=0`; it did not prevent the reported failure. - Installed ROCm 10.0.0 gfx1201 packages, rebuilt the engine against `/opt/rocm/core-10.0`, and verified the binary loads ROCm 10 HIP/hipBLAS/rocBLAS libraries. A short API request succeeded. - The long-prompt ROCm 10 run in `/tmp/strata-rocm10.log` occurred before I noticed that cleaning up ROCm 7 had removed ROCm 10 files; ROCm 10 was subsequently reinstalled. Please treat that run as a useful but not fully clean A/B result. - ROCm 10 DKMS driver 7.1.3 is installed, but this run has not been rebooted, so the loaded module is still 6.16.13. ## Attachments - `strata-iq2_xs.log` — engine log with repeated stall reports. - `/tmp/strata-rocm10.log` — server output from the ROCm 10 run, including the 21.5K-token request and watchdog error. - The configured server arguments are listed above; the config's model paths and profile can be redacted if desired. [strata-iq2_xs.log](https://github.com/user-attachments/files/32989179/strata-iq2_xs.log) [strata-rocm10.log](https://github.com/user-attachments/files/32989184/strata-rocm10.log)
Author
Owner

@Niko1221 commented on GitHub (Oct 3, 2026):

Thanks, very clear report. This isn't the hang 0.1.38 fixed (#382 stalled at the end of a chunk); yours stops inside the chunk. #541 and #613 also have KV streaming (--kv-resident 32768) on a gfx1201 card while reading a prompt, so that's where we're looking.

Two things would help: does the long prompt still stall with --max-context 32768 and no --kv-resident (the KV cache then stays in VRAM, no streaming)? And please paste the stall report lines the engine writes into strata-iq2_xs.log just before the no progress line of the ROCm 10 run.

<!-- gh-comment-id:5970948664 --> @Niko1221 commented on GitHub (Oct 3, 2026): Thanks, very clear report. This isn't the hang 0.1.38 fixed (#382 stalled at the end of a chunk); yours stops inside the chunk. #541 and #613 also have KV streaming (`--kv-resident 32768`) on a gfx1201 card while reading a prompt, so that's where we're looking. Two things would help: does the long prompt still stall with `--max-context 32768` and no `--kv-resident` (the KV cache then stays in VRAM, no streaming)? And please paste the stall report lines the engine writes into `strata-iq2_xs.log` just before the `no progress` line of the ROCm 10 run.
Author
Owner

@s91402001 commented on GitHub (Oct 4, 2026):

Follow-up tests against #579 and #605

I ran a controlled PLE I/O comparison on the same host and engine using a fixed 9,209-token prompt. Each trial started a fresh server/engine; the only A/B setting changed was --ple-io.

  • Strata: v0.1.38, commit 99f3dbd; local HIP engine 0.1.38 for gfx1201
  • GPU: AMD Radeon RX 9070 XT (gfx1201), with Radeon 780M (gfx1103) as the secondary GPU; Strata selected GPU 0
  • OS/kernel: Ubuntu 24.04.4 LTS, 6.17.0-40-generic
  • ROCm: 10.0.0; currently loaded amdgpu module reports 7.1.3.31500000
  • RAM: 30.7 GiB usable, 8 GiB swap
  • Model: Qwen3.8-Flash-Next IQ2_XS, native pack, PLE shard, MTP rt
  • Model and PLE files: ADATA SX8200PNP NVMe (/dev/nvme0n1p2, ext4, rotational=0)
  • Other engine arguments were unchanged: --expert-cache auto --prefill 512 --spec 4 --spec-min-p 0.5 --max-context 131072 --kv int8 --kv-resident 32768 --mmap-experts
  • --ple-inflight remained at its default of 256.

The same synthetic request was sent sequentially in each trial: 9,209 rendered prompt tokens, max_tokens=1, no tools. The content was generated with seed 579605; its content SHA-256 is ac27c4521cd3d79d73d4c3288d51fba7f108af6c22cbb601517703279cc491ee. The exact API request is attached as fixed-request.json.

PLE I/O mode Trial HTTP Result
direct 1 200 9,209 prompt tokens in 72.9 s (126.4 tok/s)
direct 2 503 Watchdog stall at batched layer 42, chunk token 0
mmap 1 503 Request returned 503; engine log recorded watchdog stalls at layer 23 / chunk token 4608, then layer 3 / chunk token 4096 after restart
mmap 2 503 Watchdog stall at batched layer 18, chunk token 512

The mmap failures do not match the specific #605 case where --ple-io direct on rotational storage deadlocks and --ple-io ram resolves it. The model is on NVMe, and changing from direct to mmap did not prevent the stall.

At the watchdog in the retained repeated mmap run, Strata reported 0 layers served, 0 GPU doorbells, and 0 of 0 expert-pool jobs claimed. Near-watchdog process snapshots showed five engine threads in R, two HIP threads in kfd_wait_on_events, no D / folio_wait_bit_common threads, about 24 GiB of available system RAM, and an unchanged per-process read-byte counter across the three captures. GPU 0 utilization was reported as 3% in those captures; VRAM allocation was 97%. This differs from #605's block-I/O-wait signature and remains consistent with a HIP/GPU-side batched-prefill stall such as #579, but does not establish the root cause.

Stall report from the ROCm 10 strata-iq2_xs.log

The requested excerpt from the original engine log is attached as stall-report-rocm10.txt. The original log prints the watchdog no progress line immediately before the stall report:

strata serve: no progress for 60 s during a request (reading the prompt (batched): layer 5 of the prompt chunk from token 0) - stopping the engine so the server starts it again (issue #29)
strata serve: stall report (engine 0.1.38): stage "reading the prompt (batched): layer 5 of the prompt chunk from token 0" for 60 s; 0 layers served since the last finished step (0 = stopped, more = slow)
  expert pool: epoch 864, batch epoch 864: 24 of 24 jobs claimed, 24 done; 7 of 7 workers parked, 7 sleeping; mode 0
  expert pool threads: w0=sleeping w1=sleeping w2=sleeping w3=sleeping w4=sleeping w5=sleeping w6=sleeping; host idle for 76729 ms
  verify window (last window, not the current stage): 6 tokens at position 36, host at layer step 48; the GPU rang 48; flags: served 48, plan (A) 48, copies (B) 48
  memory: 19168 MiB resident, 0 MiB in swap, 20939 MiB RAM available; 76177 major page faults so far
  2 s later:
  expert pool: epoch 864, batch epoch 864: 24 of 24 jobs claimed, 24 done; 7 of 7 workers parked, 7 sleeping; mode 0
  expert pool threads: w0=sleeping w1=sleeping w2=sleeping w3=sleeping w4=sleeping w5=sleeping w6=sleeping; host idle for 78729 ms
  verify window (last window, not the current stage): 6 tokens at position 36, host at layer step 48; the GPU rang 48; flags: served 48, plan (A) 48, copies (B) 48
  memory: 19168 MiB resident, 0 MiB in swap, 20936 MiB RAM available; 76177 major page faults so far
strata: released the verify window's GPU waits (#267): the GPU finished in 0 ms

I also tried --no-ple as a diagnostic ablation, but this native IQ2_XS load path rejects it before engine startup: --native requires --ple-gguf (the PLE key is native too). I could not obtain a valid no-PLE comparison with this pack.

The PLE reader self-test passed (1/1; about 13 seconds):

LD_LIBRARY_PATH=/opt/rocm/lib:$LD_LIBRARY_PATH ctest --test-dir build-hip -R '^ple_reader_selftest$' --output-on-failure

strata-iq2_xs.log
stall-report-rocm10.txt

<!-- gh-comment-id:5977712803 --> @s91402001 commented on GitHub (Oct 4, 2026): ## Follow-up tests against #579 and #605 I ran a controlled PLE I/O comparison on the same host and engine using a fixed 9,209-token prompt. Each trial started a fresh server/engine; the only A/B setting changed was `--ple-io`. - Strata: v0.1.38, commit `99f3dbd`; local HIP engine 0.1.38 for `gfx1201` - GPU: AMD Radeon RX 9070 XT (`gfx1201`), with Radeon 780M (`gfx1103`) as the secondary GPU; Strata selected GPU 0 - OS/kernel: Ubuntu 24.04.4 LTS, `6.17.0-40-generic` - ROCm: 10.0.0; currently loaded `amdgpu` module reports `7.1.3.31500000` - RAM: 30.7 GiB usable, 8 GiB swap - Model: Qwen3.8-Flash-Next IQ2_XS, native pack, PLE shard, MTP `rt` - Model and PLE files: ADATA SX8200PNP NVMe (`/dev/nvme0n1p2`, ext4, `rotational=0`) - Other engine arguments were unchanged: `--expert-cache auto --prefill 512 --spec 4 --spec-min-p 0.5 --max-context 131072 --kv int8 --kv-resident 32768 --mmap-experts` - `--ple-inflight` remained at its default of 256. The same synthetic request was sent sequentially in each trial: 9,209 rendered prompt tokens, `max_tokens=1`, no tools. The content was generated with seed `579605`; its content SHA-256 is `ac27c4521cd3d79d73d4c3288d51fba7f108af6c22cbb601517703279cc491ee`. The exact API request is attached as `fixed-request.json`. | PLE I/O mode | Trial | HTTP | Result | |---|---:|---:|---| | `direct` | 1 | 200 | 9,209 prompt tokens in 72.9 s (126.4 tok/s) | | `direct` | 2 | 503 | Watchdog stall at batched layer 42, chunk token 0 | | `mmap` | 1 | 503 | Request returned 503; engine log recorded watchdog stalls at layer 23 / chunk token 4608, then layer 3 / chunk token 4096 after restart | | `mmap` | 2 | 503 | Watchdog stall at batched layer 18, chunk token 512 | The `mmap` failures do not match the specific #605 case where `--ple-io direct` on rotational storage deadlocks and `--ple-io ram` resolves it. The model is on NVMe, and changing from `direct` to `mmap` did not prevent the stall. At the watchdog in the retained repeated `mmap` run, Strata reported 0 layers served, 0 GPU doorbells, and 0 of 0 expert-pool jobs claimed. Near-watchdog process snapshots showed five engine threads in `R`, two HIP threads in `kfd_wait_on_events`, no `D` / `folio_wait_bit_common` threads, about 24 GiB of available system RAM, and an unchanged per-process read-byte counter across the three captures. GPU 0 utilization was reported as 3% in those captures; VRAM allocation was 97%. This differs from #605's block-I/O-wait signature and remains consistent with a HIP/GPU-side batched-prefill stall such as #579, but does not establish the root cause. ### Stall report from the ROCm 10 `strata-iq2_xs.log` The requested excerpt from the original engine log is attached as `stall-report-rocm10.txt`. The original log prints the watchdog `no progress` line immediately before the stall report: ```text strata serve: no progress for 60 s during a request (reading the prompt (batched): layer 5 of the prompt chunk from token 0) - stopping the engine so the server starts it again (issue #29) strata serve: stall report (engine 0.1.38): stage "reading the prompt (batched): layer 5 of the prompt chunk from token 0" for 60 s; 0 layers served since the last finished step (0 = stopped, more = slow) expert pool: epoch 864, batch epoch 864: 24 of 24 jobs claimed, 24 done; 7 of 7 workers parked, 7 sleeping; mode 0 expert pool threads: w0=sleeping w1=sleeping w2=sleeping w3=sleeping w4=sleeping w5=sleeping w6=sleeping; host idle for 76729 ms verify window (last window, not the current stage): 6 tokens at position 36, host at layer step 48; the GPU rang 48; flags: served 48, plan (A) 48, copies (B) 48 memory: 19168 MiB resident, 0 MiB in swap, 20939 MiB RAM available; 76177 major page faults so far 2 s later: expert pool: epoch 864, batch epoch 864: 24 of 24 jobs claimed, 24 done; 7 of 7 workers parked, 7 sleeping; mode 0 expert pool threads: w0=sleeping w1=sleeping w2=sleeping w3=sleeping w4=sleeping w5=sleeping w6=sleeping; host idle for 78729 ms verify window (last window, not the current stage): 6 tokens at position 36, host at layer step 48; the GPU rang 48; flags: served 48, plan (A) 48, copies (B) 48 memory: 19168 MiB resident, 0 MiB in swap, 20936 MiB RAM available; 76177 major page faults so far strata: released the verify window's GPU waits (#267): the GPU finished in 0 ms ``` I also tried `--no-ple` as a diagnostic ablation, but this native IQ2_XS load path rejects it before engine startup: `--native requires --ple-gguf (the PLE key is native too)`. I could not obtain a valid no-PLE comparison with this pack. The PLE reader self-test passed (1/1; about 13 seconds): ```text LD_LIBRARY_PATH=/opt/rocm/lib:$LD_LIBRARY_PATH ctest --test-dir build-hip -R '^ple_reader_selftest$' --output-on-failure ``` [strata-iq2_xs.log](https://github.com/user-attachments/files/33020326/strata-iq2_xs.log) [stall-report-rocm10.txt](https://github.com/user-attachments/files/33020297/stall-report-rocm10.txt)
Author
Owner

@Niko1221 commented on GitHub (Oct 4, 2026):

Thanks again. Reading the code, the batched prompt path has no GPU wait on a host flag and doesn't copy from pageable memory. Your stalled layers (5, 14, 16, 20, 23, 27, 38) are mostly not the full-attention layers where KV streaming does its work, so we can't tell yet whether --kv-resident is the cause or only goes with the long prompts. 0.1.39 adds two switches to narrow it down:

  • STRATA_PF_STEP_SYNC=1: the prompt path waits for the GPU after each step and logs any step over 250 ms. A stall then names the step it's in: the K/V staged from RAM, the K/V append, or a layer's experts. It's slower and meant only for this test.
  • STRATA_KV_HOST_DMA=1 (AMD builds only): during a prompt, no GPU kernel writes the RAM copy of the K/V; it is copied over by DMA instead. Same answers.

If you can, please run the long prompt with STRATA_PF_STEP_SYNC=1, then with STRATA_KV_HOST_DMA=1, and also once with GPU_PINNED_MIN_XFER_SIZE=1000000 (it turns off ROCm's in-place locking of pageable copies, the idea behind #640). Paste the pf-step and stall-report lines. dmesg -T | grep -iE "amdgpu|timeout|MES|reset|fault" right after a stall would tell a GPU reset from a host stall. Your system also runs the 6.16 kernel's amdgpu with the DKMS 7.1.3 driver installed but not loaded; a reboot onto it before the next runs would rule that out.

<!-- gh-comment-id:5979967366 --> @Niko1221 commented on GitHub (Oct 4, 2026): Thanks again. Reading the code, the batched prompt path has no GPU wait on a host flag and doesn't copy from pageable memory. Your stalled layers (5, 14, 16, 20, 23, 27, 38) are mostly not the full-attention layers where KV streaming does its work, so we can't tell yet whether `--kv-resident` is the cause or only goes with the long prompts. 0.1.39 adds two switches to narrow it down: - `STRATA_PF_STEP_SYNC=1`: the prompt path waits for the GPU after each step and logs any step over 250 ms. A stall then names the step it's in: the K/V staged from RAM, the K/V append, or a layer's experts. It's slower and meant only for this test. - `STRATA_KV_HOST_DMA=1` (AMD builds only): during a prompt, no GPU kernel writes the RAM copy of the K/V; it is copied over by DMA instead. Same answers. If you can, please run the long prompt with `STRATA_PF_STEP_SYNC=1`, then with `STRATA_KV_HOST_DMA=1`, and also once with `GPU_PINNED_MIN_XFER_SIZE=1000000` (it turns off ROCm's in-place locking of pageable copies, the idea behind #640). Paste the `pf-step` and stall-report lines. `dmesg -T | grep -iE "amdgpu|timeout|MES|reset|fault"` right after a stall would tell a GPU reset from a host stall. Your system also runs the 6.16 kernel's amdgpu with the DKMS 7.1.3 driver installed but not loaded; a reboot onto it before the next runs would rule that out.
Author
Owner

@s91402001 commented on GitHub (Oct 4, 2026):

Thanks for the 0.1.39 diagnostics. This run set was performed with the DKMS driver loaded: both /sys/module/amdgpu/version and modinfo -F version amdgpu report 7.1.3.31500000 on kernel 6.17.0-40-generic.

I built Strata v0.1.39 (6f32ec070f23ced9f50e704d854d775da52591ab) as a local HIP engine for gfx1201, linked against ROCm 10 in /opt/rocm/core-10.0/lib. All four runs used the same fixed 9,209-token request (max_tokens=1, no tools); each started a fresh server/engine. PLE I/O remained the default direct, with --ple-inflight 256. Only the listed environment variable changed in each diagnostic run.

Run Environment Result
baseline no added diagnostic variable HTTP 200; 9,209 prompt tokens in 94.1 s (97.8 tok/s)
step sync STRATA_PF_STEP_SYNC=1 HTTP 503 / exit -6; watchdog at batched layer 21, chunk token 8704
K/V host DMA STRATA_KV_HOST_DMA=1 HTTP 503 / exit -6; watchdog at batched layer 17, chunk token 3584
pinned-copy threshold GPU_PINNED_MIN_XFER_SIZE=1000000 HTTP 503 / exit -6; watchdog at batched layer 25, chunk token 1536

The stall report for all three failures has 0 layers served, 0 of 0 jobs claimed, GPU rang 0, and threads waiting on the disk (state D): 0 of 33. Available RAM was approximately 23–24 GiB. STRATA_KV_HOST_DMA=1 and GPU_PINNED_MIN_XFER_SIZE=1000000 did not prevent the stall.

With STRATA_PF_STEP_SYNC=1, the engine emitted no strata pf-step: lines before the watchdog. The stall remained at layer 21 / chunk token 8704; no completed step over 250 ms was reported before it stopped progressing. The stall report also recorded 0 of 33 threads waiting in D state and 0 GPU doorbells for the current chunk.

I ran the requested command immediately after each stall

:

dmesg -T | grep -iE "amdgpu|timeout|MES|reset|fault"

I found no GPU reset, ring timeout, or GPU fault signature. The ring buffer does contain amdgpu_amdkfd_restore_userptr_worker [amdgpu] hogged CPU for >10000us warnings, with the reported count reaching 131 by the first capture and 259 by the last. The attached dmesg files are matching ring-buffer history since boot, so older entries repeat in later captures.

pf-step-and-stall-lines.txt contains the requested step/stall excerpts. The fixed request and prompt hash are also included.

dmesg-captures.txt
pf-step-and-stall-lines.txt

<!-- gh-comment-id:5981837406 --> @s91402001 commented on GitHub (Oct 4, 2026): Thanks for the 0.1.39 diagnostics. This run set was performed with the DKMS driver loaded: both `/sys/module/amdgpu/version` and `modinfo -F version amdgpu` report `7.1.3.31500000` on kernel `6.17.0-40-generic`. I built Strata v0.1.39 (`6f32ec070f23ced9f50e704d854d775da52591ab`) as a local HIP engine for `gfx1201`, linked against ROCm 10 in `/opt/rocm/core-10.0/lib`. All four runs used the same fixed 9,209-token request (`max_tokens=1`, no tools); each started a fresh server/engine. PLE I/O remained the default `direct`, with `--ple-inflight 256`. Only the listed environment variable changed in each diagnostic run. | Run | Environment | Result | |---|---|---| | baseline | no added diagnostic variable | HTTP 200; 9,209 prompt tokens in 94.1 s (97.8 tok/s) | | step sync | `STRATA_PF_STEP_SYNC=1` | HTTP 503 / exit `-6`; watchdog at batched layer 21, chunk token 8704 | | K/V host DMA | `STRATA_KV_HOST_DMA=1` | HTTP 503 / exit `-6`; watchdog at batched layer 17, chunk token 3584 | | pinned-copy threshold | `GPU_PINNED_MIN_XFER_SIZE=1000000` | HTTP 503 / exit `-6`; watchdog at batched layer 25, chunk token 1536 | The stall report for all three failures has `0 layers served`, `0 of 0 jobs claimed`, GPU rang 0, and `threads waiting on the disk (state D): 0 of 33`. Available RAM was approximately 23–24 GiB. `STRATA_KV_HOST_DMA=1` and `GPU_PINNED_MIN_XFER_SIZE=1000000` did not prevent the stall. With `STRATA_PF_STEP_SYNC=1`, the engine emitted no `strata pf-step:` lines before the watchdog. The stall remained at layer 21 / chunk token 8704; no completed step over 250 ms was reported before it stopped progressing. The stall report also recorded 0 of 33 threads waiting in D state and 0 GPU doorbells for the current chunk. I ran the requested command immediately after each stall : ```bash dmesg -T | grep -iE "amdgpu|timeout|MES|reset|fault" ``` I found no GPU reset, ring timeout, or GPU fault signature. The ring buffer does contain `amdgpu_amdkfd_restore_userptr_worker [amdgpu] hogged CPU for >10000us` warnings, with the reported count reaching 131 by the first capture and 259 by the last. The attached dmesg files are matching ring-buffer history since boot, so older entries repeat in later captures. `pf-step-and-stall-lines.txt` contains the requested step/stall excerpts. The fixed request and prompt hash are also included. [dmesg-captures.txt](https://github.com/user-attachments/files/33028698/dmesg-captures.txt) [pf-step-and-stall-lines.txt](https://github.com/user-attachments/files/33028612/pf-step-and-stall-lines.txt)
Author
Owner

@Niko1221 commented on GitHub (Oct 6, 2026):

0.1.40 adds the post-store fence from #697 to the HIP doorbell kernels, which may be what stalls the batched prompt. Could you try it? If it still stalls, please also try transparent huge pages off and STRATA_ARENA_PIN_GIB=0 and post the log.

<!-- gh-comment-id:6010863761 --> @Niko1221 commented on GitHub (Oct 6, 2026): 0.1.40 adds the post-store fence from #697 to the HIP doorbell kernels, which may be what stalls the batched prompt. Could you try it? If it still stalls, please also try transparent huge pages off and STRATA_ARENA_PIN_GIB=0 and post the log.
Author
Owner

@s91402001 commented on GitHub (Oct 7, 2026):

Tested 0.1.40.1 on an RX 9070 XT (gfx1201): the 40K prompt completed 3 of 3, no stall — plus a speed-isolation matrix

Thank you for the reply and for adding the #697 fence in 0.1.40. I rebuilt the engine from the v0.1.40.1 tag and ran the test you asked for: the long prompt three times, upstream defaults. It completed three of three with no stall, so the THP-off / STRATA_ARENA_PIN_GIB=0 fallback was not needed. Details and a speed-isolation matrix below.

1. Test environment

  • GPU: 1x AMD Radeon RX 9070 XT 16 GB (gfx1201, RDNA4)
  • CPU / RAM: AMD Ryzen 7 8745HS (16 cores), 30 GB
  • OS: Ubuntu 24.04, Linux 6.17.0-40-generic; THP left at its default always [madvise] never
  • ROCm 10.0.0 (/opt/rocm/core-10.0)
  • Engine: built from the v0.1.40.1 source (82f46a8c) with -DSTRATA_ENABLE_HIP=ON, CMAKE_HIP_ARCHITECTURES=gfx1201, STRATA_PREFILL_MMQ=ON, STRATA_NATIVE_EXPERTS=ON
  • Model: Qwen3.8-Flash-Next GSQ-RCO IQ2_XS (2 shards, --native), MTP draft layer, expert-profile, --expert-cache auto (7507 of 24576 expert slots resident)
  • Confirmed the fix under test is in this version: commit 0f1390bd (#697) adds __threadfence_system() after the store in doorbell_ring, doorbell_publish and doorbell_publish_res

2. Test conditions

  • Engine config identical to my 0.1.39 reproduction bundle: --prefill 512 --spec 4 --spec-min-p 0.5 --mtp --max-context 131072 --kv int8 --kv-resident 32768 --mmap-experts
  • Upstream defaults only: the harness strips every leftover STRATA_* / HSA_* / GPU_* from the environment; my 0.1.39 workarounds (hipEventQuery polling, STRATA_PREFILL_SINGLE_STREAM) are off (kept on a local branch)
  • One immutable request, all arms: a 39,999-token Chinese needle-in-a-haystack (40,051 tokens rendered), max_tokens: 64, temperature: 0
  • Each run is a fresh server start, one request. "Stall" = the engine's own watchdog line no progress for N s during a request ... - stopping

3. Results — no stall, three of three

run HTTP prompt read speed decode watchdog
1 200 40,051 tok / 275.7 s 145.3 tok/s 41.1 tok/s never fired
2 200 40,051 tok / 267.8 s 149.6 tok/s 45.8 tok/s never fired
3 200 40,051 tok / 265.9 s 150.6 tok/s 42.9 tok/s never fired

"no progress" appears 0 times in all three engine logs and the watchdog snapshot files are empty. The #697 fence looks like it fixed the stall on this machine — I did not need the THP-off / STRATA_ARENA_PIN_GIB=0 fallback.

(One note: max_tokens: 64 ran out while the model was still reasoning, so the replies were thinking-only completions (choices: null); I did not verify the needle answer itself — the measurement here is the prompt read.)

4. Speed isolation matrix

The baseline read (40,051 tokens at 145–151 tok/s) looked slow for this card, so I ran the same request on the same machine, one variable at a time (one fresh server per arm, all completed, no stall) for your reference:

arm chunk experts WMMA prompt read speed
baseline (3 runs) --prefill 512 --mmap-experts off 265.9–275.7 s 145.3–150.6 tok/s
--prefill auto (2 runs) auto → 8192 tok, 96-slot ring --mmap-experts off 85.1 s / 110.3 s 470.7 / 363.1 tok/s
STRATA_HIP_WMMA=1 512 --mmap-experts on 270.1 s 148.3 tok/s
auto + WMMA auto → 8192 --mmap-experts on 91.1 s 439.5 tok/s
no --mmap-experts 512 — off — OOM-killed
<!-- gh-comment-id:6030035124 --> @s91402001 commented on GitHub (Oct 7, 2026): # Tested 0.1.40.1 on an RX 9070 XT (gfx1201): the 40K prompt completed 3 of 3, no stall — plus a speed-isolation matrix Thank you for the reply and for adding the #697 fence in 0.1.40. I rebuilt the engine from the v0.1.40.1 tag and ran the test you asked for: the long prompt three times, upstream defaults. It completed three of three with no stall, so the THP-off / `STRATA_ARENA_PIN_GIB=0` fallback was not needed. Details and a speed-isolation matrix below. ## 1. Test environment - GPU: 1x AMD Radeon RX 9070 XT 16 GB (gfx1201, RDNA4) - CPU / RAM: AMD Ryzen 7 8745HS (16 cores), 30 GB - OS: Ubuntu 24.04, Linux 6.17.0-40-generic; THP left at its default `always [madvise] never` - ROCm 10.0.0 (`/opt/rocm/core-10.0`) - Engine: built from the v0.1.40.1 source (`82f46a8c`) with `-DSTRATA_ENABLE_HIP=ON`, `CMAKE_HIP_ARCHITECTURES=gfx1201`, `STRATA_PREFILL_MMQ=ON`, `STRATA_NATIVE_EXPERTS=ON` - Model: Qwen3.8-Flash-Next GSQ-RCO **IQ2_XS** (2 shards, `--native`), MTP draft layer, expert-profile, `--expert-cache auto` (7507 of 24576 expert slots resident) - Confirmed the fix under test is in this version: commit `0f1390bd` (#697) adds `__threadfence_system()` after the store in `doorbell_ring`, `doorbell_publish` and `doorbell_publish_res` ## 2. Test conditions - Engine config identical to my 0.1.39 reproduction bundle: `--prefill 512 --spec 4 --spec-min-p 0.5 --mtp --max-context 131072 --kv int8 --kv-resident 32768 --mmap-experts` - Upstream defaults only: the harness strips every leftover `STRATA_*` / `HSA_*` / `GPU_*` from the environment; my 0.1.39 workarounds (hipEventQuery polling, `STRATA_PREFILL_SINGLE_STREAM`) are off (kept on a local branch) - One immutable request, all arms: a 39,999-token Chinese needle-in-a-haystack (40,051 tokens rendered), `max_tokens: 64, temperature: 0` - Each run is a fresh server start, one request. "Stall" = the engine's own watchdog line `no progress for N s during a request ... - stopping` ## 3. Results — no stall, three of three | run | HTTP | prompt read | speed | decode | watchdog | |----:|------|-------------|-------|--------|----------| | 1 | 200 | 40,051 tok / 275.7 s | 145.3 tok/s | 41.1 tok/s | never fired | | 2 | 200 | 40,051 tok / 267.8 s | 149.6 tok/s | 45.8 tok/s | never fired | | 3 | 200 | 40,051 tok / 265.9 s | 150.6 tok/s | 42.9 tok/s | never fired | "no progress" appears 0 times in all three engine logs and the watchdog snapshot files are empty. The #697 fence looks like it fixed the stall on this machine — I did not need the THP-off / `STRATA_ARENA_PIN_GIB=0` fallback. (One note: `max_tokens: 64` ran out while the model was still reasoning, so the replies were thinking-only completions (`choices: null`); I did not verify the needle answer itself — the measurement here is the prompt read.) ## 4. Speed isolation matrix The baseline read (40,051 tokens at 145–151 tok/s) looked slow for this card, so I ran the same request on the same machine, one variable at a time (one fresh server per arm, all completed, no stall) for your reference: | arm | chunk | experts | WMMA | prompt read | speed | |-----|-------|---------|------|-------------|-------| | baseline (3 runs) | `--prefill 512` | `--mmap-experts` | off | 265.9–275.7 s | 145.3–150.6 tok/s | | `--prefill auto` (2 runs) | auto → 8192 tok, 96-slot ring | `--mmap-experts` | off | 85.1 s / 110.3 s | 470.7 / 363.1 tok/s | | `STRATA_HIP_WMMA=1` | 512 | `--mmap-experts` | on | 270.1 s | 148.3 tok/s | | auto + WMMA | auto → 8192 | `--mmap-experts` | on | 91.1 s | 439.5 tok/s | | no `--mmap-experts` | 512 | — | off | — | **OOM-killed** |
Author
Owner

@Niko1221 commented on GitHub (Oct 7, 2026):

Please retest on 0.1.40, which adds a fence on the doorbell ring (#697). Then with THP off and STRATA_ARENA_PIN_GIB=0, and send the log with the stall line. Same cluster as #541, #613.

<!-- gh-comment-id:6037714342 --> @Niko1221 commented on GitHub (Oct 7, 2026): Please retest on 0.1.40, which adds a fence on the doorbell ring (#697). Then with THP off and STRATA_ARENA_PIN_GIB=0, and send the log with the stall line. Same cluster as #541, #613.
Author
Owner

@s91402001 commented on GitHub (Oct 8, 2026):

Reproduced on 0.1.40.1: the stall fires when a desktop client renders on the same GPU (12/12), and never when the desktop is idle (0/23)

Answering your three asks in order. (1) Retested on 0.1.40.1 with the #697 fence (commit 0f1390bd confirmed in my build): with the desktop idle, my original config completes — 3/3 at --prefill 512, 143.7–145.2 tok/s. (2) THP off + STRATA_ARENA_PIN_GIB=0: 3/3 completed, 137.0–145.3 tok/s, THP state recorded per run. (3) Stall lines: I found a deterministic trigger, and the clue was my own observation — start.sh stalls when I run it in the local graphical terminal, but never when I launch it from an SSH session. The difference is not the session: it is whether the desktop is rendering. With one animating window the 40K prompt stalls 12/12; with the desktop idle it completed 0 stalls in 23 runs. Stall lines, thread snapshots and per-run kernel logs are in the attached bundle.

1. Test environment

  • GPU: 1x AMD Radeon RX 9070 XT 16 GB (gfx1201, RDNA4); CPU/RAM: Ryzen 7 8745HS, 30 GB
  • OS: Ubuntu 24.04, Linux 6.17.0-40-generic; loaded amdgpu module 7.1.3.31500000 (DKMS); ROCm user-space 10.0.0
  • Desktop: GNOME on Wayland (mutter + Xwayland), session on seat0
  • Engine: v0.1.40.1 source (82f46a8c), -DSTRATA_ENABLE_HIP=ON, CMAKE_HIP_ARCHITECTURES=gfx1201; fence commit 0f1390bd confirmed (__threadfence_system() after the store in doorbell_ring, doorbell_publish, doorbell_publish_res)
  • Model: Qwen3.8-Flash-Next GSQ-RCO IQ2_XS (--native), MTP draft layer, --expert-cache auto (7507 of 24576 expert slots resident)

2. Test conditions

  • Engine config as in my original report: --expert-cache auto --spec 4 --spec-min-p 0.5 --mtp --max-context 131072 --kv int8 --kv-resident 32768 --mmap-experts — the same KV-streaming setup as #541/#613 — with --prefill as given per run
  • Upstream defaults only (the harness strips leftover STRATA_* / HSA_* / GPU_*); one immutable 40,051-token request (max_tokens: 64, temperature: 0, sha256 2ccf63fd…); each run is a fresh server start
  • Two controlled desktop states: idle (session logged in, no input, no animating window) and load (vkcube rendering continuously — an xcb client, so the path is Vulkan → Xwayland → mutter compositing, ~5% GPU busy)
  • "stall" = the engine's own watchdog line no progress for N s during a request ... - stopping; per run the harness records gpu-samples.jsonl (1 s gpu_busy_percent + load liveness), kernel-window.log (journalctl -k for the run window) and the launching shell's session context

3. The trigger: desktop rendering on the same GPU

All tests, same request, one fresh server per rep, GNOME session logged in throughout:

test launch env desktop --prefill engine env result
desk-load ×3 local graphical terminal env vkcube rendering (~5% busy) auto none 3/3 stall (layer 1 / 2 / 4 of the first chunk)
ssh-load ×3 stripped env -i login env vkcube rendering (~5% busy) auto none 3/3 stall (layer 5 / 28 / 5)
load-512 ×3 local graphical terminal env vkcube rendering 512 none 3/3 stall (layer 46 from token 1024 / 3 from token 512 / 43 from token 0)
load-pin0 ×3 local graphical terminal env vkcube rendering auto STRATA_ARENA_PIN_GIB=0 3/3 stall (layer 3 / 22 / 24)
desk-idle ×3 local graphical terminal env idle (0% busy) auto none 0/3 stall, 319.7–378.8 tok/s
ssh-idle ×3 stripped env -i login env idle (0% busy) auto none 0/3 stall, 283.1–331.2 tok/s

The stall line, identical fingerprint to my original report in all twelve runs:

strata serve: no progress for 60 s during a request (reading the prompt (batched): layer 1 of the prompt chunk from token 0) - stopping the engine so the server starts it again (issue #29)
strata serve: stall report (engine 0.1.40): stage "reading the prompt (batched): layer 1 of the prompt chunk from token 0" for 59 s; 0 layers served since the last finished step (0 = stopped, more = slow)
  verify window (last window, not the current stage): 0 tokens at position 0, host at layer step 1; the GPU rang 0; flags: served 0, plan (A) 0, copies (B) 0
  • gpu-samples.jsonl: card busy sits at 5% the whole request in the load runs and 0% in the idle runs — the only controlled difference
  • watchdog thread snapshots: 2 engine threads parked in kfd_wait_on_events; the engine waits on the GPU, not on the disk (0 threads in D state)
  • kernel-window.log for the stall runs: no amdgpu reset / ring timeout / fault message; the watchdog aborts the engine (exit -6, HTTP 503) and the next request works again — per-request, not a dead GPU

4. Reproduction recipe

  1. GNOME/Wayland logged in on the RX 9070 XT, monitor on
  2. Start one continuously animating window — e.g. vkcube (~5% GPU busy at 60 fps)
  3. Start strata serve with the §2 config (--prefill auto) and send the 40K prompt
  4. The prompt read stops inside the first chunk(s): no progress for 60 s ... layer N of the prompt chunk from token T — 12/12
  5. Close the animating window (desktop idle) → the same request completes — 0/23 stalls with the desktop idle

5. What does not change the outcome

  • launch environment: a clean SSH-like login env and the local graphical terminal env both stall under load and both complete when idle — my earlier "SSH never stalls" impression was really "the desktop is idle when I use SSH"
  • --prefill 512 (my original config): stalls 3/3 under load
  • STRATA_ARENA_PIN_GIB=0: stalls 3/3 under load
  • workaround on this machine until the cause is found: keep the desktop idle (no animating windows) while long prompts run

6. Your retest asks, on 0.1.40.1 with the desktop idle

  • baseline, --prefill 512, upstream defaults, THP default madvise: 3/3 completed, 143.7–145.2 tok/s (default-512-0108-{1,2,3})
  • THP off (never, set via sysfs, recorded per run) + STRATA_ARENA_PIN_GIB=0, --prefill 512: 3/3 completed, 137.0–145.3 tok/s (thpoff-pin0-{1,2,3})
  • across all idle 40K runs no progress appears 0 times; the §3 runs are the stall lines you asked for, now reproducible on demand

7. Speed note

With the desktop idle, --prefill auto completes in 105.7–141.5 s for the 40K prompt (283.1–378.8 tok/s in the six bundled runs; my fastest daytime run was 470.7 tok/s). A 30K run also recalled the needle correctly. Speed-isolation logs (chunk size, WMMA, --mmap-experts OOM) are kept in my internal report — happy to attach them if useful.

8. Log bundle

Attached: followup-01401-upload.zip — 24 runs: the §3 tests desk-load-{1,2,3}, ssh-load-{1,2,3}, load-512-{1,2,3}, load-pin0-{1,2,3}, desk-idle-{1,2,3}, ssh-idle-{1,2,3} and the §6 retests default-512-0108-{1,2,3}, thpoff-pin0-{1,2,3}. Per run: config.json, run-metadata.json (THP/kernel/rocm-smi + launching shell's session context), engine.log, server.log, watchdog-snapshots.jsonl, gpu-samples.jsonl, kernel-window.log, result.json; runtime-snapshots.jsonl only for the twelve stall runs. request.json at the bundle root is the single immutable request used by every run (sha256 2ccf63fd…). Plus dmesg-thpoff-0108.txt, the harness diagnostic_followup_01401.py, and SHA256SUMS.txt.

followup-01401-upload.zip

<!-- gh-comment-id:6064120433 --> @s91402001 commented on GitHub (Oct 8, 2026): # Reproduced on 0.1.40.1: the stall fires when a desktop client renders on the same GPU (12/12), and never when the desktop is idle (0/23) Answering your three asks in order. (1) Retested on 0.1.40.1 with the #697 fence (commit `0f1390bd` confirmed in my build): with the desktop idle, my original config completes — 3/3 at `--prefill 512`, 143.7–145.2 tok/s. (2) THP off + `STRATA_ARENA_PIN_GIB=0`: 3/3 completed, 137.0–145.3 tok/s, THP state recorded per run. (3) Stall lines: I found a deterministic trigger, and the clue was my own observation — `start.sh` stalls when I run it in the local graphical terminal, but never when I launch it from an SSH session. The difference is not the session: it is whether the desktop is rendering. With one animating window the 40K prompt stalls 12/12; with the desktop idle it completed 0 stalls in 23 runs. Stall lines, thread snapshots and per-run kernel logs are in the attached bundle. ## 1. Test environment - GPU: 1x AMD Radeon RX 9070 XT 16 GB (gfx1201, RDNA4); CPU/RAM: Ryzen 7 8745HS, 30 GB - OS: Ubuntu 24.04, Linux 6.17.0-40-generic; loaded `amdgpu` module `7.1.3.31500000` (DKMS); ROCm user-space 10.0.0 - Desktop: GNOME on Wayland (mutter + Xwayland), session on seat0 - Engine: v0.1.40.1 source (`82f46a8c`), `-DSTRATA_ENABLE_HIP=ON`, `CMAKE_HIP_ARCHITECTURES=gfx1201`; fence commit `0f1390bd` confirmed (`__threadfence_system()` after the store in `doorbell_ring`, `doorbell_publish`, `doorbell_publish_res`) - Model: Qwen3.8-Flash-Next GSQ-RCO IQ2_XS (`--native`), MTP draft layer, `--expert-cache auto` (7507 of 24576 expert slots resident) ## 2. Test conditions - Engine config as in my original report: `--expert-cache auto --spec 4 --spec-min-p 0.5 --mtp --max-context 131072 --kv int8 --kv-resident 32768 --mmap-experts` — the same KV-streaming setup as #541/#613 — with `--prefill` as given per run - Upstream defaults only (the harness strips leftover `STRATA_*` / `HSA_*` / `GPU_*`); one immutable 40,051-token request (`max_tokens: 64`, `temperature: 0`, sha256 `2ccf63fd…`); each run is a fresh server start - Two controlled desktop states: **idle** (session logged in, no input, no animating window) and **load** (`vkcube` rendering continuously — an xcb client, so the path is Vulkan → Xwayland → mutter compositing, ~5% GPU busy) - "stall" = the engine's own watchdog line `no progress for N s during a request ... - stopping`; per run the harness records `gpu-samples.jsonl` (1 s `gpu_busy_percent` + load liveness), `kernel-window.log` (`journalctl -k` for the run window) and the launching shell's session context ## 3. The trigger: desktop rendering on the same GPU All tests, same request, one fresh server per rep, GNOME session logged in throughout: | test | launch env | desktop | `--prefill` | engine env | result | |-----|-----------|---------|-------------|------------|--------| | desk-load ×3 | local graphical terminal env | vkcube rendering (~5% busy) | auto | none | **3/3 stall** (layer 1 / 2 / 4 of the first chunk) | | ssh-load ×3 | stripped `env -i` login env | vkcube rendering (~5% busy) | auto | none | **3/3 stall** (layer 5 / 28 / 5) | | load-512 ×3 | local graphical terminal env | vkcube rendering | 512 | none | **3/3 stall** (layer 46 from token 1024 / 3 from token 512 / 43 from token 0) | | load-pin0 ×3 | local graphical terminal env | vkcube rendering | auto | `STRATA_ARENA_PIN_GIB=0` | **3/3 stall** (layer 3 / 22 / 24) | | desk-idle ×3 | local graphical terminal env | idle (0% busy) | auto | none | **0/3 stall**, 319.7–378.8 tok/s | | ssh-idle ×3 | stripped `env -i` login env | idle (0% busy) | auto | none | **0/3 stall**, 283.1–331.2 tok/s | The stall line, identical fingerprint to my original report in all twelve runs: ``` strata serve: no progress for 60 s during a request (reading the prompt (batched): layer 1 of the prompt chunk from token 0) - stopping the engine so the server starts it again (issue #29) strata serve: stall report (engine 0.1.40): stage "reading the prompt (batched): layer 1 of the prompt chunk from token 0" for 59 s; 0 layers served since the last finished step (0 = stopped, more = slow) verify window (last window, not the current stage): 0 tokens at position 0, host at layer step 1; the GPU rang 0; flags: served 0, plan (A) 0, copies (B) 0 ``` - `gpu-samples.jsonl`: card busy sits at 5% the whole request in the load runs and 0% in the idle runs — the only controlled difference - watchdog thread snapshots: 2 engine threads parked in `kfd_wait_on_events`; the engine waits on the GPU, not on the disk (0 threads in D state) - `kernel-window.log` for the stall runs: no amdgpu reset / ring timeout / fault message; the watchdog aborts the engine (exit -6, HTTP 503) and the next request works again — per-request, not a dead GPU ## 4. Reproduction recipe 1. GNOME/Wayland logged in on the RX 9070 XT, monitor on 2. Start one continuously animating window — e.g. `vkcube` (~5% GPU busy at 60 fps) 3. Start `strata serve` with the §2 config (`--prefill auto`) and send the 40K prompt 4. The prompt read stops inside the first chunk(s): `no progress for 60 s ... layer N of the prompt chunk from token T` — 12/12 5. Close the animating window (desktop idle) → the same request completes — 0/23 stalls with the desktop idle ## 5. What does not change the outcome - **launch environment**: a clean SSH-like login env and the local graphical terminal env both stall under load and both complete when idle — my earlier "SSH never stalls" impression was really "the desktop is idle when I use SSH" - **`--prefill 512`** (my original config): stalls 3/3 under load - **`STRATA_ARENA_PIN_GIB=0`**: stalls 3/3 under load - workaround on this machine until the cause is found: keep the desktop idle (no animating windows) while long prompts run ## 6. Your retest asks, on 0.1.40.1 with the desktop idle - baseline, `--prefill 512`, upstream defaults, THP default `madvise`: **3/3 completed**, 143.7–145.2 tok/s (`default-512-0108-{1,2,3}`) - THP off (`never`, set via sysfs, recorded per run) + `STRATA_ARENA_PIN_GIB=0`, `--prefill 512`: **3/3 completed**, 137.0–145.3 tok/s (`thpoff-pin0-{1,2,3}`) - across all idle 40K runs `no progress` appears 0 times; the §3 runs are the stall lines you asked for, now reproducible on demand ## 7. Speed note With the desktop idle, `--prefill auto` completes in 105.7–141.5 s for the 40K prompt (283.1–378.8 tok/s in the six bundled runs; my fastest daytime run was 470.7 tok/s). A 30K run also recalled the needle correctly. Speed-isolation logs (chunk size, WMMA, `--mmap-experts` OOM) are kept in my internal report — happy to attach them if useful. ## 8. Log bundle Attached: `followup-01401-upload.zip` — 24 runs: the §3 tests `desk-load-{1,2,3}`, `ssh-load-{1,2,3}`, `load-512-{1,2,3}`, `load-pin0-{1,2,3}`, `desk-idle-{1,2,3}`, `ssh-idle-{1,2,3}` and the §6 retests `default-512-0108-{1,2,3}`, `thpoff-pin0-{1,2,3}`. Per run: `config.json`, `run-metadata.json` (THP/kernel/rocm-smi + launching shell's session context), `engine.log`, `server.log`, `watchdog-snapshots.jsonl`, `gpu-samples.jsonl`, `kernel-window.log`, `result.json`; `runtime-snapshots.jsonl` only for the twelve stall runs. `request.json` at the bundle root is the single immutable request used by every run (sha256 `2ccf63fd…`). Plus `dmesg-thpoff-0108.txt`, the harness `diagnostic_followup_01401.py`, and `SHA256SUMS.txt`. [followup-01401-upload.zip](https://github.com/user-attachments/files/33213359/followup-01401-upload.zip)
Author
Owner

@Niko1221 commented on GitHub (Oct 13, 2026):

Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.

If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.

<!-- gh-comment-id:6155937506 --> @Niko1221 commented on GitHub (Oct 13, 2026): Thanks for the report. To keep the tracker current we are closing issues older than three days: [0.1.44](https://github.com/Niko1221/Strata/releases/tag/v0.1.44) is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1. If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.
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#272
No description provided.