mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#568
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 @Iokkeh2025 on GitHub (Oct 7, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1407
[gfx1200, 2x RX 9060 XT layer split] prompt-read stalls (watchdog #29 aborts) + run-to-run prefill degradation: fresh prompts slow 3-4x mid-run, file tier re-reads 24-35 GB per request
Environment
Flags: --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp
Fresh 4K-38K prompts: the progress line freezes mid-chunk, the watchdog kills the engine:
[strata] reading the prompt: 16,384 of 38,830 tokens, 495 s so far <- unchanged for 100+ s
strata serve: no progress for 60 s during a request (reading the prompt (batched):
layer 34 of the prompt chunk from token 0) ... (issue #29) -> exit -6
While frozen: both GPUs at 100% busy, 3 threads in D state at lock_mm_and_find_vma, 2 at kfd_wait_on_events, MemAvailable ~17 GB (no OOM). One run also hit verify: timed out at layer 8 (#267); an earlier pre-0.1.40.2 run wedged fully (empty HTTP reply, needed a kill). Freezes only ever occurred during the prompt pass, never decode.
With STRATA_IO_PREFETCH=1 a full bench completed with no stalls (one data point — the prefetch path may be bypassing the fault storm).
file tier I/O this request: the OS read 34,889.1 MB from storage (255,655 major faults)
for 89,694.7 MB of expert reads
file tier I/O this request: the OS read 24,306.9 MB ... page cache held 0.0 MB at the read
io prefetch: 917 read ahead (1329.3 MB by pread), 0 used, 0 unused
page cache held 0.0 MB even though ~17-20 GB is reclaimable — layer evictions (FADV_DONTNEED) make every request cold; 562 GB cumulative read for ~40 requests. Also 0 used / 0 unused for read-ahead looks like consumed preads aren't accounted for.
bench_prefill.py, back-to-back, engine otherwise idle:
Directional, not random: first two prompts fast, last two 3-4x slower. Follow-ups inherit it — 114-tok follow-up after a 4,210 fresh = 56-59 tok/s, after an 8,830 fresh = 15-17 tok/s. A large fresh prompt seems to leave the file tier re-streaming what it just evicted.
Ruled out
OOM (none in journalctl), NVMe errors (SMART pass, 1.5 GB/s reads), GPU Xid/HSA errors (none in dmesg), VRAM exhaustion (~890 MiB free at load), hipBLASLt table mismatch (confirmed loaded each start).
Notes
Questions
Happy to run A/B cells o
@Niko1221 commented on GitHub (Oct 8, 2026):
Thanks, this is a useful report. What we can say:
STRATA_WATCHDOG_IO_S, 0 turns it off) and prints a line saying so. A real hang still stops at the old limit.For 32 GB of RAM with a 39 GB mmap pack, your own finding is the cheapest fix:
STRATA_IO_PREFETCH=1. We have not added a startup recommendation for it. Could you retest on 0.1.41 withSTRATA_IO_STATS=1, with and withoutSTRATA_IO_PREFETCH=1, 3+ interleaved runs of the 4,210 / 8,830-token trials?@Iokkeh2025 commented on GitHub (Oct 8, 2026):
A/B test results: STRATA_IO_PREFETCH on/off, v0.1.41, 32 GB RAM
Tested on v0.1.41 with STRATA_IO_STATS=1, 3 interleaved runs of 4,210 / 8,830-token prompts, engine otherwise idle. All 18 runs completed with zero crashes.
Conclusion: IO_PREFETCH provides NO measurable benefit on this system. The on/off numbers are statistically identical across all 3 runs.
What actually fixed the stalls: the 0.1.41 watchdog change. The old watchdog killed the engine during slow prompt reads (fault storm on the mmap file tier). The new watchdog watches major-fault count and bytes read, and waits up to 10x the limit while they grow. With that fix, the same hardware that was crashing every 4-8 requests now completes 18 consecutive runs without a single crash.
Recommendation: do not add a startup recommendation for IO_PREFETCH on 32 GB systems — it does not help. The watchdog fix in 0.1.41 is the real solution.
Testing note for users: close all other applications before benchmarking Strata. The best-case scenario is to SSH into the Strata server machine from a phone or laptop, leaving the server machine fully dedicated to the engine. Running a desktop session, browser, or other GPU/RAM-consuming apps alongside Strata will materially affect results.
@Vop3p commented on GitHub (Oct 9, 2026):
On the stall half of this (not the RAM re-read half, which I have no data on): the same symptom on a 2x RX 6900 XT (gfx1030) layer split - the #29 watchdog firing while reading a long prompt, expert pool idle - traced to the GPU's GFX power gating interacting with the adaptive expert swaps' SDMA copies (#884). Two things that made it go away there, both cheap to try on gfx1200:
STRATA_HIP_ADAPT_KERNEL_COPY=1(0.1.41): the swaps copy with a kernel instead of SDMA. Stock 0.1.41 split, 128K prompts: 0 stalls with it, no measurable speed cost (#1657,split-stock-kc)./sys/kernel/debug/dri/N/amdgpu_gfxoff(a reference count; read it back, 0 means off): 10/10 stalls to 0/10 on this box, same speed.If either one changes your stall rate, that would say whether the gfx1200 stall is the same animal.
Developed with an AI coding assistant; every number above was measured on 2x RX 6900 XT (gfx1030, PCIe 4.0 x8 each) / Ryzen 5 5600X, ROCm 10.0.
@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.
If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.