[GH-ISSUE #3443] [Engine] gfx1201 (R9700), 0.1.45: watchdog self-stop at the layer-48 completion handshake — GPU rang 48, pool idle, 9 GiB of the engine in swap (class A of #1705, signature of #2049) #1400

Closed
opened 2026-11-04 01:50:59 +07:00 by bsakaguchi · 7 comments
Owner

Originally created by @Faks on GitHub (Oct 20, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3443

Area

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

Desktop app, Terminal or source?

Source (START-HERE.bat, setup.sh or a build)

What happened

Engine 0.1.45, Linux/HIP, gfx1201 (Radeon AI PRO R9700 32 GB): the #29 watchdog stopped the engine with no progress for 60 s during a request (request -1). The stall report shows the device had finished the whole window and rung all 48 layers, the expert pool had nothing in flight, and the host process was 9 GiB deep in swap. The process died by abort() (SIGABRT, core dumped), and the server restarted the engine 2 min 40 s later.

This is not a new signature: it is the layer-48 completion handshake of #2049 and the class-A stall of #1705. Both are closed for age, and docs/DETAILS.md asks for the stall report to be filed, so this is the same stall on a third platform (Linux/HIP, gfx1201) and a newer engine.

How I read it:

  • layer step 48 is one past the last block (this pack has 48), i.e. the completion handshake after the last layer, not a decode step. Same site as #2049.
  • The GPU is alive and done: served 48, plan (A) 48, copies (B) 48, and when the abort path called release_gpu_waits() the device answered in 26 ms. The host side is what never moved.
  • The pool is quiescent: 48 of 48 jobs done, epoch == batch epoch, all 15 workers asleep, host idle 66.7 s.
  • 0 of 41 threads in state D, so it is not a visible blocked read, and the #1407 line (no step finished for %d s, but the file tier is still being read) never appears in the log.
  • Stage request -1 = between requests. The line immediately before the stall was a park, and a slow one: parked 156419 tokens in 5609.5 ms, far outside the ~760 ms median for 150-210K parks in #2049's table. The park completed and logged normally; the stage that stopped is request -1.

Prior occurrences on the same box, same signature: two more on 0.1.41, 2026-10-10 (restarts 15:23:59 and 15:34:48, so aborts at ~15:22 and ~15:33, 11 minutes apart, the cascade shape of #2049). Both stopped in the prompt read with the identical handshake state, host at layer step 48; the GPU rang 48, pool idle 78.9 s, memory: 58030 MiB resident, 3290 MiB in swap, 4519 MiB RAM available. Three aborts, three engines, identical handshake state.

Ruled out:

  • #2065 VRAM floor: VRAM free when this request began: 2660 MiB, well above the 512 MiB warning threshold, and the LOW tag did not print.
  • #1407 slow file tier: the line never appears; 0 of 41 threads in state D.
  • The park path from 0.1.43.1: the park itself completed and logged; the stage that stopped is request -1.
  • A decode/NaN problem: non-finite logits never appears.
  • No KFD trace (unlike #1705): this account cannot read the kernel journal, so I cannot show Evicting process / Restoring pairs. The reclaim evidence is the process's own swap footprint plus the idle-GPU handshake state.

Questions:

  1. Is this the same KFD userptr / host-reclaim class as #750, #920 and #1705 on 0.1.45, or does a completed-but-unreaped window with an idle pool point somewhere else?
  2. On gfx1201 with a buffered expert arena (no --mmap-experts), which workaround first: HSA_USERPTR_FOR_PAGED_MEM=0 (reported as not effective on gfx1201 by HackityAnn in #1705) or GPU_PINNED_MIN_XFER_SIZE=1048576?
  3. Should the watchdog treat GPU rang all 48 layers with the pool idle as progress and re-issue the wait once, instead of aborting? The forced release finished the window in 26 ms, so the work was already done and a restart costs a full 33 GiB model reload.
  4. Is there a supported way to make the park/handshake copy report progress for stage request -1, the way 0.1.43.1 did for the named park stage?

I will A/B the chosen env variable with the same workload and paired timings and report back either way.

Smallest steps or command that reproduce it

Not reproducible on demand. What the three occurrences have in common: a long session at large context with --batch 2, two live slots (78K and 156K tokens in the 2026-10-20 event), plus a multi-GB parked conversation, on a box where the system is already 60+ GiB into swap. The last occurrence began after the park line quoted above; the crash itself is at the next handshake.

Reproduction status

Reproduced locally

Strata version

engine 0.1.45, local HIP build (BUILD.json: source local-hip, archs [gfx1201], src b95137167bd9b751); fork merge of upstream tag v0.1.45 (74f5671a)

Graphics card, memory and system

Radeon AI PRO R9700 32 GB (gfx1201) · 125.7 GiB RAM, 96 GiB swap partition (61-64 GiB in use at the abort), vm.swappiness=10, no zram · Debian 13, kernel 6.12.107+deb13-amd64 · ROCm 7.10.0a20251120 (TheRock pip wheels)

Model, size and settings

Qwen3.8-Flash-Next GSQ-RCO IQ2_XS native pack (68 GB, 48 blocks, 33.02 GiB experts loaded, 15932 cache slots) · 262144 context · --kv int8 --kv-resident 32768 · pictures on · --spec 4 --spec-min-p 0.5 --mtp <rt> --batch-mtp · --batch 2 · --conversation-cache-mib 8192 · --prefill auto:32768 · --vram-reserve-mib 3072 · env STRATA_HIP_WMMA=1, STRATA_HIPBLASLT_TUNING=<gfx1201 100200 table>; HSA_USERPTR_FOR_PAGED_MEM and GPU_PINNED_MIN_XFER_SIZE are NOT set · watchdog defaults (STRATA_WATCHDOG_S=60, STRATA_WATCHDOG_IO_S=600)

Logs

Verbatim from strata-iq2_xs.log, 2026-10-20 16:37:47 EEST (UTC+3):

strata serve: no progress for 60 s during a request (request -1) - stopping the engine so the server starts it again (issue #29)
strata serve: stall report (engine 0.1.45): stage "request -1" for 59 s; 0 layers served since the last finished step (0 = stopped, more = slow)
  VRAM free when this request began: 2660 MiB
  expert pool: epoch 25379158, batch epoch 25379158: 48 of 48 jobs claimed, 48 done; 15 of 15 workers parked, 15 sleeping; mode 0
  expert pool threads: w0=sleeping w1=sleeping w2=sleeping w3=sleeping w4=sleeping w5=sleeping w6=sleeping w7=sleeping w8=sleeping w9=sleeping w10=sleeping w11=sleeping w12=sleeping w13=sleeping w14=sleeping; host idle for 66654 ms
  verify window (last window, not the current stage): 6 tokens at position 156872, host at layer step 48; the GPU rang 48; flags: served 48, plan (A) 48, copies (B) 48
  threads waiting on the disk (state D): 0 of 41
  memory: 35981 MiB resident, 9068 MiB in swap, 3773 MiB RAM available; 4751 major page faults so far
  2 s later:
  expert pool: epoch 25379158, batch epoch 25379158: 48 of 48 jobs claimed, 48 done; 15 of 15 workers parked, 15 sleeping; mode 0
  expert pool threads: w0=sleeping w1=sleeping w2=sleeping w3=sleeping w4=sleeping w5=sleeping w6=sleeping w7=sleeping w8=sleeping w9=sleeping w10=sleeping w11=sleeping w12=sleeping w13=sleeping w14=sleeping; host idle for 68675 ms
  verify window (last window, not the current stage): 6 tokens at position 156872, host at layer step 48; the GPU rang 48; flags: served 48, plan (A) 48, copies (B) 48
  threads waiting on the disk (state D): 0 of 41
  memory: 35098 MiB resident, 9878 MiB in swap, 3408 MiB RAM available; 4751 major page faults so far
strata: released the verify window's GPU waits (#267): the GPU finished in 26 ms

coredumpctl info 213777:

Signal: 6 (ABRT)
PID: 213777 (strata)
Executable: .../llm-engine/strata/engine/strata
Unit: user@1000.service, User Unit: strata@general.service

The server logged the engine had stopped (exit code -6) at 16:39:55 and restarted it at 16:39:59; serving again at 16:40:30. The 30 GB core is still on disk. The full log excerpt with all three aborts, and the two 2026-10-10 stall reports, can be attached if useful.


Authorship disclosure: this report was assembled by the operator's agent from the engine log and coredumpctl on the machine that stalled. Every quoted line is verbatim from strata-iq2_xs.log; the interpretation is mine and is labelled as such where it goes beyond the log.

Originally created by @Faks on GitHub (Oct 20, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3443 ### Area [Engine] (speed, kernels, models, the server and API) ### Desktop app, Terminal or source? Source (START-HERE.bat, setup.sh or a build) ### What happened Engine 0.1.45, Linux/HIP, gfx1201 (Radeon AI PRO R9700 32 GB): the #29 watchdog stopped the engine with `no progress for 60 s during a request (request -1)`. The stall report shows the device had finished the whole window and rung all 48 layers, the expert pool had nothing in flight, and the host process was 9 GiB deep in swap. The process died by `abort()` (SIGABRT, core dumped), and the server restarted the engine 2 min 40 s later. This is not a new signature: it is the layer-48 completion handshake of #2049 and the class-A stall of #1705. Both are closed for age, and `docs/DETAILS.md` asks for the stall report to be filed, so this is the same stall on a third platform (Linux/HIP, gfx1201) and a newer engine. How I read it: - `layer step 48` is one past the last block (this pack has 48), i.e. the completion handshake after the last layer, not a decode step. Same site as #2049. - The GPU is alive and done: `served 48, plan (A) 48, copies (B) 48`, and when the abort path called `release_gpu_waits()` the device answered in 26 ms. The host side is what never moved. - The pool is quiescent: 48 of 48 jobs done, `epoch == batch epoch`, all 15 workers asleep, host idle 66.7 s. - `0 of 41` threads in state D, so it is not a visible blocked read, and the #1407 line (`no step finished for %d s, but the file tier is still being read`) never appears in the log. - Stage `request -1` = between requests. The line immediately before the stall was a park, and a slow one: `parked 156419 tokens in 5609.5 ms`, far outside the ~760 ms median for 150-210K parks in #2049's table. The park completed and logged normally; the stage that stopped is `request -1`. Prior occurrences on the same box, same signature: two more on 0.1.41, 2026-10-10 (restarts 15:23:59 and 15:34:48, so aborts at ~15:22 and ~15:33, 11 minutes apart, the cascade shape of #2049). Both stopped in the prompt read with the identical handshake state, `host at layer step 48; the GPU rang 48`, pool idle 78.9 s, `memory: 58030 MiB resident, 3290 MiB in swap, 4519 MiB RAM available`. Three aborts, three engines, identical handshake state. Ruled out: - #2065 VRAM floor: `VRAM free when this request began: 2660 MiB`, well above the 512 MiB warning threshold, and the LOW tag did not print. - #1407 slow file tier: the line never appears; `0 of 41` threads in state D. - The park path from 0.1.43.1: the park itself completed and logged; the stage that stopped is `request -1`. - A decode/NaN problem: `non-finite logits` never appears. - No KFD trace (unlike #1705): this account cannot read the kernel journal, so I cannot show `Evicting process` / `Restoring` pairs. The reclaim evidence is the process's own swap footprint plus the idle-GPU handshake state. Questions: 1. Is this the same KFD userptr / host-reclaim class as #750, #920 and #1705 on 0.1.45, or does a completed-but-unreaped window with an idle pool point somewhere else? 2. On gfx1201 with a buffered expert arena (no `--mmap-experts`), which workaround first: `HSA_USERPTR_FOR_PAGED_MEM=0` (reported as not effective on gfx1201 by HackityAnn in #1705) or `GPU_PINNED_MIN_XFER_SIZE=1048576`? 3. Should the watchdog treat *GPU rang all 48 layers with the pool idle* as progress and re-issue the wait once, instead of aborting? The forced release finished the window in 26 ms, so the work was already done and a restart costs a full 33 GiB model reload. 4. Is there a supported way to make the park/handshake copy report progress for stage `request -1`, the way 0.1.43.1 did for the named park stage? I will A/B the chosen env variable with the same workload and paired timings and report back either way. ### Smallest steps or command that reproduce it Not reproducible on demand. What the three occurrences have in common: a long session at large context with `--batch 2`, two live slots (78K and 156K tokens in the 2026-10-20 event), plus a multi-GB parked conversation, on a box where the system is already 60+ GiB into swap. The last occurrence began after the park line quoted above; the crash itself is at the next handshake. ### Reproduction status Reproduced locally ### Strata version engine 0.1.45, local HIP build (`BUILD.json`: source `local-hip`, archs `[gfx1201]`, src `b95137167bd9b751`); fork merge of upstream tag v0.1.45 (`74f5671a`) ### Graphics card, memory and system Radeon AI PRO R9700 32 GB (gfx1201) · 125.7 GiB RAM, 96 GiB swap partition (61-64 GiB in use at the abort), `vm.swappiness=10`, no zram · Debian 13, kernel 6.12.107+deb13-amd64 · ROCm 7.10.0a20251120 (TheRock pip wheels) ### Model, size and settings Qwen3.8-Flash-Next GSQ-RCO IQ2_XS native pack (68 GB, 48 blocks, 33.02 GiB experts loaded, 15932 cache slots) · 262144 context · `--kv int8 --kv-resident 32768` · pictures on · `--spec 4 --spec-min-p 0.5 --mtp <rt> --batch-mtp` · `--batch 2` · `--conversation-cache-mib 8192` · `--prefill auto:32768` · `--vram-reserve-mib 3072` · env `STRATA_HIP_WMMA=1`, `STRATA_HIPBLASLT_TUNING=<gfx1201 100200 table>`; `HSA_USERPTR_FOR_PAGED_MEM` and `GPU_PINNED_MIN_XFER_SIZE` are NOT set · watchdog defaults (`STRATA_WATCHDOG_S=60`, `STRATA_WATCHDOG_IO_S=600`) ### Logs Verbatim from `strata-iq2_xs.log`, 2026-10-20 16:37:47 EEST (UTC+3): ```text strata serve: no progress for 60 s during a request (request -1) - stopping the engine so the server starts it again (issue #29) strata serve: stall report (engine 0.1.45): stage "request -1" for 59 s; 0 layers served since the last finished step (0 = stopped, more = slow) VRAM free when this request began: 2660 MiB expert pool: epoch 25379158, batch epoch 25379158: 48 of 48 jobs claimed, 48 done; 15 of 15 workers parked, 15 sleeping; mode 0 expert pool threads: w0=sleeping w1=sleeping w2=sleeping w3=sleeping w4=sleeping w5=sleeping w6=sleeping w7=sleeping w8=sleeping w9=sleeping w10=sleeping w11=sleeping w12=sleeping w13=sleeping w14=sleeping; host idle for 66654 ms verify window (last window, not the current stage): 6 tokens at position 156872, host at layer step 48; the GPU rang 48; flags: served 48, plan (A) 48, copies (B) 48 threads waiting on the disk (state D): 0 of 41 memory: 35981 MiB resident, 9068 MiB in swap, 3773 MiB RAM available; 4751 major page faults so far 2 s later: expert pool: epoch 25379158, batch epoch 25379158: 48 of 48 jobs claimed, 48 done; 15 of 15 workers parked, 15 sleeping; mode 0 expert pool threads: w0=sleeping w1=sleeping w2=sleeping w3=sleeping w4=sleeping w5=sleeping w6=sleeping w7=sleeping w8=sleeping w9=sleeping w10=sleeping w11=sleeping w12=sleeping w13=sleeping w14=sleeping; host idle for 68675 ms verify window (last window, not the current stage): 6 tokens at position 156872, host at layer step 48; the GPU rang 48; flags: served 48, plan (A) 48, copies (B) 48 threads waiting on the disk (state D): 0 of 41 memory: 35098 MiB resident, 9878 MiB in swap, 3408 MiB RAM available; 4751 major page faults so far strata: released the verify window's GPU waits (#267): the GPU finished in 26 ms ``` `coredumpctl info 213777`: ```text Signal: 6 (ABRT) PID: 213777 (strata) Executable: .../llm-engine/strata/engine/strata Unit: user@1000.service, User Unit: strata@general.service ``` The server logged `the engine had stopped (exit code -6)` at 16:39:55 and restarted it at 16:39:59; serving again at 16:40:30. The 30 GB core is still on disk. The full log excerpt with all three aborts, and the two 2026-10-10 stall reports, can be attached if useful. --- *Authorship disclosure: this report was assembled by the operator's agent from the engine log and `coredumpctl` on the machine that stalled. Every quoted line is verbatim from `strata-iq2_xs.log`; the interpretation is mine and is labelled as such where it goes beyond the log.*
Author
Owner

@github-actions[bot] commented on GitHub (Oct 20, 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:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".
  • Fill in "Area".
  • Fill in "Desktop app, Terminal or source?".
  • Fill in "Reproduction status".
  • Fill in "Strata version".
  • Fill in "Graphics card, memory and system".

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:6292561681 --> @github-actions[bot] commented on GitHub (Oct 20, 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: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". - [ ] Fill in "Area". - [ ] Fill in "Desktop app, Terminal or source?". - [ ] Fill in "Reproduction status". - [ ] Fill in "Strata version". - [ ] Fill in "Graphics card, memory and system". 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

@github-actions[bot] commented on GitHub (Oct 20, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6292581857 --> @github-actions[bot] commented on GitHub (Oct 20, 2026): Thanks, this follows the format now.
Author
Owner

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

Not reproduced here. Your numbers (9 GB in swap, 3.7 GB RAM available, an 8 GB conversation cache, a 156K-token park that took 5.6 s instead of 0.76 s) point at host memory pressure, the same class as #1705, #2049, #750 and #920. Please try --conversation-cache-mib 2048 and send dmesg | grep -iE "kfd|amdgpu|oom|evict" from a run. We are not treating "GPU rang all layers, pool idle" as progress: the report shows an engine that was waiting, not a lost wait.

<!-- gh-comment-id:6308098385 --> @Niko1221 commented on GitHub (Oct 21, 2026): Not reproduced here. Your numbers (9 GB in swap, 3.7 GB RAM available, an 8 GB conversation cache, a 156K-token park that took 5.6 s instead of 0.76 s) point at host memory pressure, the same class as #1705, #2049, #750 and #920. Please try `--conversation-cache-mib 2048` and send `dmesg | grep -iE "kfd|amdgpu|oom|evict"` from a run. We are not treating "GPU rang all layers, pool idle" as progress: the report shows an engine that was waiting, not a lost wait.
Author
Owner

@Faks commented on GitHub (Oct 21, 2026):

Thank you for the reply, and the correction is accepted: "GPU rang all layers, pool idle" is an engine that was waiting, not one that lost a wait. My report framed it as a watchdog abort, and that framing was wrong.

Here is what we measured, so you can judge it.

The abort has not recurred. One occurrence in the whole engine log, on 0.1.45. After the upgrade to 0.1.46.1 (upstream v0.2.1.1) there have been 40+ engine starts and no second "no progress for 60 s". The host is also in a different state than when the report was filed: 40 GB available (not 3.7 GB), and the engine itself has VmSwap 0 with VmRSS 45.1 GiB - the 50 GB in swap belongs to other CPU-only llama-servers on this box, not to Strata.

dmesg from a run (the ring buffer only reaches back to 05:46 today, so the 03:00 stall is long gone):

$ sudo dmesg | grep -iE "kfd|amdgpu|oom|evict"
amdgpu: init_user_pages: Failed to get user pages: -1      (1590x, in two bursts)

No OOM, no eviction, no KFD or HMM event, no GPU reset and no ring timeout. The only amdgpu lines are init_user_pages failures, and they line up with the engine's own start-up line:

strata generate: expert arena: cudaHostRegister PORTABLE ok; MAP_HUGETLB unavailable
                (needed 16907 2 MiB pages, vm.nr_hugepages=0)

So the driver is failing to pin the 33 GiB expert arena at every start because this host reserves no hugepages (vm.nr_hugepages=0). That is host configuration, not an engine fault, and it is a different thing from the stall - but it is the only GPU-level noise in the buffer, and it may be worth a line in the troubleshooting docs.

--conversation-cache-mib 2048, measured. We tried it exactly as suggested. With 2048 the engine no longer writes the 4.2 GB snapshot at all:

strata serve: conversation cache: skip parking (snapshot 4199 MiB exceeds available budget)

For the record, the same park with the 8192 we run:

--conversation-cache-mib 8192   parked 234022 tokens in 2853.6 ms; bytes=4403481624
                                parked 234000 tokens in 3755.5 ms

The cost of 2048 is that a 234K conversation is no longer parked: the turn after it is re-read from scratch (about 94 s of prompt reading at 2,400 tok/s) instead of resuming in 3.6 s. Since the abort has not recurred on 0.1.46.1 and the host has 40 GB available, we are keeping 8192 for now - it is one flag away if you would rather have the 2048 behaviour.

What we would need from you. If the stall is worth chasing further, the useful capture is dmesg during a reproduction, and we do not have a reproduction on 0.1.46.1. Two things would help: whether the host-memory-pressure class you mention (#1705, #2049, #750, #920) has a known trigger we can check against, and whether init_user_pages failures are expected on a host without hugepages or a sign of something we should fix. We can reserve the pages this engine asks for (vm.nr_hugepages=16907, 2 MiB pages for the 33 GiB arena) if that is useful for the next run.

<!-- gh-comment-id:6309564615 --> @Faks commented on GitHub (Oct 21, 2026): Thank you for the reply, and the correction is accepted: "GPU rang all layers, pool idle" is an engine that was **waiting**, not one that lost a wait. My report framed it as a watchdog abort, and that framing was wrong. Here is what we measured, so you can judge it. **The abort has not recurred.** One occurrence in the whole engine log, on 0.1.45. After the upgrade to 0.1.46.1 (upstream `v0.2.1.1`) there have been 40+ engine starts and no second "no progress for 60 s". The host is also in a different state than when the report was filed: 40 GB available (not 3.7 GB), and the engine itself has **VmSwap 0** with VmRSS 45.1 GiB - the 50 GB in swap belongs to other CPU-only llama-servers on this box, not to Strata. **dmesg from a run** (the ring buffer only reaches back to 05:46 today, so the 03:00 stall is long gone): ``` $ sudo dmesg | grep -iE "kfd|amdgpu|oom|evict" amdgpu: init_user_pages: Failed to get user pages: -1 (1590x, in two bursts) ``` No OOM, no eviction, no KFD or HMM event, no GPU reset and no ring timeout. The only amdgpu lines are `init_user_pages` failures, and they line up with the engine's own start-up line: ``` strata generate: expert arena: cudaHostRegister PORTABLE ok; MAP_HUGETLB unavailable (needed 16907 2 MiB pages, vm.nr_hugepages=0) ``` So the driver is failing to pin the 33 GiB expert arena at every start because **this host reserves no hugepages** (`vm.nr_hugepages=0`). That is host configuration, not an engine fault, and it is a different thing from the stall - but it is the only GPU-level noise in the buffer, and it may be worth a line in the troubleshooting docs. **`--conversation-cache-mib 2048`, measured.** We tried it exactly as suggested. With 2048 the engine no longer writes the 4.2 GB snapshot at all: ``` strata serve: conversation cache: skip parking (snapshot 4199 MiB exceeds available budget) ``` For the record, the same park with the 8192 we run: ``` --conversation-cache-mib 8192 parked 234022 tokens in 2853.6 ms; bytes=4403481624 parked 234000 tokens in 3755.5 ms ``` The cost of 2048 is that a 234K conversation is no longer parked: the turn after it is re-read from scratch (about 94 s of prompt reading at 2,400 tok/s) instead of resuming in 3.6 s. Since the abort has not recurred on 0.1.46.1 and the host has 40 GB available, we are keeping 8192 for now - it is one flag away if you would rather have the 2048 behaviour. **What we would need from you.** If the stall is worth chasing further, the useful capture is dmesg *during* a reproduction, and we do not have a reproduction on 0.1.46.1. Two things would help: whether the host-memory-pressure class you mention (#1705, #2049, #750, #920) has a known trigger we can check against, and whether `init_user_pages` failures are expected on a host without hugepages or a sign of something we should fix. We can reserve the pages this engine asks for (`vm.nr_hugepages=16907`, 2 MiB pages for the 33 GiB arena) if that is useful for the next run.
Author
Owner

@kp-wang commented on GitHub (Oct 23, 2026):

Same stall on another Linux/HIP gfx1201 box (Radeon AI PRO R9700 32 GB), engine 0.1.46.3 (Strata 0.2.1.4). This one was not under memory pressure: no swap was in use, and 9–10 GiB of RAM was available at every stall.

Setup: Qwen3.8-Flash-Next IQ3_S. Flags: --spec 4 --spec-min-p 0.5 --mtp … --batch-mtp, 3 parallel slots, --max-context 131072 --kv int8 --resident-experts --expert-cache auto --prefill auto:32768 --vram-reserve-mib 1024, conversation cache with 6 slots on disk. Swap max for the unit is 0. The host has 46 GiB of RAM. Traffic is agent sessions with long reused prefixes, 8K–99K tokens.

Frequency: 6 watchdog stops in about 5 hours on 2026-10-23, then none for the next 8 hours. Earlier days had 1–3.

Pattern in every case:

  • The stall happens on the first batched prompt read of a request that follows an MTP decode. In most cases it is a resumed conversation: a cached prefix is reused and the new tokens are read in a batched chunk.
  • The stall report always shows:
    • "GPU rang 48", host at layer step 48;
    • all expert-pool jobs done and every worker sleeping;
    • 0 layers served.
  • On release the engine logs released the verify window's GPU waits (#267): the GPU finished in 0 ms. So the device had finished, and the host was waiting on a completion it had missed.
  • The kernel log has nothing: no amdgpu ring timeout, no reset, no OOM.
time (local) stage at stall RAM available threads in D
08:30 batched prompt: layer 29, chunk from token 9833 10519 MiB 0
09:43 batched prompt: layer 28, chunk from token 21978 9774 MiB 3
10:28 batched prompt, done up to token 85831 9359 MiB 1
11:50 batched prompt, done up to token 98970 — —
12:58 batched prompt: layer 33, chunk from token 63945 9059 MiB 0
13:23 batched prompt: layer 37, chunk from token 7923 9908 MiB 2

In the two 10:28 and 11:50 cases the server's 300 s silence limit (#481) also fired, because writing out the abort took a while. Every stall report on this box (8 since 10-21) showed only 682–750 MiB of VRAM free at request start, below the 1024 MiB reserve.

One full report (13:23), with paths trimmed:

strata serve: no progress for 60 s during a request (reading the prompt (batched): layer 37 of the prompt chunk from token 7923) - stopping the engine so the server starts it again (issue #29)
strata serve: stall report (engine 0.1.46.3): stage "reading the prompt (batched): layer 37 of the prompt chunk from token 7923" for 64 s; 0 layers served since the last finished step (0 = stopped, more = slow)
  VRAM free when this request began: 742 MiB
  expert pool: epoch 719434, batch epoch 719434: 18 of 18 jobs claimed, 18 done; 5 of 5 workers parked, 5 sleeping; mode 0
  expert pool threads: w0=sleeping w1=sleeping w2=sleeping w3=sleeping w4=sleeping; host idle for 148405 ms
  verify window (last window, not the current stage): 4 tokens at position 53760, host at layer step 48; the GPU rang 48; flags: served 48, plan (A) 48, copies (B) 48
  threads waiting on the disk (state D): 2 of 40 (folio_wait_bit_common x2)
  memory: 40281 MiB resident, 0 MiB in swap, 9908 MiB RAM available; 5830 major page faults so far
  2 s later:
  (identical, host idle for 150436 ms)
strata: released the verify window's GPU waits (#267): the GPU finished in 0 ms

The request just before it on the same engine completed normally: 47017-token prompt, 7923 reused + 39094 read, then 6747 tokens generated with MTP.

Separately, on the same day, we had one verify: timed out at layer 29; its GPU waits were released but the GPU did not finish within 5 s (#267), and two more earlier in the week. We're moving to 0.2.3.1 now for the verify-window fix in 0.2.2, and will report back whether the prompt-read stall persists on engine 0.1.48.

There is also a small server-side issue: after an engine restart, GET /metrics sometimes raises ValueError: read length must be non-negative or -1 from conv_log.poll (serve/server.py, metrics → poll), presumably because the stored log offset is now past the end of the new log. It happened 8 times in 2 days.

<!-- gh-comment-id:6367554752 --> @kp-wang commented on GitHub (Oct 23, 2026): Same stall on another Linux/HIP gfx1201 box (Radeon AI PRO R9700 32 GB), engine **0.1.46.3** (Strata 0.2.1.4). This one was **not under memory pressure**: no swap was in use, and 9–10 GiB of RAM was available at every stall. **Setup:** Qwen3.8-Flash-Next IQ3_S. Flags: `--spec 4 --spec-min-p 0.5 --mtp … --batch-mtp`, 3 parallel slots, `--max-context 131072 --kv int8 --resident-experts --expert-cache auto --prefill auto:32768 --vram-reserve-mib 1024`, conversation cache with 6 slots on disk. Swap max for the unit is 0. The host has 46 GiB of RAM. Traffic is agent sessions with long reused prefixes, 8K–99K tokens. **Frequency:** 6 watchdog stops in about 5 hours on 2026-10-23, then none for the next 8 hours. Earlier days had 1–3. **Pattern in every case:** - The stall happens on the first batched prompt read of a request that follows an MTP decode. In most cases it is a resumed conversation: a cached prefix is reused and the new tokens are read in a batched chunk. - The stall report always shows: - "GPU rang 48", host at layer step 48; - all expert-pool jobs done and every worker sleeping; - 0 layers served. - On release the engine logs `released the verify window's GPU waits (#267): the GPU finished in 0 ms`. So the device had finished, and the host was waiting on a completion it had missed. - The kernel log has nothing: no amdgpu ring timeout, no reset, no OOM. | time (local) | stage at stall | RAM available | threads in D | |---|---|---|---| | 08:30 | batched prompt: layer 29, chunk from token 9833 | 10519 MiB | 0 | | 09:43 | batched prompt: layer 28, chunk from token 21978 | 9774 MiB | 3 | | 10:28 | batched prompt, done up to token 85831 | 9359 MiB | 1 | | 11:50 | batched prompt, done up to token 98970 | — | — | | 12:58 | batched prompt: layer 33, chunk from token 63945 | 9059 MiB | 0 | | 13:23 | batched prompt: layer 37, chunk from token 7923 | 9908 MiB | 2 | In the two 10:28 and 11:50 cases the server's 300 s silence limit (#481) also fired, because writing out the abort took a while. Every stall report on this box (8 since 10-21) showed only 682–750 MiB of VRAM free at request start, below the 1024 MiB reserve. One full report (13:23), with paths trimmed: ``` strata serve: no progress for 60 s during a request (reading the prompt (batched): layer 37 of the prompt chunk from token 7923) - stopping the engine so the server starts it again (issue #29) strata serve: stall report (engine 0.1.46.3): stage "reading the prompt (batched): layer 37 of the prompt chunk from token 7923" for 64 s; 0 layers served since the last finished step (0 = stopped, more = slow) VRAM free when this request began: 742 MiB expert pool: epoch 719434, batch epoch 719434: 18 of 18 jobs claimed, 18 done; 5 of 5 workers parked, 5 sleeping; mode 0 expert pool threads: w0=sleeping w1=sleeping w2=sleeping w3=sleeping w4=sleeping; host idle for 148405 ms verify window (last window, not the current stage): 4 tokens at position 53760, host at layer step 48; the GPU rang 48; flags: served 48, plan (A) 48, copies (B) 48 threads waiting on the disk (state D): 2 of 40 (folio_wait_bit_common x2) memory: 40281 MiB resident, 0 MiB in swap, 9908 MiB RAM available; 5830 major page faults so far 2 s later: (identical, host idle for 150436 ms) strata: released the verify window's GPU waits (#267): the GPU finished in 0 ms ``` The request just before it on the same engine completed normally: 47017-token prompt, 7923 reused + 39094 read, then 6747 tokens generated with MTP. Separately, on the same day, we had one `verify: timed out at layer 29; its GPU waits were released but the GPU did not finish within 5 s (#267)`, and two more earlier in the week. We're moving to 0.2.3.1 now for the verify-window fix in 0.2.2, and will report back whether the prompt-read stall persists on engine 0.1.48. There is also a small server-side issue: after an engine restart, `GET /metrics` sometimes raises `ValueError: read length must be non-negative or -1` from `conv_log.poll` (`serve/server.py`, `metrics` → `poll`), presumably because the stored log offset is now past the end of the new log. It happened 8 times in 2 days.
Author
Owner

@kp-wang commented on GitHub (Oct 24, 2026):

Follow-up from my comment above: we moved to 0.2.3.1, engine 0.1.48.1 (built from tag v0.2.3.1, flags unchanged). The prompt-read stall still happens, twice in the first ~10 h on the new engine, and the signature is unchanged:

strata serve: stall report (engine 0.1.48.1): stage "reading the prompt (batched): layer 32 of the prompt chunk from token 10241" for 69 s; 0 layers served since the last finished step (0 = stopped, more = slow)
  VRAM free when this request began: 738 MiB
  verify window (last window, not the current stage): 4 tokens at position 64376, host at layer step 48; the GPU rang 48; flags: served 48, plan (A) 48, copies (B) 48
  memory: 39059 MiB resident, 0 MiB in swap, 9778 MiB RAM available; 3935 major page faults so far

strata serve: stall report (engine 0.1.48.1): stage "reading the prompt (batched), done up to token 44468" for 81 s; 0 layers served since the last finished step (0 = stopped, more = slow)
  VRAM free when this request began: 744 MiB
  verify window (last window, not the current stage): 6 tokens at position 57085, host at layer step 48; the GPU rang 48; flags: served 48, plan (A) 48, copies (B) 48
  memory: 39529 MiB resident, 0 MiB in swap, 9607 MiB RAM available; 4346 major page faults so far

As before:

  • When it happens: the stall comes right after an MTP decode (last verify window complete, GPU rang 48). It hit both a resumed conversation read in chunks and a prompt that was 5 tokens from the end (44468 of 44473).
  • Not memory pressure: there was no swap, about 9.6 GiB of RAM was available, and the kernel log has no amdgpu errors.

The verify-window timeout (#267) has not recurred on 0.1.48.1 yet, but 10 h is too short to call it fixed.

Happy to run a build with extra logging, or an A/B with a specific switch, if that helps; we log every stall automatically now.

<!-- gh-comment-id:6378721313 --> @kp-wang commented on GitHub (Oct 24, 2026): Follow-up from my comment above: we moved to **0.2.3.1, engine 0.1.48.1** (built from tag `v0.2.3.1`, flags unchanged). The prompt-read stall **still happens**, twice in the first ~10 h on the new engine, and the signature is unchanged: ``` strata serve: stall report (engine 0.1.48.1): stage "reading the prompt (batched): layer 32 of the prompt chunk from token 10241" for 69 s; 0 layers served since the last finished step (0 = stopped, more = slow) VRAM free when this request began: 738 MiB verify window (last window, not the current stage): 4 tokens at position 64376, host at layer step 48; the GPU rang 48; flags: served 48, plan (A) 48, copies (B) 48 memory: 39059 MiB resident, 0 MiB in swap, 9778 MiB RAM available; 3935 major page faults so far strata serve: stall report (engine 0.1.48.1): stage "reading the prompt (batched), done up to token 44468" for 81 s; 0 layers served since the last finished step (0 = stopped, more = slow) VRAM free when this request began: 744 MiB verify window (last window, not the current stage): 6 tokens at position 57085, host at layer step 48; the GPU rang 48; flags: served 48, plan (A) 48, copies (B) 48 memory: 39529 MiB resident, 0 MiB in swap, 9607 MiB RAM available; 4346 major page faults so far ``` As before: - **When it happens:** the stall comes right after an MTP decode (last verify window complete, GPU rang 48). It hit both a resumed conversation read in chunks and a prompt that was 5 tokens from the end (44468 of 44473). - **Not memory pressure:** there was no swap, about 9.6 GiB of RAM was available, and the kernel log has no amdgpu errors. The verify-window timeout (#267) has not recurred on 0.1.48.1 yet, but 10 h is too short to call it fixed. Happy to run a build with extra logging, or an A/B with a specific switch, if that helps; we log every stall automatically now.
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Thanks for taking the time to report this.

Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.11. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6659485656 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thanks for taking the time to report this. Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.11. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
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#1400
No description provided.