[GH-ISSUE #5334] [Engine]strata update aborts 0.1.57 test-start after 10 min because it copies a 40 GiB page-locked expert complement during model load #3182

Open
opened 2026-11-07 14:38:42 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @YWtheGod on GitHub (Nov 5, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5334

test-start-0.1.57.log

Environment

  • OS: Windows 11 26H2
  • CPU: AMD R7500F (6C/12T)
  • GPU: AMD Radeon RX 7800 XT (gfx1101, 16 GB), driver via HIP runtime amdhip64_7.dll
  • RAM: 64 GB
  • Storage: NVMe SSD
  • Current engine: 0.1.56
  • Target engine: 0.1.57 windows-x86_64-hip-rdna3
  • Model: huihui-abliterated-UD-Q4_K_XL (Qwen3.8-Flash-Next UD-Q4_K_XL, 4 GGUF shards)
  • Launch flags include: --resident-budget-gib 40 --max-context 4096 --kv int8 --spec 4 --expert-cache auto --prefill auto

What happened

strata update downloaded and unpacked engine 0.1.57, verified the signature, then ran its test-start. The test-start kept printing Engine 0.1.57 is loading the model (...) every ~30 s and was aborted after 10 minutes:

Test-starting engine 0.1.57 windows-x86_64-hip-rdna3 before switching to it
Engine 0.1.57 is loading the model (2 s)
...
Engine 0.1.57 is loading the model (574 s)
Feed sequence 121, signed by 5d1bc23abbeffd0d
Engine  0.1.56   NOT changed: The new engine 0.1.57 did not start correctly on this computer, so it was not installed. ...
It was still loading the model after 10 minutes.

So the upgrade never completes; the user stays on 0.1.56.

Evidence from the test-start log

The test-start log is at C:\Users\ywthe\AppData\Local\Strata\components\.updates\logs\test-start-0.1.57.log. It shows the engine actually got quite far: GPU cache prefill finished, session is up was printed, and then it started allocating the 40 GiB page-locked RAM complement. Key lines:

strata generate: expert cache auto: 9.65 GiB free, 2560 MiB reserved ... -> 1855 slots
strata generate: only 1628 MiB free once the slots are written (reserve 2560 MiB); shrinking the expert cache
strata generate: expert cache 2034 slots, 5.93 GiB of VRAM; policy is PROFILE, ranked by routing frequency, no eviction.
strata generate: pre-filled 2034 of 2034 slots from the profile in 80.7 s (79 MB/s); slot 0 verified
strata generate: session is up (engine 0.1.57)

FileExpertSource: available RAM 51.48 GiB ...
FileExpertSource: RAM budget 40.00 GiB: 13698 of the 65.80 GiB of experts the GPU cache does not hold, by profile rank; the rest are read from the files
FileExpertSource: allocating 40.00 GiB page-locked cache complement
FileExpertSource: copied cache complement through layer 8/48 (10.53 GiB, 123 s)
FileExpertSource: copied cache complement through layer 16/48 (15.81 GiB, 250 s)
FileExpertSource: copied cache complement through layer 24/48 (21.77 GiB, 333 s)
FileExpertSource: copied cache complement through layer 32/48 (30.45 GiB, 438 s)

The log ends at layer 32/48 after 438 s. The copy rate is roughly 65–87 MB/s. Extrapolating to 40 GiB, the complement copy alone would take ~9–10 minutes, on top of ~140 s already spent on embedding load, projection matrices, Q5_K head, and GPU cache prefill. That clearly exceeds the 10-minute test-start timeout. The last loading the model (574 s) line in the update output is consistent with the engine still being inside this complement copy.

Analysis

  • 0.1.57's test-start appears to perform a full model load, including allocating and filling the 40 GiB page-locked RAM expert complement, before the update considers the engine "started correctly".
  • With --resident-budget-gib 40 on a 64 GB machine, this complement copy is the dominant startup cost. On this system it is slow enough (~70–80 MB/s) that it alone approaches or exceeds the 10-minute test-start window.
  • The log shows session is up before the complement allocation. If session is up is not treated as sufficient readiness for test-start, or if the complement is a mandatory part of startup, the test-start timeout is effectively tied to the slowest startup stage.
  • This makes 0.1.57 un-installable on otherwise capable hardware whenever the resident budget is large and the disk copy is not fast enough. The same model presumably works under 0.1.56, but the user cannot switch.

Expected behavior

strata update should either:

  1. treat session is up (or a lightweight readiness probe) as sufficient for test-start, without requiring the full 40 GiB page-locked complement to be populated; or
  2. allow the test-start timeout to be configured / extended, and report which startup phase is blocking; or
  3. defer the page-locked RAM complement population until the first real generate request, so update test-start is not gated by it.

At minimum, the update failure message should distinguish "engine binary did not start" from "engine started but model warm-up exceeded timeout", and mention the resident budget / complement copy as a likely cause.

Suggestions for maintainers

  • Consider a --test-start-timeout or STRATA_UPDATE_TEST_START_TIMEOUT knob.
  • Consider skipping heavy RAM complement allocation during update test-start (e.g. a --test-start mode that only checks engine + GPU + model metadata).
  • If the complement must be filled at startup, log an explicit ETA or progress percentage that the updater can recognize, so a 10-minute timeout does not misclassify a slow-but-healthy copy as a failed start.
  • Document that --resident-budget-gib 40 can make first startup very slow on ~70–80 MB/s copy paths, and suggest a lower budget for update validation.

Attachments

  • Full test-start-0.1.57.log from C:\Users\ywthe\AppData\Local\Strata\components\.updates\logs\test-start-0.1.57.log
  • strata update console output (included above)
Originally created by @YWtheGod on GitHub (Nov 5, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5334 [test-start-0.1.57.log](https://github.com/user-attachments/files/34437165/test-start-0.1.57.log) **Environment** - OS: Windows 11 26H2 - CPU: AMD R7500F (6C/12T) - GPU: AMD Radeon RX 7800 XT (gfx1101, 16 GB), driver via HIP runtime `amdhip64_7.dll` - RAM: 64 GB - Storage: NVMe SSD - Current engine: 0.1.56 - Target engine: 0.1.57 windows-x86_64-hip-rdna3 - Model: `huihui-abliterated-UD-Q4_K_XL` (Qwen3.8-Flash-Next UD-Q4_K_XL, 4 GGUF shards) - Launch flags include: `--resident-budget-gib 40 --max-context 4096 --kv int8 --spec 4 --expert-cache auto --prefill auto` **What happened** `strata update` downloaded and unpacked engine 0.1.57, verified the signature, then ran its test-start. The test-start kept printing `Engine 0.1.57 is loading the model (...)` every ~30 s and was aborted after 10 minutes: ```text Test-starting engine 0.1.57 windows-x86_64-hip-rdna3 before switching to it Engine 0.1.57 is loading the model (2 s) ... Engine 0.1.57 is loading the model (574 s) Feed sequence 121, signed by 5d1bc23abbeffd0d Engine 0.1.56 NOT changed: The new engine 0.1.57 did not start correctly on this computer, so it was not installed. ... It was still loading the model after 10 minutes. ``` So the upgrade never completes; the user stays on 0.1.56. **Evidence from the test-start log** The test-start log is at `C:\Users\ywthe\AppData\Local\Strata\components\.updates\logs\test-start-0.1.57.log`. It shows the engine actually got quite far: GPU cache prefill finished, `session is up` was printed, and then it started allocating the 40 GiB page-locked RAM complement. Key lines: ```text strata generate: expert cache auto: 9.65 GiB free, 2560 MiB reserved ... -> 1855 slots strata generate: only 1628 MiB free once the slots are written (reserve 2560 MiB); shrinking the expert cache strata generate: expert cache 2034 slots, 5.93 GiB of VRAM; policy is PROFILE, ranked by routing frequency, no eviction. strata generate: pre-filled 2034 of 2034 slots from the profile in 80.7 s (79 MB/s); slot 0 verified strata generate: session is up (engine 0.1.57) FileExpertSource: available RAM 51.48 GiB ... FileExpertSource: RAM budget 40.00 GiB: 13698 of the 65.80 GiB of experts the GPU cache does not hold, by profile rank; the rest are read from the files FileExpertSource: allocating 40.00 GiB page-locked cache complement FileExpertSource: copied cache complement through layer 8/48 (10.53 GiB, 123 s) FileExpertSource: copied cache complement through layer 16/48 (15.81 GiB, 250 s) FileExpertSource: copied cache complement through layer 24/48 (21.77 GiB, 333 s) FileExpertSource: copied cache complement through layer 32/48 (30.45 GiB, 438 s) ``` The log ends at layer 32/48 after 438 s. The copy rate is roughly 65–87 MB/s. Extrapolating to 40 GiB, the complement copy alone would take **~9–10 minutes**, on top of ~140 s already spent on embedding load, projection matrices, Q5_K head, and GPU cache prefill. That clearly exceeds the 10-minute test-start timeout. The last `loading the model (574 s)` line in the update output is consistent with the engine still being inside this complement copy. **Analysis** - 0.1.57's test-start appears to perform a **full model load**, including allocating and filling the 40 GiB page-locked RAM expert complement, before the update considers the engine "started correctly". - With `--resident-budget-gib 40` on a 64 GB machine, this complement copy is the dominant startup cost. On this system it is slow enough (~70–80 MB/s) that it alone approaches or exceeds the 10-minute test-start window. - The log shows `session is up` before the complement allocation. If `session is up` is not treated as sufficient readiness for test-start, or if the complement is a mandatory part of startup, the test-start timeout is effectively tied to the slowest startup stage. - This makes 0.1.57 un-installable on otherwise capable hardware whenever the resident budget is large and the disk copy is not fast enough. The same model presumably works under 0.1.56, but the user cannot switch. **Expected behavior** `strata update` should either: 1. treat `session is up` (or a lightweight readiness probe) as sufficient for test-start, without requiring the full 40 GiB page-locked complement to be populated; or 2. allow the test-start timeout to be configured / extended, and report which startup phase is blocking; or 3. defer the page-locked RAM complement population until the first real `generate` request, so update test-start is not gated by it. At minimum, the update failure message should distinguish "engine binary did not start" from "engine started but model warm-up exceeded timeout", and mention the resident budget / complement copy as a likely cause. **Suggestions for maintainers** - Consider a `--test-start-timeout` or `STRATA_UPDATE_TEST_START_TIMEOUT` knob. - Consider skipping heavy RAM complement allocation during update test-start (e.g. a `--test-start` mode that only checks engine + GPU + model metadata). - If the complement must be filled at startup, log an explicit ETA or progress percentage that the updater can recognize, so a 10-minute timeout does not misclassify a slow-but-healthy copy as a failed start. - Document that `--resident-budget-gib 40` can make first startup very slow on ~70–80 MB/s copy paths, and suggest a lower budget for update validation. **Attachments** - Full `test-start-0.1.57.log` from `C:\Users\ywthe\AppData\Local\Strata\components\.updates\logs\test-start-0.1.57.log` - `strata update` console output (included above)
Author
Owner

@github-actions[bot] commented on GitHub (Nov 5, 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:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".

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

<!-- gh-comment-id:6664085401 --> @github-actions[bot] commented on GitHub (Nov 5, 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: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". 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](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3182
No description provided.