[GH-ISSUE #5311] [Engine] gpu-unlock'ed RTX 3090: the default PCIe expert path (copy kernel over mapped host memory) hard-freezes the host; --pcie-frac 0 avoids it #3168

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

Originally created by @dpusta on GitHub (Nov 5, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5311

Area

[Engine] (decode PCIe expert share, --pcie-mode auto → fetch_blobs_kernel)

Reproduction status

Reproduced locally

Desktop app, Terminal or source?

Source build, run by serve/server.py as a systemd service.

Strata version

Engine 0.1.56, local build of commit ffa80d7313.

Graphics card, memory and system

  • RTX 3090 24 GB (sm_86), VBIOS 94.02.42.40.A2, 370 W limit, PCIe Gen4 x16
  • Tensor rate unlocked with gpu-unlock 2.0.0 (https://github.com/Zagitta/gpu-unlock, commit 7eb51bc)
  • Ryzen 9 5950X, 64 GB RAM, Arch Linux 6.18.60-1-lts, nvidia open 615.78.08, CUDA 13
  • Model: Qwen3.8-Flash-Next IQ3_S (native pack), --expert-cache auto --prefill auto --spec 4 --kv int8

What happened

On a card unlocked with gpu-unlock, the whole machine hard-locks (black screen, fans max, no log, power button needed) at the first request with a large expert-cache miss burst. In my test script (four 400-token requests in a row: prose, code, repetitive, JSON, each with a fresh random prefix) that's the "prose" → "code" switch, where the hit rate drops from ~97 % to ~71 % and about 10,000 experts take the PCIe share. With the default --pcie-mode auto, fetch_blobs_kernel reads those blobs from mapped pinned host memory with GPU threads.

Looping that request switch on the unlocked card, with only the PCIe option changed:

Option Missed experts reach the GPU via Result
default (auto) copy kernel reading mapped host memory froze on the 1st switch, 5 s after load
--pcie-frac 0 not at all, the CPU pool computes them 30/30 clean, same tok/s
--pcie-mode dma cudaMemcpyAsync on the copy engine (1.1 M blobs) 30/30 clean, same tok/s

Decode speed in the loop (prose/code/repetitive/json, tok/s): --pcie-frac 0 84/102/122/119, --pcie-mode dma 80/99/119/116.

I'm running --pcie-frac 0 rather than dma because of #5093.

Not established: the fast trigger was not run on a stock (non-unlocked) boot. Stock boots passed 2 longer benchmark runs (7.4 min, 4 of these switches) without a freeze, and 15 min of synthetic cuBLAS GEMM, TF32 and cudaMemcpy DMA stress on the unlocked card did not freeze either. Matching reports on the gpu-unlock side: Zagitta/gpu-unlock#303 (4× 3090, same model under vLLM, host freeze) and Zagitta/gpu-unlock#137.

Proposed behavior

When gpu-unlock has unlocked the engine's card (/sys/module/gpu_unlock/parameters/targets names its PCI address, or is all), start with the PCIe share off, or default --pcie-mode away from the copy kernel once #5096 lands. Print one log line saying why, and keep the explicit flags as overrides.

Open to a different approach (a docs note in the gpu-unlock section, or only a warning) if you'd rather not special-case it.

Evidence: I have the engine logs of all three runs (the default run up to the freeze, both 30-loop runs) and the loop script, and can attach them if useful.

Originally created by @dpusta on GitHub (Nov 5, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5311 ### Area [Engine] (decode PCIe expert share, `--pcie-mode auto` → `fetch_blobs_kernel`) ### Reproduction status Reproduced locally ### Desktop app, Terminal or source? Source build, run by `serve/server.py` as a systemd service. ### Strata version Engine 0.1.56, local build of commit ffa80d73133ea5c548aefe57889a16e8085a938f. ### Graphics card, memory and system - RTX 3090 24 GB (sm_86), VBIOS 94.02.42.40.A2, 370 W limit, PCIe Gen4 x16 - Tensor rate unlocked with gpu-unlock 2.0.0 (https://github.com/Zagitta/gpu-unlock, commit 7eb51bc) - Ryzen 9 5950X, 64 GB RAM, Arch Linux 6.18.60-1-lts, nvidia open 615.78.08, CUDA 13 - Model: Qwen3.8-Flash-Next IQ3_S (native pack), `--expert-cache auto --prefill auto --spec 4 --kv int8` ## What happened On a card unlocked with gpu-unlock, the whole machine hard-locks (black screen, fans max, no log, power button needed) at the first request with a large expert-cache miss burst. In my test script (four 400-token requests in a row: prose, code, repetitive, JSON, each with a fresh random prefix) that's the "prose" → "code" switch, where the hit rate drops from ~97 % to ~71 % and about 10,000 experts take the PCIe share. With the default `--pcie-mode auto`, `fetch_blobs_kernel` reads those blobs from mapped pinned host memory with GPU threads. Looping that request switch on the unlocked card, with only the PCIe option changed: | Option | Missed experts reach the GPU via | Result | |---|---|---| | default (`auto`) | copy kernel reading mapped host memory | froze on the 1st switch, 5 s after load | | `--pcie-frac 0` | not at all, the CPU pool computes them | 30/30 clean, same tok/s | | `--pcie-mode dma` | `cudaMemcpyAsync` on the copy engine (1.1 M blobs) | 30/30 clean, same tok/s | Decode speed in the loop (prose/code/repetitive/json, tok/s): `--pcie-frac 0` 84/102/122/119, `--pcie-mode dma` 80/99/119/116. I'm running `--pcie-frac 0` rather than `dma` because of #5093. Not established: the fast trigger was not run on a stock (non-unlocked) boot. Stock boots passed 2 longer benchmark runs (7.4 min, 4 of these switches) without a freeze, and 15 min of synthetic cuBLAS GEMM, TF32 and `cudaMemcpy` DMA stress on the unlocked card did not freeze either. Matching reports on the gpu-unlock side: Zagitta/gpu-unlock#303 (4× 3090, same model under vLLM, host freeze) and Zagitta/gpu-unlock#137. ### Proposed behavior When gpu-unlock has unlocked the engine's card (`/sys/module/gpu_unlock/parameters/targets` names its PCI address, or is `all`), start with the PCIe share off, or default `--pcie-mode` away from the copy kernel once #5096 lands. Print one log line saying why, and keep the explicit flags as overrides. Open to a different approach (a docs note in the gpu-unlock section, or only a warning) if you'd rather not special-case it. Evidence: I have the engine logs of all three runs (the default run up to the freeze, both 30-loop runs) and the loop script, and can attach them if useful.
Author
Owner

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

  • Fill in "Reproduction status".

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:6660492617 --> @github-actions[bot] commented on GitHub (Nov 5, 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: - [ ] Fill in "Reproduction status". 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 (Nov 5, 2026):

Thanks, this follows the format now.

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

@b1twise commented on GitHub (Nov 6, 2026):

So you unlocked your card and now it started crashing? I'm not sure this is a Strata issue or at least a general condition for all cards that are unlocked. It seems specific to your machine at this point. Did Strata work just fine before you unlocked it?

<!-- gh-comment-id:6688168799 --> @b1twise commented on GitHub (Nov 6, 2026): So you unlocked your card and now it started crashing? I'm not sure this is a Strata issue or at least a general condition for all cards that are unlocked. It seems specific to your machine at this point. Did Strata work just fine before you unlocked it?
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#3168
No description provided.