[GH-ISSUE #2331] UD-Q4_K_XL: engine exits silently at startup (4 configs: budget page-lock, no-budget, split, single GPU) on Linux/AVX1/157 GB #942

Closed
opened 2026-11-04 01:47:12 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @ifdog on GitHub (Oct 13, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2331

Summary

UD-Q4_K_XL never reaches "session is up" on this box — the engine exits silently at the same place in four different configurations. The other packs (IQ3_XXS) run fine on the same machine with the same engine build, so this looks specific to the UD path.

Machine

  • 2× RTX 2080 Ti 22 GB (sm_75), driver 615.71.09, Arch Linux, kernel 7.2.6
  • Xeon E5-2650L v2 (Ivy Bridge, AVX1 → STRATA_ISA_FLOOR=avx build), 157 GB RAM
  • Engine 0.1.43, source build, CUDA 12.8, gcc-13; also tested with the current master + the #2197 PR stack — same result
  • Model: unsloth/Qwen3.8-Flash-Next-GGUF UD-Q4_K_XL, 4 shards, 111,334,654,784 bytes, all four SHA-256-verified against the pinned revision (38bb39e)
  • The same box currently serves IQ3_XXS at 72-87 tok/s (after discovering that --ple-io ram is mandatory here, #2239), including vision, so the machine itself is in good shape
  • Storage is a mergerfs pool on spinning disks: ~70 MB/s streaming, ~222 rows/s random 4K (the reason PLE must be --ple-io ram here)

What happens

Every attempt gets through pack load, PLE load (PLE table locked in RAM (--ple-io ram) in 454.5 s), the draft layer, and the GPU line, then the engine exits with no message in its own log. journalctl shows only strata-ud.service: Main process exited, code=exited, status=1/FAILURE (once, with --vision, it was RuntimeError: the vision encoder did not start, and the vision crash dump showed frames inside libgc.so.1 — though that may be a symbolization artifact of the crash handler).

Four configurations, all dying at the same point:

# config dies at memory peak
1 --resident-budget-gib 71 + --vision, split 24, pipeline-windows 2 FileExpertSource: ... page-locking it in steps —
2 no budget, --vision, split 24 after GPU 0: ... compute capability 7.5 105.8 GB
3 no budget, no vision, split 24, pipeline-windows 2 same —
4 no budget, no vision, single GPU, 32K context same 87.1 GB

Failure 1 has more detail: with the 71 GiB budget the engine says

FileExpertSource: RAM budget 71.00 GiB: 15517 of the 45.29 GiB of experts the GPU cache does not hold, by profile rank; the rest are read from the files
FileExpertSource: allocating 67.77 GiB page-locked cache complement
FileExpertSource: 1.36 GiB really free for a 67.77 GiB page-locked complement; the model files' cached pages were released: 31.05 GiB free
FileExpertSource: the rest comes from reclaimed cache of other files: page-locking it in steps, as far as the RAM allows (#1250)

and then dies during the page-locking (no OOM in dmesg/journalctl -k, no core; MemAvailable was ~70 GB at the time). So the "as far as the RAM allows" path seems to end the process rather than continue with what it could lock.

Questions

  1. Is UD-Q4_K_XL expected to work on Linux at all? docs/UNSLOTH_Q4.md says it was validated on one Windows / RTX 5070 / AVX-512 / 64 GB PC; this is Linux + AVX1 + 157 GB + two cards, so it is off the tested path.
  2. The silent exit with no message is the worst part — is there a flag to make the file-tier/budget path verbose (STRATA_* for FileExpertSource), or do you want a catchsegv/gdb run from me on a specific function?
  3. For failure 1: should page-locking it in steps ever be fatal? If the answer is "it should fall back", that alone would let me run it with a smaller budget.

Happy to run any instrumentation you want — engine rebuilds here take ~3 minutes and the model files are in place.

Originally created by @ifdog on GitHub (Oct 13, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/2331 ## Summary UD-Q4_K_XL never reaches "session is up" on this box — the engine exits silently at the same place in four different configurations. The other packs (IQ3_XXS) run fine on the same machine with the same engine build, so this looks specific to the UD path. ## Machine - 2× RTX 2080 Ti 22 GB (sm_75), driver 615.71.09, Arch Linux, kernel 7.2.6 - Xeon E5-2650L v2 (Ivy Bridge, AVX1 → `STRATA_ISA_FLOOR=avx` build), **157 GB RAM** - Engine 0.1.43, source build, CUDA 12.8, gcc-13; also tested with the current master + the #2197 PR stack — same result - Model: `unsloth/Qwen3.8-Flash-Next-GGUF` UD-Q4_K_XL, 4 shards, 111,334,654,784 bytes, all four SHA-256-verified against the pinned revision (`38bb39e`) - The same box currently serves IQ3_XXS at 72-87 tok/s (after discovering that `--ple-io ram` is mandatory here, #2239), including vision, so the machine itself is in good shape - Storage is a mergerfs pool on spinning disks: ~70 MB/s streaming, ~222 rows/s random 4K (the reason PLE must be `--ple-io ram` here) ## What happens Every attempt gets through pack load, PLE load (`PLE table locked in RAM (--ple-io ram) in 454.5 s`), the draft layer, and the GPU line, then the engine exits with no message in its own log. `journalctl` shows only `strata-ud.service: Main process exited, code=exited, status=1/FAILURE` (once, with `--vision`, it was `RuntimeError: the vision encoder did not start`, and the vision crash dump showed frames inside `libgc.so.1` — though that may be a symbolization artifact of the crash handler). Four configurations, all dying at the same point: | # | config | dies at | memory peak | |---|---|---|---| | 1 | `--resident-budget-gib 71` + `--vision`, split 24, pipeline-windows 2 | `FileExpertSource: ... page-locking it in steps` | — | | 2 | no budget, `--vision`, split 24 | after `GPU 0: ... compute capability 7.5` | 105.8 GB | | 3 | no budget, no vision, split 24, pipeline-windows 2 | same | — | | 4 | no budget, no vision, **single GPU**, 32K context | same | 87.1 GB | Failure 1 has more detail: with the 71 GiB budget the engine says ``` FileExpertSource: RAM budget 71.00 GiB: 15517 of the 45.29 GiB of experts the GPU cache does not hold, by profile rank; the rest are read from the files FileExpertSource: allocating 67.77 GiB page-locked cache complement FileExpertSource: 1.36 GiB really free for a 67.77 GiB page-locked complement; the model files' cached pages were released: 31.05 GiB free FileExpertSource: the rest comes from reclaimed cache of other files: page-locking it in steps, as far as the RAM allows (#1250) ``` and then dies during the page-locking (no OOM in `dmesg`/`journalctl -k`, no core; `MemAvailable` was ~70 GB at the time). So the "as far as the RAM allows" path seems to end the process rather than continue with what it could lock. ## Questions 1. Is UD-Q4_K_XL expected to work on Linux at all? docs/UNSLOTH_Q4.md says it was validated on one Windows / RTX 5070 / AVX-512 / 64 GB PC; this is Linux + AVX1 + 157 GB + two cards, so it is off the tested path. 2. The silent exit with no message is the worst part — is there a flag to make the file-tier/budget path verbose (`STRATA_*` for FileExpertSource), or do you want a `catchsegv`/gdb run from me on a specific function? 3. For failure 1: should `page-locking it in steps` ever be fatal? If the answer is "it should fall back", that alone would let me run it with a smaller budget. Happy to run any instrumentation you want — engine rebuilds here take ~3 minutes and the model files are in place.
Author
Owner

@ifdog commented on GitHub (Oct 14, 2026):

Correction — my own diagnosis was wrong, and it is not an engine bug: it is STRATA_ENGINE_READY_S (default 900 s).

I found this while bringing up a different pack: serve/server.py ends the engine if it has not reported READY within 900 s. On this box the startup needs more than that:

  • --ple-io ram alone: 454-508 s for the 28.8 GB PLE table (HDD-class storage)
  • expert RAM copy / cache fill: another ~150-200 s for IQ3_XXS, and much more for UD (71 GiB)
  • so every run died at ~15 min 07 s of wall clock — exactly the timeout — with no engine-side error.

That explains all four "silent exits" in my original report (and why the log stopped at a different line in each config: it was wherever the load had got to at t=900 s). The page-locking it in steps line was a phase the budget path was working through, not a crash.

Fix on my side: STRATA_ENGINE_READY_S=3600 (or 0) in the environment. I am re-running UD-Q4_K_XL with that now and will report the real numbers here — sorry for the noise, and thanks for the engine's own log being detailed enough to reconstruct this.

Suggestion, since this is going to hit every user on slow storage: the timeout message is good, but the first failure mode I hit was Main process exited, code=exited, status=1/FAILURE in journalctl with a log that just stopped — the "did not report READY within 900 s" line only appears in the wrapper's own log. Printing the reason into the engine log too (or naming STRATA_ENGINE_READY_S in the start summary) would make this self-diagnosing.

<!-- gh-comment-id:6163782538 --> @ifdog commented on GitHub (Oct 14, 2026): **Correction — my own diagnosis was wrong, and it is not an engine bug: it is `STRATA_ENGINE_READY_S` (default 900 s).** I found this while bringing up a different pack: `serve/server.py` ends the engine if it has not reported READY within 900 s. On this box the startup needs more than that: - `--ple-io ram` alone: **454-508 s** for the 28.8 GB PLE table (HDD-class storage) - expert RAM copy / cache fill: another ~150-200 s for IQ3_XXS, and much more for UD (71 GiB) - so every run died at ~15 min 07 s of wall clock — exactly the timeout — with no engine-side error. That explains all four "silent exits" in my original report (and why the log stopped at a different line in each config: it was wherever the load had got to at t=900 s). The `page-locking it in steps` line was a phase the budget path was working through, not a crash. Fix on my side: `STRATA_ENGINE_READY_S=3600` (or 0) in the environment. I am re-running UD-Q4_K_XL with that now and will report the real numbers here — sorry for the noise, and thanks for the engine's own log being detailed enough to reconstruct this. Suggestion, since this is going to hit every user on slow storage: the timeout message is good, but the *first* failure mode I hit was `Main process exited, code=exited, status=1/FAILURE` in journalctl with a log that just stopped — the "did not report READY within 900 s" line only appears in the wrapper's own log. Printing the reason into the engine log too (or naming `STRATA_ENGINE_READY_S` in the start summary) would make this self-diagnosing.
Author
Owner

@Niko1221 commented on GitHub (Oct 19, 2026):

Thanks for taking the time to report this.

We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6270962471 --> @Niko1221 commented on GitHub (Oct 19, 2026): Thanks for taking the time to report this. We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [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#942
No description provided.