mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2194] SYCL, Arc A770 (xe): decode intermittently never starts - host waits in Verifier::run on a queue that does not drain, RSS grows until OOM #874
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#874
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 @aslater3 on GitHub (Oct 12, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2194
Hardware: Arc A770 16 GB (Alchemist,
xe), Linux 7.0, oneAPI 2026.1 (JIT build), Ubuntu 26.04.1, compute runtime (NEO,libze-intel-gpu1) 26.05.37020.3, Ryzen 7 3800X, 30 GB RAM.Build:
mainata0116b27+ #2190 (without it this card gets 0 expert-cache slots and cannot start this config).Config: Coder IQ1_M,
--pack ... --native ... --ple-gguf ... --mtp ... --expert-profile <24-trace profile> --expert-cache auto --resident-experts --max-context 131072 --kv int8 --kv-resident 20480 --vram-reserve-mib 1200 --prefill-borrow --prefill auto --spec 4 --spec-min-p 0.5 --adapt-every 8 --tokens-file <8K or 2K prompt> --greedy --max-new 256 --stats, envSTRATA_VERIFY_STEPPED=1 STRATA_RESIDENT_HEADROOM_GIB=5..7 UR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS=1,memlockunlimited.What happens
Intermittently, decode never makes progress. The prompt is read normally, then the log stops after
(once it stopped later, after
position 8158, 171 tokens, 64 rounds). The host thread spins at ~90% CPU, the process RSS keeps growing (~17-18 GB anon at start of decode, 19.4-20.4 GB at the end) until the kernel OOM killer kills it after 5-8 minutes. Nothing fromxein the kernel log (no GT reset, no job timeout).Stack of the main thread in the hang (gdb, two samples a minute apart, identical):
The 7
ExpertPool::workerthreads are parked inpthread_cond_wait; the 32 stager threads and the 64DirectFilereaders are idle. So the host waits for a queue that never drains: something in the window never completes.How often
Same machine, same session, isolated runs (each in its own systemd unit):
main+ #2190, default settings: 6 of 7 runs hung (8K and 2K prompts). Three more runs withSTRATA_DOORBELL_CHECK=1,STRATA_LEND_MIRROR=0andSTRATA_VERIFY_STEPPED=0(one each) finished.Not tested
STRATA_VERIFY_STEPPED=0repeatedly (one run finished, 14.1 tok/s), i915, other Alchemist cards.Happy to run anything that would narrow it down (a debug build,
ZE_DEBUG, a specific env switch).🤖 Generated with Claude Code
@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks for the detailed report and the stacks; they pointed straight at it.
I reproduced it on an Arc A750 (Alchemist, i915), IQ3_XXS,
--resident-experts --spec 4 --mtp --adapt-every 8,STRATA_VERIFY_STEPPED=1, a 4K prompt:STRATA_PIPE_HELPER_SIBLING=1, your pipelined-helper path).STRATA_WINDOW_SYNC=0, 1 of 6 runs hung at the first decode window with your stack:sched_yield<-libze_intel_gpu<-urQueueFinish<-queue_impl::wait<- the stepped serve inVerifier::run. Two gdb samples a minute apart were identical, and nothing appeared in dmesg.STRATA_WINDOW_SYNCdrains the other queues before each decode window. It was added for the A750's version of this failure: a window launched behind work still in flight on another queue never started. Its default is 1 on i915 and 0 everywhere else, so your A770 under xe runs without it.Could you try
STRATA_WINDOW_SYNC=1with your config? The fix in 0.1.44 (out now) makes it the default on every Alchemist card, whatever the driver. Battlemage keeps today's behaviour.One thing did not reproduce here: the RSS growth during the hang. RSS stayed flat on i915 (60.4 GB the whole time). If it hangs again, two
cat /proc/<pid>/smaps_rollupa minute apart would show whether the growth is anonymous memory or file pages.@aslater3 commented on GitHub (Oct 14, 2026):
Thanks — that was it. Same A770 (xe), same config as above, each run in its own process, 8K prompt, 256 tokens, 2026-10-14:
a0116b27+ #2190 (noSTRATA_WINDOW_SYNC)a0116b27+ #2190,STRATA_WINDOW_SYNC=1v0.1.44.1(296b59d2), defaultsOutput ids identical across all of them (
72b762d5b2a3). 18 runs in this session with 0.1.44.1 orWINDOW_SYNC=1(including the ones below on the open PRs), none hung. So the fix covers this card; I think this can be closed.On the RSS growth: since nothing hung I have no smaps from a hang. For reference, a normal run sampled every 60 s (
smaps_rollup, 0.1.44.1, during decode): Rss 16.3 GB = Pss_Anon 12.7 GB + Pss_File 3.6 GB, Locked 11.6 GB. My guess is that the growth during the earlier hangs was file pages (the GGUF in place being faulted in by the stager/lookahead while the window never drained) rather than a leak, but I can't confirm it now. If it comes back I'll post twosmaps_rollupsamples.🤖 Generated with Claude Code
@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for the report. This is fixed in 0.2.0-beta (or an earlier release), and we're closing it as part of the tracker reset for 0.2.0-beta.
If it still happens on 0.2.0-beta, add the area prefix to the title ([Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]), put the Strata version and your hardware in the issue form fields, and comment
/reopen. A check runs and reopens it.