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#1400
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 @Faks on GitHub (Oct 20, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3443
Area
[Engine] (speed, kernels, models, the server and API)
Desktop app, Terminal or source?
Source (START-HERE.bat, setup.sh or a build)
What happened
Engine 0.1.45, Linux/HIP, gfx1201 (Radeon AI PRO R9700 32 GB): the #29 watchdog stopped the engine with
no progress for 60 s during a request (request -1). The stall report shows the device had finished the whole window and rung all 48 layers, the expert pool had nothing in flight, and the host process was 9 GiB deep in swap. The process died byabort()(SIGABRT, core dumped), and the server restarted the engine 2 min 40 s later.This is not a new signature: it is the layer-48 completion handshake of #2049 and the class-A stall of #1705. Both are closed for age, and
docs/DETAILS.mdasks for the stall report to be filed, so this is the same stall on a third platform (Linux/HIP, gfx1201) and a newer engine.How I read it:
layer step 48is one past the last block (this pack has 48), i.e. the completion handshake after the last layer, not a decode step. Same site as #2049.served 48, plan (A) 48, copies (B) 48, and when the abort path calledrelease_gpu_waits()the device answered in 26 ms. The host side is what never moved.epoch == batch epoch, all 15 workers asleep, host idle 66.7 s.0 of 41threads in state D, so it is not a visible blocked read, and the #1407 line (no step finished for %d s, but the file tier is still being read) never appears in the log.request -1= between requests. The line immediately before the stall was a park, and a slow one:parked 156419 tokens in 5609.5 ms, far outside the ~760 ms median for 150-210K parks in #2049's table. The park completed and logged normally; the stage that stopped isrequest -1.Prior occurrences on the same box, same signature: two more on 0.1.41, 2026-10-10 (restarts 15:23:59 and 15:34:48, so aborts at ~15:22 and ~15:33, 11 minutes apart, the cascade shape of #2049). Both stopped in the prompt read with the identical handshake state,
host at layer step 48; the GPU rang 48, pool idle 78.9 s,memory: 58030 MiB resident, 3290 MiB in swap, 4519 MiB RAM available. Three aborts, three engines, identical handshake state.Ruled out:
VRAM free when this request began: 2660 MiB, well above the 512 MiB warning threshold, and the LOW tag did not print.0 of 41threads in state D.request -1.non-finite logitsnever appears.Evicting process/Restoringpairs. The reclaim evidence is the process's own swap footprint plus the idle-GPU handshake state.Questions:
--mmap-experts), which workaround first:HSA_USERPTR_FOR_PAGED_MEM=0(reported as not effective on gfx1201 by HackityAnn in #1705) orGPU_PINNED_MIN_XFER_SIZE=1048576?request -1, the way 0.1.43.1 did for the named park stage?I will A/B the chosen env variable with the same workload and paired timings and report back either way.
Smallest steps or command that reproduce it
Not reproducible on demand. What the three occurrences have in common: a long session at large context with
--batch 2, two live slots (78K and 156K tokens in the 2026-10-20 event), plus a multi-GB parked conversation, on a box where the system is already 60+ GiB into swap. The last occurrence began after the park line quoted above; the crash itself is at the next handshake.Reproduction status
Reproduced locally
Strata version
engine 0.1.45, local HIP build (
BUILD.json: sourcelocal-hip, archs[gfx1201], srcb95137167bd9b751); fork merge of upstream tag v0.1.45 (74f5671a)Graphics card, memory and system
Radeon AI PRO R9700 32 GB (gfx1201) · 125.7 GiB RAM, 96 GiB swap partition (61-64 GiB in use at the abort),
vm.swappiness=10, no zram · Debian 13, kernel 6.12.107+deb13-amd64 · ROCm 7.10.0a20251120 (TheRock pip wheels)Model, size and settings
Qwen3.8-Flash-Next GSQ-RCO IQ2_XS native pack (68 GB, 48 blocks, 33.02 GiB experts loaded, 15932 cache slots) · 262144 context ·
--kv int8 --kv-resident 32768· pictures on ·--spec 4 --spec-min-p 0.5 --mtp <rt> --batch-mtp·--batch 2·--conversation-cache-mib 8192·--prefill auto:32768·--vram-reserve-mib 3072· envSTRATA_HIP_WMMA=1,STRATA_HIPBLASLT_TUNING=<gfx1201 100200 table>;HSA_USERPTR_FOR_PAGED_MEMandGPU_PINNED_MIN_XFER_SIZEare NOT set · watchdog defaults (STRATA_WATCHDOG_S=60,STRATA_WATCHDOG_IO_S=600)Logs
Verbatim from
strata-iq2_xs.log, 2026-10-20 16:37:47 EEST (UTC+3):coredumpctl info 213777:The server logged
the engine had stopped (exit code -6)at 16:39:55 and restarted it at 16:39:59; serving again at 16:40:30. The 30 GB core is still on disk. The full log excerpt with all three aborts, and the two 2026-10-10 stall reports, can be attached if useful.Authorship disclosure: this report was assembled by the operator's agent from the engine log and
coredumpctlon the machine that stalled. Every quoted line is verbatim fromstrata-iq2_xs.log; the interpretation is mine and is labelled as such where it goes beyond the log.@github-actions[bot] commented on GitHub (Oct 20, 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:
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
@github-actions[bot] commented on GitHub (Oct 20, 2026):
Thanks, this follows the format now.
@Niko1221 commented on GitHub (Oct 21, 2026):
Not reproduced here. Your numbers (9 GB in swap, 3.7 GB RAM available, an 8 GB conversation cache, a 156K-token park that took 5.6 s instead of 0.76 s) point at host memory pressure, the same class as #1705, #2049, #750 and #920. Please try
--conversation-cache-mib 2048and senddmesg | grep -iE "kfd|amdgpu|oom|evict"from a run. We are not treating "GPU rang all layers, pool idle" as progress: the report shows an engine that was waiting, not a lost wait.@Faks commented on GitHub (Oct 21, 2026):
Thank you for the reply, and the correction is accepted: "GPU rang all layers, pool idle" is an engine that was waiting, not one that lost a wait. My report framed it as a watchdog abort, and that framing was wrong.
Here is what we measured, so you can judge it.
The abort has not recurred. One occurrence in the whole engine log, on 0.1.45. After the upgrade to 0.1.46.1 (upstream
v0.2.1.1) there have been 40+ engine starts and no second "no progress for 60 s". The host is also in a different state than when the report was filed: 40 GB available (not 3.7 GB), and the engine itself has VmSwap 0 with VmRSS 45.1 GiB - the 50 GB in swap belongs to other CPU-only llama-servers on this box, not to Strata.dmesg from a run (the ring buffer only reaches back to 05:46 today, so the 03:00 stall is long gone):
No OOM, no eviction, no KFD or HMM event, no GPU reset and no ring timeout. The only amdgpu lines are
init_user_pagesfailures, and they line up with the engine's own start-up line:So the driver is failing to pin the 33 GiB expert arena at every start because this host reserves no hugepages (
vm.nr_hugepages=0). That is host configuration, not an engine fault, and it is a different thing from the stall - but it is the only GPU-level noise in the buffer, and it may be worth a line in the troubleshooting docs.--conversation-cache-mib 2048, measured. We tried it exactly as suggested. With 2048 the engine no longer writes the 4.2 GB snapshot at all:For the record, the same park with the 8192 we run:
The cost of 2048 is that a 234K conversation is no longer parked: the turn after it is re-read from scratch (about 94 s of prompt reading at 2,400 tok/s) instead of resuming in 3.6 s. Since the abort has not recurred on 0.1.46.1 and the host has 40 GB available, we are keeping 8192 for now - it is one flag away if you would rather have the 2048 behaviour.
What we would need from you. If the stall is worth chasing further, the useful capture is dmesg during a reproduction, and we do not have a reproduction on 0.1.46.1. Two things would help: whether the host-memory-pressure class you mention (#1705, #2049, #750, #920) has a known trigger we can check against, and whether
init_user_pagesfailures are expected on a host without hugepages or a sign of something we should fix. We can reserve the pages this engine asks for (vm.nr_hugepages=16907, 2 MiB pages for the 33 GiB arena) if that is useful for the next run.@kp-wang commented on GitHub (Oct 23, 2026):
Same stall on another Linux/HIP gfx1201 box (Radeon AI PRO R9700 32 GB), engine 0.1.46.3 (Strata 0.2.1.4). This one was not under memory pressure: no swap was in use, and 9–10 GiB of RAM was available at every stall.
Setup: Qwen3.8-Flash-Next IQ3_S. Flags:
--spec 4 --spec-min-p 0.5 --mtp … --batch-mtp, 3 parallel slots,--max-context 131072 --kv int8 --resident-experts --expert-cache auto --prefill auto:32768 --vram-reserve-mib 1024, conversation cache with 6 slots on disk. Swap max for the unit is 0. The host has 46 GiB of RAM. Traffic is agent sessions with long reused prefixes, 8K–99K tokens.Frequency: 6 watchdog stops in about 5 hours on 2026-10-23, then none for the next 8 hours. Earlier days had 1–3.
Pattern in every case:
released the verify window's GPU waits (#267): the GPU finished in 0 ms. So the device had finished, and the host was waiting on a completion it had missed.In the two 10:28 and 11:50 cases the server's 300 s silence limit (#481) also fired, because writing out the abort took a while. Every stall report on this box (8 since 10-21) showed only 682–750 MiB of VRAM free at request start, below the 1024 MiB reserve.
One full report (13:23), with paths trimmed:
The request just before it on the same engine completed normally: 47017-token prompt, 7923 reused + 39094 read, then 6747 tokens generated with MTP.
Separately, on the same day, we had one
verify: timed out at layer 29; its GPU waits were released but the GPU did not finish within 5 s (#267), and two more earlier in the week. We're moving to 0.2.3.1 now for the verify-window fix in 0.2.2, and will report back whether the prompt-read stall persists on engine 0.1.48.There is also a small server-side issue: after an engine restart,
GET /metricssometimes raisesValueError: read length must be non-negative or -1fromconv_log.poll(serve/server.py,metrics→poll), presumably because the stored log offset is now past the end of the new log. It happened 8 times in 2 days.@kp-wang commented on GitHub (Oct 24, 2026):
Follow-up from my comment above: we moved to 0.2.3.1, engine 0.1.48.1 (built from tag
v0.2.3.1, flags unchanged). The prompt-read stall still happens, twice in the first ~10 h on the new engine, and the signature is unchanged:As before:
The verify-window timeout (#267) has not recurred on 0.1.48.1 yet, but 10 h is too short to call it fixed.
Happy to run a build with extra logging, or an A/B with a specific switch, if that helps; we log every stall automatically now.
@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.