[GH-ISSUE #1341] serve: a >100k-token prompt deadlocks the pipelined verify-window reader (--pipeline-windows >= 1) - the #29 watchdog aborts the engine and the server reloads the model #543

Closed
opened 2026-11-04 01:43:55 +07:00 by bsakaguchi · 6 comments
Owner

Originally created by @btc1000w on GitHub (Oct 7, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1341

Summary

On engine 0.1.40 (server 0.1.40.1) with a dual-GPU layer split, a prompt of about 120k tokens hangs while "reading the prompt". The engine's own #29 watchdog fires after 60 s, writes a stall dump, and aborts the engine; the server then reloads the model (about 2 minutes) and the request fails. Setting --pipeline-windows 0 makes the same long cold reads pass.

The hang is in the pipelined verify-window prompt reader (read_windows_pl), which is only used when --pipeline-windows >= 1. The engine prints no illegal memory access in this reproduction.

Environment

  • engine 0.1.40, server 0.1.40.1 (82f46a8), Windows 11, CUDA 13.0 release build, compute capability 8.6
  • 2x RTX Laptop (3080 + 3070), 16384 MiB each, driver 616.56; CPU Intel Xeon E5-2680 v4
  • model Qwen3.8-Flash-Next IQ3_XXS (24576 experts, 48 layers)
  • args: --pack ... --native ... --ple-gguf ... --expert-profile ... --expert-cache auto --prefill auto:32768 --spec 4 --spec-min-p 0.70 --mtp ... --max-context 262144 --kv int8 --kv-resident 32768 --vision --vram-reserve-mib 690 --pool-workers 8 --trim-stage-weights --pipeline-windows 2 --layer-split 26
  • 630 MiB of VRAM free with everything loaded; about 34 GB of RAM free -> not an OOM.

Observed

Production, same config: a request with a 129,038-token prompt failed (finish=error, 0 output tokens) and the server reloaded the engine. Earlier the same day a 107,882-token prompt ended with prefill copy_i32: an illegal memory access was encountered (the sticky-label class) plus the #29 watchdog, in the batched reader (stage "reading the prompt (batched): layer 27 of the prompt chunk from token 107882").

Reproduced 2/2 with a cold ~120,000-token prompt (a fresh, uncached prompt; nothing reused):

strata serve: no progress for 60 s during a request (reading the prompt (pipelined verify windows), from token 120013) - stopping the engine so the server starts it again (issue #29)
strata serve: stall report (engine 0.1.40): stage "reading the prompt (pipelined verify windows), from token 120013" for 57 s; 0 layers served since the last finished step (0 = stopped, more = slow)
  expert pool: epoch 0, batch epoch 0: 0 of 0 jobs claimed, 0 done; 8 of 8 workers parked, 8 sleeping; mode 0
  wrote the thread stacks to C:\strata\Strata\strata-stall-16932.dmp (attach it to the issue)
strata: released the verify window's GPU waits (#267): the GPU finished in 0 ms
strata: released the verify window's GPU waits (#267): the GPU finished in 0 ms
strata: released the verify window's GPU waits (#267): the GPU finished in 0 ms
strata: released the verify window's GPU waits (#267): the GPU finished in 0 ms
strata: released the verify window's GPU waits (#267): the GPU did not finish within 5 s
strata: released the verify window's GPU waits (#267): the GPU did not finish within 5 s
strata: released the verify window's GPU waits (#267): the GPU finished in 20 ms
strata: released the verify window's GPU waits (#267): the GPU finished in 20 ms

The second run was identical (for 56 s, dump strata-stall-22140.dmp). The prompt read rate was normal before the hang (120k tokens in about 95 s, ~1260 tok/s), so it is not a slow-read timeout.

Note the expert pool line: 0 of 0 jobs claimed -> no prefill job is running at all; the reader is parked waiting on something that is never signalled, not merely slow.

Instrumentation: the two reproduction runs set CUDA_LAUNCH_BLOCKING=1 and STRATA_PF_STEP_SYNC=1 to localise the stage. The production failures ran with the same config and no instrumentation. Launch blocking normally makes races less likely, which points to a deterministic missing-signal deadlock rather than a timing race.

Suspected cause

The stage label reading the prompt (pipelined verify windows) is emitted only from read_windows_pl (src/program/generate.cpp:8521; the label is at :8522). That reader is selected only when --pipeline-windows >= 1:

// src/program/generate.cpp:8608
if (pipe && pl_pw >= 1 && std::getenv("STRATA_LOGPOS") == nullptr) return read_windows_pl(a, b, e);

with int pl_pw = pipe ? o.pipeline_windows : 0; (generate.cpp:8494). So the deadlock is in the overlapped cross-stage verify-window prompt read. The engine does not report an illegal access in this reproduction, so the prefill copy_i32 label seen in production is the sticky cudaGetLastError() mis-attribution (see src/kernels/cuda/qsa.cu:77) rather than the actual faulting kernel.

The earlier production signature (batched reader, layer 27) may be a sibling manifestation of the same verify-window handshake; I could not attribute it separately.

Workaround (verified)

--pipeline-windows 0: 3/3 cold long reads pass, no fault, no stall, no reload:

prompt tokens result time cached_tokens
121,027 HTTP 200 64.8 s 0
126,027 HTTP 200 68.7 s 0
131,026 HTTP 200 70.8 s 0

(all genuinely cold; --prefill auto:32768 unchanged). Before the change: 2/2 cold ~120k reads stalled.

Trade-off: this gives up the ~+16-21% decode and ~129 MiB of headroom that --pipeline-windows provides (docs/MULTI_GPU.md).

Dumps

strata-stall-16932.dmp, strata-stall-22140.dmp (this reproduction), strata-stall-23716.dmp (production, batched path, layer 27 / token 107882). Happy to attach any of them.

  • #29 (engine watchdog), #267 (verify-window GPU-wait release), #964 (open: dual-GPU + >100k prompt + illegal access + verify-window hang), #1275.
Originally created by @btc1000w on GitHub (Oct 7, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/1341 ## Summary On engine 0.1.40 (server 0.1.40.1) with a dual-GPU layer split, a prompt of about 120k tokens hangs while "reading the prompt". The engine's own #29 watchdog fires after 60 s, writes a stall dump, and aborts the engine; the server then reloads the model (about 2 minutes) and the request fails. Setting `--pipeline-windows 0` makes the same long cold reads pass. The hang is in the **pipelined verify-window prompt reader** (`read_windows_pl`), which is only used when `--pipeline-windows >= 1`. The engine prints no `illegal memory access` in this reproduction. ## Environment - engine 0.1.40, server 0.1.40.1 (82f46a8), Windows 11, CUDA 13.0 release build, compute capability 8.6 - 2x RTX Laptop (3080 + 3070), 16384 MiB each, driver 616.56; CPU Intel Xeon E5-2680 v4 - model Qwen3.8-Flash-Next IQ3_XXS (24576 experts, 48 layers) - args: `--pack ... --native ... --ple-gguf ... --expert-profile ... --expert-cache auto --prefill auto:32768 --spec 4 --spec-min-p 0.70 --mtp ... --max-context 262144 --kv int8 --kv-resident 32768 --vision --vram-reserve-mib 690 --pool-workers 8 --trim-stage-weights --pipeline-windows 2 --layer-split 26` - 630 MiB of VRAM free with everything loaded; about 34 GB of RAM free -> not an OOM. ## Observed Production, same config: a request with a 129,038-token prompt failed (finish=error, 0 output tokens) and the server reloaded the engine. Earlier the same day a 107,882-token prompt ended with `prefill copy_i32: an illegal memory access was encountered` (the sticky-label class) plus the #29 watchdog, in the **batched** reader (`stage "reading the prompt (batched): layer 27 of the prompt chunk from token 107882"`). Reproduced 2/2 with a cold ~120,000-token prompt (a fresh, uncached prompt; nothing reused): ``` strata serve: no progress for 60 s during a request (reading the prompt (pipelined verify windows), from token 120013) - stopping the engine so the server starts it again (issue #29) strata serve: stall report (engine 0.1.40): stage "reading the prompt (pipelined verify windows), from token 120013" for 57 s; 0 layers served since the last finished step (0 = stopped, more = slow) expert pool: epoch 0, batch epoch 0: 0 of 0 jobs claimed, 0 done; 8 of 8 workers parked, 8 sleeping; mode 0 wrote the thread stacks to C:\strata\Strata\strata-stall-16932.dmp (attach it to the issue) strata: released the verify window's GPU waits (#267): the GPU finished in 0 ms strata: released the verify window's GPU waits (#267): the GPU finished in 0 ms strata: released the verify window's GPU waits (#267): the GPU finished in 0 ms strata: released the verify window's GPU waits (#267): the GPU finished in 0 ms strata: released the verify window's GPU waits (#267): the GPU did not finish within 5 s strata: released the verify window's GPU waits (#267): the GPU did not finish within 5 s strata: released the verify window's GPU waits (#267): the GPU finished in 20 ms strata: released the verify window's GPU waits (#267): the GPU finished in 20 ms ``` The second run was identical (`for 56 s`, dump `strata-stall-22140.dmp`). The prompt read rate was normal before the hang (120k tokens in about 95 s, ~1260 tok/s), so it is not a slow-read timeout. Note the expert pool line: **0 of 0 jobs claimed** -> no prefill job is running at all; the reader is parked waiting on something that is never signalled, not merely slow. Instrumentation: the two reproduction runs set `CUDA_LAUNCH_BLOCKING=1` and `STRATA_PF_STEP_SYNC=1` to localise the stage. The production failures ran with the same config and no instrumentation. Launch blocking normally makes races *less* likely, which points to a deterministic missing-signal deadlock rather than a timing race. ## Suspected cause The stage label `reading the prompt (pipelined verify windows)` is emitted only from `read_windows_pl` (src/program/generate.cpp:8521; the label is at :8522). That reader is selected only when `--pipeline-windows >= 1`: ```cpp // src/program/generate.cpp:8608 if (pipe && pl_pw >= 1 && std::getenv("STRATA_LOGPOS") == nullptr) return read_windows_pl(a, b, e); ``` with `int pl_pw = pipe ? o.pipeline_windows : 0;` (generate.cpp:8494). So the deadlock is in the overlapped cross-stage verify-window prompt read. The engine does not report an illegal access in this reproduction, so the `prefill copy_i32` label seen in production is the sticky `cudaGetLastError()` mis-attribution (see src/kernels/cuda/qsa.cu:77) rather than the actual faulting kernel. The earlier production signature (batched reader, layer 27) may be a sibling manifestation of the same verify-window handshake; I could not attribute it separately. ## Workaround (verified) `--pipeline-windows 0`: 3/3 cold long reads pass, no fault, no stall, no reload: | prompt tokens | result | time | cached_tokens | |---|---|---|---| | 121,027 | HTTP 200 | 64.8 s | 0 | | 126,027 | HTTP 200 | 68.7 s | 0 | | 131,026 | HTTP 200 | 70.8 s | 0 | (all genuinely cold; `--prefill auto:32768` unchanged). Before the change: 2/2 cold ~120k reads stalled. Trade-off: this gives up the ~+16-21% decode and ~129 MiB of headroom that `--pipeline-windows` provides (docs/MULTI_GPU.md). ## Dumps `strata-stall-16932.dmp`, `strata-stall-22140.dmp` (this reproduction), `strata-stall-23716.dmp` (production, batched path, layer 27 / token 107882). Happy to attach any of them. ## Related - #29 (engine watchdog), #267 (verify-window GPU-wait release), #964 (open: dual-GPU + >100k prompt + illegal access + verify-window hang), #1275.
Author
Owner

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

Follow-up: a middle path that keeps the decode overlap AND avoids the deadlock

STRATA_LOGPOS already gates the pipelined reader, so the overlap can be kept while the long prompt read goes through the serial path.

From src/program/generate.cpp:

// generate.cpp:8608
if (pipe && pl_pw >= 1 && std::getenv("STRATA_LOGPOS") == nullptr)
    return read_windows_pl(a, b, e);

With STRATA_LOGPOS set, the prompt read falls back to the serial read_windows path (the same one --pipeline-windows 0 uses). The decode overlap is decided independently:

// generate.cpp:9057
const bool pl_want = pipe && pl_pw >= 2 && pl_snap2[0] != nullptr;

and pl_snap2 is allocated from o.pipeline_windows >= 2 (generate.cpp:6215), not from how the prompt was read. The only other use of the variable is the logprob hook:

// generate.cpp:8635-8644
static std::FILE* logpos = []{ const char* p = std::getenv("STRATA_LOGPOS");
    return p != nullptr ? std::fopen(p, "ab") : nullptr; }();
...
if (logpos != nullptr && !ver.window_logprobs(nxt.data(), T, q, logpos_extra, logpos, e))
    return false;

If fopen fails, logpos == nullptr and the whole hook is skipped (no I/O, no cost). Pointing it at a path that does not exist therefore disables the pipelined prompt reader with zero overhead.

Config used

"args": [ ..., "--pipeline-windows", "2", ... ],
"env": { "STRATA_PREFILL_RING": "1024",
         "STRATA_LOGPOS": "C:\\strata\\Strata\\_logpos_disabled_\\x" }

Measured on the affected machine (2x RTX Laptop, Qwen3.8-Flash-Next IQ3_XXS, 262144 context, sm_86, CUDA 13.0, engine 0.1.40, --layer-split 26):

config cold >100k prompt read decode 1K decode 64K
--pipeline-windows 0 3/3 pass 79.5 tok/s 63.1 tok/s
--pipeline-windows 2 2/2 deadlock (stall at "from token 120013") 87.9 tok/s 68.8 tok/s
--pipeline-windows 2 + STRATA_LOGPOS 3/3 pass 92.7 tok/s 65.4 tok/s

The cold rounds were 121,026 / 126,025 / 131,025 prompt tokens with cached_tokens: 0 (a fresh nonce was prefixed each round so the prefix cache always missed); round 1 is the exact prompt that deadlocked 2/2 without STRATA_LOGPOS. Zero fault/restart lines in the engine log across the 3/3 run, and the prefill rate was unchanged (1887 tok/s at 121k, 1841 tok/s at 126k).

Decode numbers are 5-round means from one harness (temperature 0, max_tokens 800, both prompts warmed first with max_tokens 8 so the prefill is not measured). Round-to-round spread is wide and the 64K difference between pw2 and pw2+LOGPOS is inside that noise band; the 1K result is clearly above pw0.

So setting STRATA_LOGPOS to an unopenable path keeps --pipeline-windows 2 for decode while routing the long prompt read through the serial path, which avoids the verify-window handshake deadlock. This is a workaround for operators, not a fix for the deadlock in read_windows_pl itself.

<!-- gh-comment-id:6036129264 --> @btc1000w commented on GitHub (Oct 7, 2026): **Follow-up: a middle path that keeps the decode overlap AND avoids the deadlock** `STRATA_LOGPOS` already gates the pipelined reader, so the overlap can be kept while the long prompt read goes through the serial path. From `src/program/generate.cpp`: ```c // generate.cpp:8608 if (pipe && pl_pw >= 1 && std::getenv("STRATA_LOGPOS") == nullptr) return read_windows_pl(a, b, e); ``` With `STRATA_LOGPOS` set, the prompt read falls back to the serial `read_windows` path (the same one `--pipeline-windows 0` uses). The decode overlap is decided independently: ```c // generate.cpp:9057 const bool pl_want = pipe && pl_pw >= 2 && pl_snap2[0] != nullptr; ``` and `pl_snap2` is allocated from `o.pipeline_windows >= 2` (generate.cpp:6215), not from how the prompt was read. The only other use of the variable is the logprob hook: ```c // generate.cpp:8635-8644 static std::FILE* logpos = []{ const char* p = std::getenv("STRATA_LOGPOS"); return p != nullptr ? std::fopen(p, "ab") : nullptr; }(); ... if (logpos != nullptr && !ver.window_logprobs(nxt.data(), T, q, logpos_extra, logpos, e)) return false; ``` If `fopen` fails, `logpos == nullptr` and the whole hook is skipped (no I/O, no cost). Pointing it at a path that does not exist therefore disables the pipelined prompt reader with zero overhead. **Config used** ```json "args": [ ..., "--pipeline-windows", "2", ... ], "env": { "STRATA_PREFILL_RING": "1024", "STRATA_LOGPOS": "C:\\strata\\Strata\\_logpos_disabled_\\x" } ``` **Measured on the affected machine** (2x RTX Laptop, Qwen3.8-Flash-Next IQ3_XXS, 262144 context, sm_86, CUDA 13.0, engine 0.1.40, `--layer-split 26`): | config | cold >100k prompt read | decode 1K | decode 64K | |---|---|---|---| | `--pipeline-windows 0` | 3/3 pass | 79.5 tok/s | 63.1 tok/s | | `--pipeline-windows 2` | **2/2 deadlock** (stall at "from token 120013") | 87.9 tok/s | 68.8 tok/s | | `--pipeline-windows 2` + `STRATA_LOGPOS` | **3/3 pass** | 92.7 tok/s | 65.4 tok/s | The cold rounds were 121,026 / 126,025 / 131,025 prompt tokens with `cached_tokens: 0` (a fresh nonce was prefixed each round so the prefix cache always missed); round 1 is the exact prompt that deadlocked 2/2 without `STRATA_LOGPOS`. Zero fault/restart lines in the engine log across the 3/3 run, and the prefill rate was unchanged (1887 tok/s at 121k, 1841 tok/s at 126k). Decode numbers are 5-round means from one harness (temperature 0, `max_tokens 800`, both prompts warmed first with `max_tokens 8` so the prefill is not measured). Round-to-round spread is wide and the 64K difference between pw2 and pw2+LOGPOS is inside that noise band; the 1K result is clearly above pw0. So setting `STRATA_LOGPOS` to an unopenable path keeps `--pipeline-windows 2` for decode while routing the long prompt read through the serial path, which avoids the verify-window handshake deadlock. This is a workaround for operators, not a fix for the deadlock in `read_windows_pl` itself.
Author
Owner

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

@btc1000w the two reproduction runs had CUDA_LAUNCH_BLOCKING=1, and that alone hangs the first verify window after any prompt: the launch waits for the graph, which waits for the host. On two L40S it hangs the same way with --pipeline-windows 0, and without it a cold 120k prompt reads fine with 0 and 2; #1383 makes the engine say so at start.

<!-- gh-comment-id:6040601545 --> @ischencheng commented on GitHub (Oct 7, 2026): @btc1000w the two reproduction runs had CUDA_LAUNCH_BLOCKING=1, and that alone hangs the first verify window after any prompt: the launch waits for the graph, which waits for the host. On two L40S it hangs the same way with --pipeline-windows 0, and without it a cold 120k prompt reads fine with 0 and 2; #1383 makes the engine say so at start.
Author
Owner

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

Thanks @btc1000w for the report and the middle-path note. #1383 (@ischencheng) found that CUDA_LAUNCH_BLOCKING=1 alone hangs every verify window: the window's graph waits for flags the host raises after cudaGraphLaunch returns, and a blocking launch returns only when the graph is done. It is in 0.1.41 with the author's credit: the engine says so at start, and the #29 stall line names the variable. We reproduced it on an RTX 3060 (a 2,400-token prompt, one GPU, no layer split): the engine stops after 60 s, the start line and the stall line both name CUDA_LAUNCH_BLOCKING=1.

What we could not reproduce: --pipeline-windows is off on one GPU (it needs a layer split on two), so the pipelined reader itself did not run on our boxes, and the two failures you saw without the variable (the 129k request that ended with an error, and the 107k prefill copy_i32 illegal access in the batched reader) are still open. Could you run one cold 120k prompt on 0.1.41 with CUDA_LAUNCH_BLOCKING and STRATA_PF_STEP_SYNC unset, and attach the stall dump and the engine log if it still stalls?

<!-- gh-comment-id:6059647787 --> @Niko1221 commented on GitHub (Oct 8, 2026): Thanks @btc1000w for the report and the middle-path note. #1383 (@ischencheng) found that `CUDA_LAUNCH_BLOCKING=1` alone hangs every verify window: the window's graph waits for flags the host raises after `cudaGraphLaunch` returns, and a blocking launch returns only when the graph is done. It is in 0.1.41 with the author's credit: the engine says so at start, and the #29 stall line names the variable. We reproduced it on an RTX 3060 (a 2,400-token prompt, one GPU, no layer split): the engine stops after 60 s, the start line and the stall line both name `CUDA_LAUNCH_BLOCKING=1`. What we could not reproduce: `--pipeline-windows` is off on one GPU (it needs a layer split on two), so the pipelined reader itself did not run on our boxes, and the two failures you saw without the variable (the 129k request that ended with an error, and the 107k `prefill copy_i32` illegal access in the batched reader) are still open. Could you run one cold 120k prompt on 0.1.41 with `CUDA_LAUNCH_BLOCKING` and `STRATA_PF_STEP_SYNC` unset, and attach the stall dump and the engine log if it still stalls?
Author
Owner

@krzysztofkuczek commented on GitHub (Oct 9, 2026):

strata-stall-21176.dmp

Another data point on 0.1.41 — same stall shape in the pipelined prompt path, but with a different trigger on the host side (memory pressure, not CUDA_LAUNCH_BLOCKING), and this time the engine stayed up with the slot busy instead of aborting.

Environment

  • engine 0.1.41 (ready-made release build, CUDA 13.0, sm_120), server 0.1.41, Windows 11 build 26200, driver 610.88 (WDDM)
  • 2x RTX 5060 Ti 16 GB, layer split 27, --trim-stage-weights --pipeline-windows 2
  • model: Qwen3.8-Flash-Next UD-Q4_K_XL (arena ~71.7 GiB, VirtualLock'd; WDDM 8 GiB pin cap), --max-context 196608 --kv int8 (full VRAM), --vision (encoder on a third, idle GPU), --pcie-frac 0.00, 11 CPU pool workers
  • CPU: Ryzen 9 3900X (AVX2, no AVX-512), 96 GB RAM
  • no CUDA_LAUNCH_BLOCKING anywhere

What happened

Long agent session (the client resends a ~101k-token context every request). A request with a 101,016-token prompt was in flight when the engine stopped making progress; no engine log lines for ~50 minutes. The stall detector then wrote:

memory: 74448 MiB resident, 109856 MiB committed, 3712 MiB RAM available; 36453357 page faults so far
wrote the thread stacks to strata-stall-21176.dmp (attach it to the issue)
strata: released the verify window's GPU waits (#267): the GPU finished in 0 ms

Notable details:

  • The host was under real memory pressure: total commit 109.9 GiB on 96 GB of physical RAM (browser + agent tooling beside the locked arena), 36M accumulated page faults — the box was paging hard while the engine's own arena could not page.
  • Unlike the abort described in the original report, the engine stayed alive: /health ok, /slots kept reporting is_processing: true, n_prompt_tokens: 101016 for the whole window. The request never finished and the slot never drained until we intervened client-side.
  • During the stall, nvidia-smi sampled GPU0 at a sustained 100% with GPU2 at 0% (three samples 5 s apart), while Windows Task Manager showed ~0% — consistent with a wait kernel burning SM occupancy while waiting for host-raised flags.

Questions this raises for us

  1. Could the pipelined reader be sensitive to any host that is late to raise its flags — a page-fault storm being a slower-motion version of the CUDA_LAUNCH_BLOCKING mechanism #1383 explained (the host raises flags after cudaGraphLaunch returns, and a thrashing host is arbitrarily late)?
  2. After the watchdog released the GPU waits (#267), nothing further happened on that request. Is a released-wait stall supposed to resolve into the #29 abort/reload flow like the original report, or can it wedge in the "slot busy, engine idle" state we saw? If the latter is expected, a policy to abort just the request after the stall dump would recover without losing the model.

Artifacts

  • strata-stall-21176.dmp — the engine-written thread stacks from this stall (attaching via the web UI; ~360 KB)
  • Engine log tail and the request timeline available on request
  • Four more stall dumps from the same machine exist: strata-stall-28796.dmp / strata-stall-30228.dmp (Oct 6, engine 0.1.40, before any report of this class) and strata-stall-18640.dmp (Oct 6 evening) / strata-stall-27496.dmp (Oct 9 morning, 0.1.41) — so the machine has produced five in four days, always in long-context agent sessions. Happy to attach whichever are useful.

Not yet tested

The --pipeline-windows 0 / STRATA_LOGPOS serial-reader fallback on this exact workload; we can run the A/B on demand if it would help pin the reader.

<!-- gh-comment-id:6083183676 --> @krzysztofkuczek commented on GitHub (Oct 9, 2026): [strata-stall-21176.dmp](https://github.com/user-attachments/files/33255938/strata-stall-21176.dmp) Another data point on 0.1.41 — same stall shape in the pipelined prompt path, but with a different trigger on the host side (memory pressure, not `CUDA_LAUNCH_BLOCKING`), and this time the engine stayed up with the slot busy instead of aborting. **Environment** - engine **0.1.41** (ready-made release build, CUDA 13.0, sm_120), server 0.1.41, Windows 11 build 26200, driver 610.88 (WDDM) - 2x RTX 5060 Ti 16 GB, layer split 27, `--trim-stage-weights --pipeline-windows 2` - model: Qwen3.8-Flash-Next **UD-Q4_K_XL** (arena ~71.7 GiB, VirtualLock'd; WDDM 8 GiB pin cap), `--max-context 196608 --kv int8` (full VRAM), `--vision` (encoder on a third, idle GPU), `--pcie-frac 0.00`, 11 CPU pool workers - CPU: Ryzen 9 3900X (AVX2, no AVX-512), **96 GB RAM** - no `CUDA_LAUNCH_BLOCKING` anywhere **What happened** Long agent session (the client resends a ~101k-token context every request). A request with a 101,016-token prompt was in flight when the engine stopped making progress; no engine log lines for ~50 minutes. The stall detector then wrote: ``` memory: 74448 MiB resident, 109856 MiB committed, 3712 MiB RAM available; 36453357 page faults so far wrote the thread stacks to strata-stall-21176.dmp (attach it to the issue) strata: released the verify window's GPU waits (#267): the GPU finished in 0 ms ``` Notable details: - The host was under real memory pressure: total commit **109.9 GiB on 96 GB of physical RAM** (browser + agent tooling beside the locked arena), 36M accumulated page faults — the box was paging hard while the engine's own arena could not page. - Unlike the abort described in the original report, **the engine stayed alive**: `/health` ok, `/slots` kept reporting `is_processing: true, n_prompt_tokens: 101016` for the whole window. The request never finished and the slot never drained until we intervened client-side. - During the stall, `nvidia-smi` sampled GPU0 at a sustained **100%** with GPU2 at **0%** (three samples 5 s apart), while Windows Task Manager showed ~0% — consistent with a wait kernel burning SM occupancy while waiting for host-raised flags. **Questions this raises for us** 1. Could the pipelined reader be sensitive to *any* host that is late to raise its flags — a page-fault storm being a slower-motion version of the `CUDA_LAUNCH_BLOCKING` mechanism #1383 explained (the host raises flags after `cudaGraphLaunch` returns, and a thrashing host is arbitrarily late)? 2. After the watchdog released the GPU waits (#267), nothing further happened on that request. Is a released-wait stall supposed to resolve into the #29 abort/reload flow like the original report, or can it wedge in the "slot busy, engine idle" state we saw? If the latter is expected, a policy to abort just the request after the stall dump would recover without losing the model. **Artifacts** - `strata-stall-21176.dmp` — the engine-written thread stacks from this stall (attaching via the web UI; ~360 KB) - Engine log tail and the request timeline available on request - Four more stall dumps from the same machine exist: `strata-stall-28796.dmp` / `strata-stall-30228.dmp` (Oct 6, engine 0.1.40, before any report of this class) and `strata-stall-18640.dmp` (Oct 6 evening) / `strata-stall-27496.dmp` (Oct 9 morning, 0.1.41) — so the machine has produced five in four days, always in long-context agent sessions. Happy to attach whichever are useful. **Not yet tested** The `--pipeline-windows 0` / `STRATA_LOGPOS` serial-reader fallback on this exact workload; we can run the A/B on demand if it would help pin the reader.
Author
Owner

@CC-David-CC commented on GitHub (Oct 13, 2026):

btc1000w
https://github.com/Niko1221/Strata/pull/2209
let me know if that worked for you. i spent much longer than i am happy with on this

<!-- gh-comment-id:6137148572 --> @CC-David-CC commented on GitHub (Oct 13, 2026): btc1000w https://github.com/Niko1221/Strata/pull/2209 let me know if that worked for you. i spent much longer than i am happy with on this
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:6156063482 --> @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#543
No description provided.