mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4912] [Engine] dsv41: GPU page fault (SIGABRT) after a pinned 37K-token prompt read on RX 9070 XT #2254
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2254
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @PhialsBasement on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4912
Problem: the DeepSeek engine stopped at "reading the prompt: 36,942 of 37,719 tokens" (the prompt's
pin=checkpoint position) for about 5 minutes, then exited with code -6. The kernel log shows a GPU page fault instrata-dsv41at the start of that stall. The ROCm runtime then wrote a 15 GB GPU core dump into the Terminal folder (gpucore.<pid>), which accounts for about 2 minutes of the stall.Environment:
c62d5e3a), engine package0.1.55-linux-x86_64-hip-rx9070(stock binary)--max-context 1048576,--reserve-mib 2150, envDS4_READERS=4 DS4_READAHEAD_MB=64/v1/chat/completionsReproduce: one occurrence. A 37,719-token prompt with
pin=36942, read from 0 reused tokens. I did not reproduce it on demand: a synthetic 40,100-token prompt with a pin and a 35K-token tail later completed normally on a locally built engine that includes the change below, and a 12,500-token prompt pinned at 11,205 completed on the stock engine.Expected: the prompt finishes reading, or a readable error.
Actual: the server log printed the same progress line ("36,942 of 37,719 tokens") from about 290 s on, then:
There was no OOM in the kernel log. It had this instead (first block of several identical ones):
A shader read (TCP, RW 0) of a page that was mapped but denied. The address is about 3.7 GB above the highest VRAM segment in the GPU core dump, so it looks like host-mapped memory.
Suspected path (unconfirmed static analysis):
PP 36942is printed only after the first feed (36,942 tokens) andcheckpoint(3)return, so the fault came duringfeed_mark(777, slot 1)or from GPU work of the first run that was still queued. The first run is multi-chunk, so it likely ran layer-major (lm_begin), which allocates the pinnedlm_state(about 2.4 GB here) and the RAM layer cachec.lc.lm_endfrees both after synchronizingdevs[di].standc.csonly. Work queued on another stream that still reads them would read freed host memory, which fits the fault above.Proposed change (one line in
lm_end, before the frees):With it, no fault in the sessions since (several 37K-54K-token OpenCode prompts, a 40K-token synthetic one). That is absence of a rare failure, so I would welcome a maintainer's view on whether another stream can still hold work at that point.
DS4_LAYER_MAJOR=0should avoid the path entirely if someone can reproduce it.Reproduction status: observed once in normal use (logs above); the root cause is a hypothesis from reading the code.