mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4052] [Engine] Copy-engine (CCS) job hangs on Arc Pro B60 (xe); driver job-timeout Engine reset plus unrecoverable verify timeout, engine dies (9 events, 0.1.46.3 and 0.1.49.2, 2× Arc Pro B60, --layer-split 25 --stream-experts, prompt and… #1754
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#1754
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 @MaineTim on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4052
Problem
Serving UD-IQ4_XS on two Arc Pro B60 (layer split 25, experts streamed, ~4,586 host-served), a GPU
copy-engine job hangs. The stall is visible as a prompt read or a generation freezing with no
progress for 10–20+ s; after ~20 s the engine logs
verify: timed out at layer N; its GPU waits were released but the GPU did not finish within 5 s (#267)and exits (SIGTERM, exit −15); the serverrestarts the engine. dmesg shows
Engine reset: engine_class=ccs+Timedout job … in strataoncard 0, coredump created. Nine events across three runs: 2 prompt-read + 3 mid-decode on 0.1.46.3,
3 mid-decode + 1 prompt-read on 0.1.49.2 — all on card 0 (layers 0–24, the 3.1 GB/s PCIe link).
Hundreds of other requests in the same sessions ran clean (8.5–38 tok/s).
Environment
bmg-g21), 23.91 GiB each, xe driver, driver string1.17.39758, kernel 7.2.11-1-cachyos, GuC fw 70.72.1.
pcie_frac 0.08), card 1 14.0 GB/s (pcie_frac 0.38) — logged atevery start.
bmg-g21,I8_ESIMDon); same serversycl/serve/server_intel.py --engine strata.--max-context 196607/196608,--stream-experts,--ple-io mmap,--prefill auto,--spec 4(MTP draft),--layer-split 25,ONEAPI_DEVICE_SELECTOR=level_zero:*,gpu: [0,1].prompt chunk auto: 8192 tokens, a 8-slot ring,prompt experts on the fused int8 DPAS products (STRATA_PREFILL_MMQ=auto), prompt path borrows~1,420 cache slots, and
copy engine: the prompt path's expert copies run on the GPU's copy engine (queue group 1), not the compute engine (STRATA_COPY_ENGINE=0 turns it off)(featuresince 0.1.43, default on for Battlemage).
STRATA_VERIFY_NO_HOST=0(4,586–4,588 host-served experts read over PCIe from a pinnedmirror),
STRATA_SPIN_MAX=40000(10/21) /80000(run 2),STRATA_VERIFY_DEVICE_PLAN=1,STRATA_STAGE_TRIM=1,STRATA_STAGER_THREADS=12,SYCL_CACHE_PERSISTENT=0.Reproduce
Start the server on one of these configs and serve an ordinary agentic workload (long
conversations, several 6–110k-token prompts; no fault injection):
9 events in ~300 requests over three runs (2026-10-21, 2026-10-22, 2026-10-24), one server each,
one death per engine instance after the first few; the class survives the engine bump.
Expected
A stalled GPU job recovers, or at worst the request fails cleanly, without an engine death and
driver engine reset.
Actual (exact error, verbatim)
(The 10/21 instance. All other events end with the same line; layers were 8, 6, 15, 4, 5, 10, 4, 15,
6 — all on card 0.)
dmesg, both on card 0 (
xe 0000:06:00.0, Tile0 GT0), one per died engine PID:All events:
The 5-token prompt-read residue is normal (the verify window is up to 6 tokens; healthy reads show
the same line); the anomaly is the read then making no progress for 10–20+ s. Stalls occurred at a
small prompt (7,398) and a huge one (110,840, which made no reportable progress at all) — no
context-size correlation.
Mechanism (from the 0.1.46 sources in this checkout)
(
sycl/src/core/copy_queue.cpp/sycl/include/strata/copy_queue.hpp).strata_ring_timeout()—20 s default (
sycl/src/core/verify.cpp,STRATA_RING_TIMEOUT_Soverrides). Theclient-visible stall is this wait: the GPU is blocked on the stalled copy.
(
release_gpu_waits(5000), #267). It does not — a hung DMA copy does not unblock when thedoorbells are raised. The failure is classified unrecoverable (
serve/server.pyFATAL_PREFIXES); the server SIGTERMs the engine (exit −15) and restarts it.engine and creates a coredump. The exact order of the two detections is not determinable (no
wall-clock anchor).
No "layer … never rang" error, no upload/sync error on window capture, no MTP/draft anomaly — the
window machinery worked; a job it depended on hung.
Why this is not #2500
!×256 / single-token repeatEngine resetSame family (a host↔GPU PCIe hand-off stalling past a timeout on this 2-card expert-streaming
layout), but
STRATA_SPIN_MAX(the #2500 lever) cannot protect a response whose GPU is alreadywedged, and the 40k/80k workaround configs are neither the cause nor a fix.
Coredump (event 2 of 10/21,
local/coredump.txt; complete, byte-faithful capture)ccs3(Class 5 = CCS),Start seqno 34689= the timed-out job. LRC head 84 /tail 168: a small batch mid-flight (84 bytes outstanding). A single 84-byte outstanding CCS
batch is consistent with one pending DMA copy command, not a large multi-batch stream wedged
mid-way.
address cannot be resolved (process gone) and the inlined GuC log is a 337,954-byte slice of the
1.1 MB ring. Two more coredumps from run 3 (deaths 1 and 4) were captured
(
local/failure-coredump-run3-{1,4}.bin) but are not yet examined. The driver deletes dumps atthe next engine start.
Observations (correlations, not proof)
layers where all verify timeouts fired. n = 9, still not causation.
(0.1.45 source,
copy_queue.cpp: Arc A750/i915, "the prompt path hung with it once the stager'scompletion flag became a copy-engine memcpy (4K and 600-token prompts, 10+ minutes, GPU not
hung)"). On Battlemage it is on by default — and has now hung nine times here.
83.9–99 % hit) — a binary job stall, not gradual degradation.
prompt-read stall had no progress line at all. Which copy was in flight during the mid-decode
deaths (stager expert-cache refills vs verify buffers vs prompt copies) is not established.
Reproduction status
Reproduced locally on 0.1.46.3 (5 events) and 0.1.49.2 (4 events), no fault injection, ordinary
workload.
Report produced by Qwen 3.8 under supervision and review of posting human.
@MaineTim commented on GitHub (Oct 25, 2026):
Three new events, wall-clock anchors, and the coredumps examined. Total is now 12 events, all
on card 0: 5 × 0.1.46.3, 7 × 0.1.49.2, across kernels 7.2.11-1 and 7.3.0-4, prompt and decode
paths.
New run (2026-10-25, engine 0.1.49.2,
STRATA_SPIN_MAX=2000000)Same box, same layout; the 80k config with only the spin bound raised to 2,000,000. 84 clean +
3 dying requests; the 3 deaths are this class, all mid-decode, all on card 0:
strata [71367]strata [75839]createdline in fragmentstrata [82609]STRATA_SPIN_MAX: it died three times with the bound at 2,000,000(100× the 80k workaround). Confirms the lever cannot protect a wedged GPU.
uptime -sgap is closed for this boot,and the coredump snapshot times match the journal to the second.
log buffer overflowon card 0 just before the reset;PL2 disabled for channel 0, val 0x00000000on both cards; and an order-9 (512 KB)GFP_ATOMICpage allocation failure inxe_guc_log_snapshot_captureduring coredump creation(Mem-Info shows ~2.5 GB free Normal; fragmentation, not OOM —
gpu_active7.1 GB pinned).Coredumps examined (all four previously uncaptured dumps + the 10/21 reference)
Headers verified against dmesg (seqno and PID match in all four). All five dumps show the
identical shape:
ccs3(Class 5),Start seqno= the timed-out job;5876/5960, and 84/168 on 10/21) — a single small batch mid-flight in every event;
RING_CTL 0x3401,ESR 0,EIR 0,EMR 0xffffffffall masked,IPEHR 0x0e00d003pending,ACTHD 0) — stalled, notfaulted;
broken: 0on both H2G and G2H in all four;[0].error: -19(process gone at snapshot time) in all four.Two corrections/refinements to the report:
GuC log snapshot not allocated!— the GuC log section is missing due to the page allocationfailure above; the rest of the dump (CTB, contexts, job, HW engines) is intact. The death-3
dump is the richest artifact so far: its inlined GuC log slice is 1,409,537 B, larger than
the declared
[LOG].length1,134,592 (the other dumps inline ~334–338 KB of the 1.13 MBring) — newer kernel emits more; unexplained, recorded.
The batch VAs remain unresolvable (processes gone), so why the DMA stalled is still not
determined. Five events, one wedge shape, two boots, three kernel/driver combinations — the
consistency argues against random PCIe noise and toward a specific copy-command shape on this
layout.
Correction — run 3 wall clock
The run-3 coredumps carry kernel snapshot times (21:44:26 and 00:49:15 UTC); the host clock was
running UTC during run 3, so the "engine-log clock 4 h behind host" note was a misdiagnosis —
the log was right and the host timezone was wrong. Run 3's four deaths are at ≈ 21:44 / 22:03 /
22:19 / 00:49 UTC (deaths 2–3 from dmesg uptime against the now-known boot time). The
dmesg↔engine correlation is therefore better anchored than §13.3 recorded.
[GH-ISSUE #4052] [Engine] Copy-engine (CCS) job hangs on Arc Pro B60 (xe); driver job-timeout Engine reset plus unrecoverable verify timeout, engine dies (9 events, 0.1.46.3 and 0.1.49.2, 2× Arc Pro B60,to [GH-ISSUE #4052] [Engine] Copy-engine (CCS) job hangs on Arc Pro B60 (xe); driver job-timeout Engine reset plus unrecoverable verify timeout, engine dies (9 events, 0.1.46.3 and 0.1.49.2, 2× Arc Pro B60,--layer-split 25 --stream-experts, prompt and…--layer-split 25 --stream-experts, prompt and…@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:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.