[GH-ISSUE #4131] [Engine] dsv41 0.1.51: DS4_STORE_ZC=1 hard-hangs the engine on an ordinary small prompt - CUDA context silently lost, /health stays ok (RTX 4090, Windows) #1808

Closed
opened 2026-11-04 01:54:14 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @handmade0octopus on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4131

Setup (all numbers mine, measured today on one box)

  • Windows 11, RTX 4090 D 48 GB, Ryzen 5 3600 (Zen 2), 128 GB RAM, model on a TLC NVMe
  • DeepSeek-V4.1-Flash-1017, ISTA-DASLab GSQ-RCO IQ1_M (1.75 bpw) pack, --max-context 262144
  • engine: official dsv41 0.1.51 package (BUILD.json: f-0243-rel 562a0c2ed), served by serve/server.py 0.2.6
  • flags: --pack … --dspark auto --dspark-conf 0.65 --cpu-threads 12 --ssd-cache 80
  • env: DS4_STORE_ZC=1, DS4_STORE_ZC_FRAC=100

What worked

Boot is clean (all 80 GB of store chunks register, RAM store: chunk host … -> device …), small prompts answer, and a 32,768-token prompt + 2,048 generated benchmark runs at 19.8–23.2 tok/s decode. For contrast, the same 0.1.51 without the ZC env does 12.9–15.3 tok/s here — the CPU lane is a slow Zen 2, so DS4_STORE_ZC is the only fast configuration on this box.

The failure

Roughly 40 minutes into ordinary use (a handful of requests; the last one a small prompt), the engine stopped making progress and never recovered:

  • engine process CPU time frozen (0.00 s across 10 s samples), no new engine stderr lines
  • every further HTTP request queues forever; /health keeps returning 200 {"loaded": true} the whole time
  • the engine's 48 GB VRAM allocation is silently released (nvidia-smi total used drops to ~0.7 GB; the engine is no longer listed in nvidia-smi --query-compute-apps)
  • process working set collapses ~78 GB → ~26 GB (commit stays ~126 GB)
  • no TDR event in the System log, no WER entry; the process stays alive comatose and can only be killed

I did not get a second hang: the same config had served benchmarks earlier the same day without incident, and after the hang I moved this box back to a 0.1.49.2-based build (device-readable pinned-copy zero-copy), which has run for hours without it.

What I did not test

A minimal reproducer; other DS4_STORE_ZC_FRAC values after the hang (FRAC=50 was only benchmarked for speed: 16.7–19.9 tok/s vs 19.8–23.2 at FRAC=100); Linux; other GPUs; whether the --ssd-cache size matters (80 GB holds this pack's whole CPU lane).

Suspect (unconfirmed static analysis, read from the 0.2.6 source)

The store zero-copy path publishes per-layer device visibility at window boundaries (l.zc / zc_tab) while the store can in parallel take visible slots back (the reserve reclaim) and grow/register new arena chunks in the background. If the device side dereferences a chunk that was unregistered, on WDDM that kills the context silently — which would match the observed CPU 0% + VRAM released + no TDR, with the server thread then blocked forever in a driver call.

Ask

Is DS4_STORE_ZC known-broken on Windows/WDDM, or is there a debug env/build to catch the device-side fault? This box is otherwise a good ZC candidate (ZC is +50–70% decode over the CPU lane here), so I am happy to run a debug build or targeted tests.

Originally created by @handmade0octopus on GitHub (Oct 25, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4131 ## Setup (all numbers mine, measured today on one box) - Windows 11, RTX 4090 D 48 GB, Ryzen 5 3600 (Zen 2), 128 GB RAM, model on a TLC NVMe - DeepSeek-V4.1-Flash-1017, ISTA-DASLab GSQ-RCO IQ1_M (1.75 bpw) pack, `--max-context 262144` - engine: official dsv41 **0.1.51** package (`BUILD.json`: `f-0243-rel 562a0c2ed`), served by `serve/server.py` 0.2.6 - flags: `--pack … --dspark auto --dspark-conf 0.65 --cpu-threads 12 --ssd-cache 80` - env: `DS4_STORE_ZC=1`, `DS4_STORE_ZC_FRAC=100` ## What worked Boot is clean (all 80 GB of store chunks register, `RAM store: chunk host … -> device …`), small prompts answer, and a 32,768-token prompt + 2,048 generated benchmark runs at 19.8–23.2 tok/s decode. For contrast, the same 0.1.51 **without** the ZC env does 12.9–15.3 tok/s here — the CPU lane is a slow Zen 2, so `DS4_STORE_ZC` is the only fast configuration on this box. ## The failure Roughly 40 minutes into ordinary use (a handful of requests; the last one a small prompt), the engine stopped making progress and never recovered: - engine process CPU time frozen (0.00 s across 10 s samples), no new engine stderr lines - every further HTTP request queues forever; `/health` keeps returning `200 {"loaded": true}` the whole time - the engine's 48 GB VRAM allocation is **silently released** (`nvidia-smi` total used drops to ~0.7 GB; the engine is no longer listed in `nvidia-smi --query-compute-apps`) - process working set collapses ~78 GB → ~26 GB (commit stays ~126 GB) - **no TDR event** in the System log, no WER entry; the process stays alive comatose and can only be killed I did not get a second hang: the same config had served benchmarks earlier the same day without incident, and after the hang I moved this box back to a 0.1.49.2-based build (device-readable pinned-copy zero-copy), which has run for hours without it. ## What I did not test A minimal reproducer; other `DS4_STORE_ZC_FRAC` values after the hang (FRAC=50 was only benchmarked for speed: 16.7–19.9 tok/s vs 19.8–23.2 at FRAC=100); Linux; other GPUs; whether the `--ssd-cache` size matters (80 GB holds this pack's whole CPU lane). ## Suspect (unconfirmed static analysis, read from the 0.2.6 source) The store zero-copy path publishes per-layer device visibility at window boundaries (`l.zc` / `zc_tab`) while the store can in parallel take visible slots back (the `reserve` reclaim) and grow/register new arena chunks in the background. If the device side dereferences a chunk that was unregistered, on WDDM that kills the context silently — which would match the observed CPU 0% + VRAM released + no TDR, with the server thread then blocked forever in a driver call. ## Ask Is `DS4_STORE_ZC` known-broken on Windows/WDDM, or is there a debug env/build to catch the device-side fault? This box is otherwise a good ZC candidate (ZC is +50–70% decode over the CPU lane here), so I am happy to run a debug build or targeted tests.
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:6660059704 --> @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#1808
No description provided.