[GH-ISSUE #1250] [Linux][RTX 3080 12 GB, 62 GB RAM] 0.1.40.1 start OOMs the host while allocating the page-locked expert copy (IQ2_XS); 0.1.31 starts fine #515

Closed
opened 2026-11-04 01:43:41 +07:00 by bsakaguchi · 7 comments
Owner

Originally created by @Absolutely-not-a-coder on GitHub (Oct 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1250

Summary

On a 62 GB Linux box with a 12 GB RTX 3080, 0.1.40.1 is OOM-killed during start with IQ2_XS at 262K context. The same model, config and machine start and serve fine on 0.1.31 (service peak 47.7 GiB). The low-RAM modes don't avoid it.

--resident-experts, --resident-budget-gib 26 and --resident-budget-gib 26 --pcie-frac 0 all reach session is up (engine 0.1.40) with the GPU cache filled. Each then dies while FileExpertSource allocates its page-locked cache complement. In those three runs it was a host-wide OOM (global_oom), even though MemAvailable was 54 GB a few seconds earlier.

Environment

  • Ubuntu 24.04.3, kernel 7.0.0-34-generic, NVIDIA driver 595.91.07
  • GPU: RTX 3080 12 GB (sm_86), one card
  • CPU: i5-14400F (AVX2, no AVX-512); RAM 62 GB; swap 8 GB (swappiness 60, overcommit 0)
  • Build: v0.1.40.1 (82f46a8), STRATA_PORTABLE=ON, CMAKE_CUDA_ARCHITECTURES=86, GGML_NATIVE=OFF + AVX2/FMA/F16C, CUDA 13.0.88, ggml 3cf0325. Runtime CUDA libs come from the venv's nvidia/cu13 (13.0.96) via lib_dirs.
  • Model: ISTA-DASLab Qwen3.8-Flash-Next-GSQ-RCO IQ2_XS, native pack made by tools/iq_pack.py (no experts.bin). Shard 1 (39.2 GB, experts) is on a SATA SSD (ext4); shard 2 (28.8 GB, PLE) is on NVMe. MTP draft enabled.
  • Run as a systemd service: MemoryHigh=54G MemoryMax=56G MemorySwapMax=0 LimitMEMLOCK=infinity OOMScoreAdjust=500. Nothing else large runs on the host: about 2.5 GB anon outside the engine, with the GPU's other tenant stopped.

Engine arguments (from the server config):

--pack <pack>/iq2_xs --native <shard1>.gguf --ple-gguf <shard2>.gguf --expert-profile data/expert-profile.bin
--expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp <mtp>/rt
--max-context 262144 --kv int8 --kv-resident 32768 --vram-reserve-mib 1800

What happens

Run Last engine line Memory at the kill Kill
defaults after GPU 0: NVIDIA GeForce RTX 3080, compute capability 8.6, while "loading the experts into RAM (about 39 GB)" anon ~25 GB, shmem 4 GB, page cache 27-31 GB cgroup OOM at 56 GiB
defaults, STRATA_READ_AHEAD=0 same same cgroup OOM at 56 GiB
defaults, without LimitMEMLOCK=infinity same cgroup counted only 21.8 GB; process anon 29.5 GB + shmem 3.9 GB global OOM
--resident-experts FileExpertSource: allocating 32.35 GiB page-locked cache complement Shmem 4 → 25.5 GB in ~5 s, MemFree 0.9 GB, Cached 53 GB global OOM
--resident-budget-gib 26 FileExpertSource: allocating 26.00 GiB page-locked cache complement Shmem → 19-22 GB, MemFree 0.9 GB, Cached 53.6 GB global OOM
--resident-budget-gib 26 --pcie-frac 0 same same global OOM

/proc/meminfo every 5 s (MiB), --resident-experts run:

21:11:14 MemFree:16322 MemAvailable:54525 Cached:38249 Unevictable:4 Mlocked:0 AnonPages:2794 Shmem:4012
21:11:19 MemFree:11515 MemAvailable:50291 Cached:42830 Unevictable:4 Mlocked:0 AnonPages:2929 Shmem:8020
21:11:24 MemFree:1254  MemAvailable:32681 Cached:53230 Unevictable:4 Mlocked:0 AnonPages:2929 Shmem:25499

Kernel log, budget + --pcie-frac 0 run:

avahi-daemon invoked oom-killer: gfp_mask=0xcc0(GFP_KERNEL), order=0, oom_score_adj=0
oom-kill:constraint=CONSTRAINT_NONE,...,global_oom,task_memcg=/system.slice/<unit>.service,task=strata,...
Out of memory: Killed process (strata) total-vm:87225700kB, anon-rss:826992kB, file-rss:2366172kB, shmem-rss:26818796kB

The engine log before the kill (resident run) looks normal: session is up (engine 0.1.40), pre-filled 3250 of 3250 slots from the profile in 29.8 s, token graph hit path: 3250 resident experts. Then:

FileExpertSource: RAM budget 26.00 GiB: 19353 of the 28.65 GiB of experts the GPU cache does not hold, by profile rank; the rest are read from the files
FileExpertSource: allocating 26.00 GiB page-locked cache complement

What it looks like (a guess, not verified)

The page-locked complement is committed as shmem much faster than the kernel gives back the ~30 GB of clean file cache left by reading the GGUF shards. Either that cache can't be reclaimed at that moment (mapped and in use?), or the pinned allocation path doesn't wait for reclaim. The 4 GiB headroom check (STRATA_RESIDENT_HEADROOM_GIB) passes because MemAvailable counts that cache as available, and it doesn't see a cgroup memory.max either.

Possible mitigations: allocate and pin the complement in chunks, letting reclaim catch up (or posix_fadvise(DONTNEED) the shard ranges already copied); size the budget against memory.max when running in a cgroup; and treat an allocation that can't be satisfied as "fall back to the mapped mode" rather than faulting pages until the OOM killer runs.

I can rerun with STRATA_RSS_TRACE=1 or anything else that helps. This box also runs other services, so I'd rather not trigger more global OOMs blind.

Originally created by @Absolutely-not-a-coder on GitHub (Oct 6, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/1250 ## Summary On a 62 GB Linux box with a 12 GB RTX 3080, **0.1.40.1 is OOM-killed during start** with IQ2_XS at 262K context. The same model, config and machine start and serve fine on **0.1.31** (service peak 47.7 GiB). The low-RAM modes don't avoid it. `--resident-experts`, `--resident-budget-gib 26` and `--resident-budget-gib 26 --pcie-frac 0` all reach `session is up (engine 0.1.40)` with the GPU cache filled. Each then dies while `FileExpertSource` allocates its page-locked cache complement. In those three runs it was a **host-wide** OOM (`global_oom`), even though `MemAvailable` was 54 GB a few seconds earlier. ## Environment - Ubuntu 24.04.3, kernel 7.0.0-34-generic, NVIDIA driver 595.91.07 - GPU: RTX 3080 12 GB (sm_86), one card - CPU: i5-14400F (AVX2, no AVX-512); RAM 62 GB; swap 8 GB (swappiness 60, overcommit 0) - Build: `v0.1.40.1` (82f46a8), `STRATA_PORTABLE=ON`, `CMAKE_CUDA_ARCHITECTURES=86`, `GGML_NATIVE=OFF` + AVX2/FMA/F16C, CUDA 13.0.88, ggml 3cf0325. Runtime CUDA libs come from the venv's `nvidia/cu13` (13.0.96) via `lib_dirs`. - Model: ISTA-DASLab Qwen3.8-Flash-Next-GSQ-RCO **IQ2_XS**, native pack made by `tools/iq_pack.py` (no `experts.bin`). Shard 1 (39.2 GB, experts) is on a SATA SSD (ext4); shard 2 (28.8 GB, PLE) is on NVMe. MTP draft enabled. - Run as a systemd service: `MemoryHigh=54G MemoryMax=56G MemorySwapMax=0 LimitMEMLOCK=infinity OOMScoreAdjust=500`. Nothing else large runs on the host: about 2.5 GB anon outside the engine, with the GPU's other tenant stopped. Engine arguments (from the server config): ```text --pack <pack>/iq2_xs --native <shard1>.gguf --ple-gguf <shard2>.gguf --expert-profile data/expert-profile.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp <mtp>/rt --max-context 262144 --kv int8 --kv-resident 32768 --vram-reserve-mib 1800 ``` ## What happens | Run | Last engine line | Memory at the kill | Kill | |---|---|---|---| | defaults | after `GPU 0: NVIDIA GeForce RTX 3080, compute capability 8.6`, while "loading the experts into RAM (about 39 GB)" | anon ~25 GB, shmem 4 GB, page cache 27-31 GB | cgroup OOM at 56 GiB | | defaults, `STRATA_READ_AHEAD=0` | same | same | cgroup OOM at 56 GiB | | defaults, without `LimitMEMLOCK=infinity` | same | cgroup counted only 21.8 GB; process anon 29.5 GB + shmem 3.9 GB | **global** OOM | | `--resident-experts` | `FileExpertSource: allocating 32.35 GiB page-locked cache complement` | Shmem 4 → 25.5 GB in ~5 s, MemFree 0.9 GB, Cached 53 GB | **global** OOM | | `--resident-budget-gib 26` | `FileExpertSource: allocating 26.00 GiB page-locked cache complement` | Shmem → 19-22 GB, MemFree 0.9 GB, Cached 53.6 GB | **global** OOM | | `--resident-budget-gib 26 --pcie-frac 0` | same | same | **global** OOM | `/proc/meminfo` every 5 s (MiB), `--resident-experts` run: ```text 21:11:14 MemFree:16322 MemAvailable:54525 Cached:38249 Unevictable:4 Mlocked:0 AnonPages:2794 Shmem:4012 21:11:19 MemFree:11515 MemAvailable:50291 Cached:42830 Unevictable:4 Mlocked:0 AnonPages:2929 Shmem:8020 21:11:24 MemFree:1254 MemAvailable:32681 Cached:53230 Unevictable:4 Mlocked:0 AnonPages:2929 Shmem:25499 ``` Kernel log, budget + `--pcie-frac 0` run: ```text avahi-daemon invoked oom-killer: gfp_mask=0xcc0(GFP_KERNEL), order=0, oom_score_adj=0 oom-kill:constraint=CONSTRAINT_NONE,...,global_oom,task_memcg=/system.slice/<unit>.service,task=strata,... Out of memory: Killed process (strata) total-vm:87225700kB, anon-rss:826992kB, file-rss:2366172kB, shmem-rss:26818796kB ``` The engine log before the kill (resident run) looks normal: `session is up (engine 0.1.40)`, `pre-filled 3250 of 3250 slots from the profile in 29.8 s`, `token graph hit path: 3250 resident experts`. Then: ```text FileExpertSource: RAM budget 26.00 GiB: 19353 of the 28.65 GiB of experts the GPU cache does not hold, by profile rank; the rest are read from the files FileExpertSource: allocating 26.00 GiB page-locked cache complement ``` ## What it looks like (a guess, not verified) The page-locked complement is committed as shmem much faster than the kernel gives back the ~30 GB of clean file cache left by reading the GGUF shards. Either that cache can't be reclaimed at that moment (mapped and in use?), or the pinned allocation path doesn't wait for reclaim. The 4 GiB headroom check (`STRATA_RESIDENT_HEADROOM_GIB`) passes because `MemAvailable` counts that cache as available, and it doesn't see a cgroup `memory.max` either. Possible mitigations: allocate and pin the complement in chunks, letting reclaim catch up (or `posix_fadvise(DONTNEED)` the shard ranges already copied); size the budget against `memory.max` when running in a cgroup; and treat an allocation that can't be satisfied as "fall back to the mapped mode" rather than faulting pages until the OOM killer runs. I can rerun with `STRATA_RSS_TRACE=1` or anything else that helps. This box also runs other services, so I'd rather not trigger more global OOMs blind.
Author
Owner

@perronemirko commented on GitHub (Oct 6, 2026):

could you please provide the output of the log ? I have similar issue a week ago ( I have 4090 RTX CMAKE_CUDA_ARCHITECTURES=89
I solved by compiling with CUDA 12.8 with proprietary nvidia-driver-610,
export CC=/usr/bin/gcc-10
export CXX=/usr/bin/g++-10
ninja --version => 1.10.1

<!-- gh-comment-id:6024813176 --> @perronemirko commented on GitHub (Oct 6, 2026): could you please provide the output of the log ? I have similar issue a week ago ( I have 4090 RTX CMAKE_CUDA_ARCHITECTURES=89 I solved by compiling with CUDA 12.8 with proprietary nvidia-driver-610, export CC=/usr/bin/gcc-10 export CXX=/usr/bin/g++-10 ninja --version => 1.10.1
Author
Owner

@Absolutely-not-a-coder commented on GitHub (Oct 6, 2026):

Thanks! Logs below, with paths shortened to placeholders. Nothing is cut after the last line: the process is killed right there. The server log just stops at "almost ready ...".

On the toolchain: this is CUDA 13.0.88 with GCC 13.3.0 (Ubuntu 24.04's default) and driver 595.91.07. The 0.1.31 build that starts fine on this same box used the same toolchain, so I doubt that's the cause here. What runs out is host RAM, not VRAM: the kill comes during the page-locked RAM allocation. I can try a CUDA 12.8 build if the maintainers think it's relevant.

engine + server logs: --resident-experts run, then the default run
#### ENGINE (resident)
[strata] 2026-10-06 21:10:40 engine started: <runtime>/engine/strata --serve --pack <packs>/iq2_xs --native <models>/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001-of-00002.gguf --ple-gguf <models>/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf --expert-profile <runtime>/data/expert-profile.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp <mtp>/rt --max-context 262144 --kv int8 --kv-resident 32768 --vram-reserve-mib 1800 --resident-experts
strata generate: PCIe probe: 24.0 GB/s host->device (best of 24.0 24.0 24.0 23.9) -> pcie_frac 0.55 (default 0.55)
strata generate: this CPU has no AVX-512: the expert kernels run on AVX-2 (multi-token for the i-quant gate/up rows)
strata generate: native pack: <packs>/iq2_xs experts (largest blob 1.51 MB), token embedding IQ4_XS in mapped host memory (322 MiB, 0.1 s)
strata generate: 1466 MiB of weights loaded from <packs>/iq2_xs in 2.9 s (302 canonical tensors skipped: served natively)
strata generate: 300 native projection matrices, 1474.85 MiB of weights, in 0.2 s
strata generate: the SSD is kept awake while rows are read: one page of the table after 100 ms without a read, until 60 s after the last request (STRATA_SSD_KEEPALIVE=0 turns it off)
strata generate: profile <runtime>/data/expert-profile.bin: 24576 ranked pairs, built for 24576 slots
strata generate: KV streaming: 32768 of 262144 cells per QSA layer in VRAM, the K/V in 3.09 GiB of pinned RAM
strata generate: PLE on, table 320001536 rows of <models>/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf
strata mtp: draft layer loaded, 835 MiB of VRAM (experts 675, dense 111), files read in 1.60 s (490 MiB/s)
strata generate: experimental native Q5_K head, 337715200 bytes, in 0.0 s
strata generate: GPU 0: NVIDIA GeForce RTX 3080, compute capability 8.6
strata generate: experts via mmap (--mmap-experts; the GGUF shards in place, no experts.bin)
strata generate: 9 pool workers on logical processors 2,4,6,8,10,12,13,14,15, the host thread on 0 (draining too) (--host-core first)
strata generate: expert cache auto: 6.27 GiB free, 1800 MiB reserved (+143 MiB for the draft head) -> 3109 slots
strata generate: expert cache 3250 slots, 4.37 GiB of VRAM; policy is
strata generate: the GPU computes the experts in the cache; it rounds differently from the CPU,
                 so a reply can differ slightly from a run without the cache (same quality:
                 bench/results/2026-09-27-cache-parity).
                 PROFILE, ranked by routing frequency, no eviction.
strata generate: the profile fill asks for 256 pairs ahead (STRATA_FILL_AHEAD)
strata generate: pre-filled 3250 of 3250 slots from the profile in 29.8 s (158 MB/s); slot 0 verified
strata generate: routing-aware prefetch of the file tier on (the next layer's router)
strata generate: R4 hit path ON - resident experts are computed on the GPU
strata generate: 9 expert-pool workers + the host thread
strata generate: session is up (engine 0.1.40)
strata generate: token graph hit path: 3250 resident experts, decided on the device
FileExpertSource: allocating 32.35 GiB page-locked cache complement
#### SERVER (resident)
loading the model (the first start takes a minute or two) ...
[strata] starting the engine: reading the model's weights ...
[strata] loading the experts the GPU does not hold into RAM (of about 39 GB) and locking part of them for the GPU.
         YOUR PC CAN BE SLOW OR STOP RESPONDING FOR 1-3 MINUTES NOW - this is normal.
         Please wait and don't close this window; the browser opens when it is ready.
[strata] filling the GPU's expert cache (3250 experts, 4.37 GiB of VRAM) ...
[strata] still starting (27 s) - please wait ...
[strata] almost ready ...
#### ENGINE (defaults)
[strata] 2026-10-06 21:00:36 engine started: <runtime>/engine/strata --serve --pack <packs>/iq2_xs --native <models>/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001-of-00002.gguf --ple-gguf <models>/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf --expert-profile <runtime>/data/expert-profile.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp <mtp>/rt --max-context 262144 --kv int8 --kv-resident 32768 --vram-reserve-mib 1800
strata generate: PCIe probe: 24.0 GB/s host->device (best of 24.0 23.8 23.9 24.0) -> pcie_frac 0.55 (default 0.55)
strata generate: this CPU has no AVX-512: the expert kernels run on AVX-2 (multi-token for the i-quant gate/up rows)
strata generate: native pack: <packs>/iq2_xs experts (largest blob 1.51 MB), token embedding IQ4_XS in mapped host memory (322 MiB, 0.7 s)
strata generate: 1466 MiB of weights loaded from <packs>/iq2_xs in 3.0 s (302 canonical tensors skipped: served natively)
strata generate: 300 native projection matrices, 1474.85 MiB of weights, in 9.2 s
strata generate: the SSD is kept awake while rows are read: one page of the table after 100 ms without a read, until 60 s after the last request (STRATA_SSD_KEEPALIVE=0 turns it off)
strata generate: profile <runtime>/data/expert-profile.bin: 24576 ranked pairs, built for 24576 slots
strata generate: KV streaming: 32768 of 262144 cells per QSA layer in VRAM, the K/V in 3.09 GiB of pinned RAM
strata generate: PLE on, table 320001536 rows of <models>/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf
strata mtp: draft layer loaded, 835 MiB of VRAM (experts 675, dense 111), files read in 1.60 s (490 MiB/s)
strata generate: experimental native Q5_K head, 337715200 bytes, in 0.7 s
strata generate: GPU 0: NVIDIA GeForce RTX 3080, compute capability 8.6
<!-- gh-comment-id:6024886692 --> @Absolutely-not-a-coder commented on GitHub (Oct 6, 2026): Thanks! Logs below, with paths shortened to placeholders. Nothing is cut after the last line: the process is killed right there. The server log just stops at "almost ready ...". On the toolchain: this is CUDA 13.0.88 with GCC 13.3.0 (Ubuntu 24.04's default) and driver 595.91.07. The 0.1.31 build that starts fine on this same box used the same toolchain, so I doubt that's the cause here. What runs out is host RAM, not VRAM: the kill comes during the page-locked RAM allocation. I can try a CUDA 12.8 build if the maintainers think it's relevant. <details><summary>engine + server logs: <code>--resident-experts</code> run, then the default run</summary> ```text #### ENGINE (resident) [strata] 2026-10-06 21:10:40 engine started: <runtime>/engine/strata --serve --pack <packs>/iq2_xs --native <models>/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001-of-00002.gguf --ple-gguf <models>/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf --expert-profile <runtime>/data/expert-profile.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp <mtp>/rt --max-context 262144 --kv int8 --kv-resident 32768 --vram-reserve-mib 1800 --resident-experts strata generate: PCIe probe: 24.0 GB/s host->device (best of 24.0 24.0 24.0 23.9) -> pcie_frac 0.55 (default 0.55) strata generate: this CPU has no AVX-512: the expert kernels run on AVX-2 (multi-token for the i-quant gate/up rows) strata generate: native pack: <packs>/iq2_xs experts (largest blob 1.51 MB), token embedding IQ4_XS in mapped host memory (322 MiB, 0.1 s) strata generate: 1466 MiB of weights loaded from <packs>/iq2_xs in 2.9 s (302 canonical tensors skipped: served natively) strata generate: 300 native projection matrices, 1474.85 MiB of weights, in 0.2 s strata generate: the SSD is kept awake while rows are read: one page of the table after 100 ms without a read, until 60 s after the last request (STRATA_SSD_KEEPALIVE=0 turns it off) strata generate: profile <runtime>/data/expert-profile.bin: 24576 ranked pairs, built for 24576 slots strata generate: KV streaming: 32768 of 262144 cells per QSA layer in VRAM, the K/V in 3.09 GiB of pinned RAM strata generate: PLE on, table 320001536 rows of <models>/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf strata mtp: draft layer loaded, 835 MiB of VRAM (experts 675, dense 111), files read in 1.60 s (490 MiB/s) strata generate: experimental native Q5_K head, 337715200 bytes, in 0.0 s strata generate: GPU 0: NVIDIA GeForce RTX 3080, compute capability 8.6 strata generate: experts via mmap (--mmap-experts; the GGUF shards in place, no experts.bin) strata generate: 9 pool workers on logical processors 2,4,6,8,10,12,13,14,15, the host thread on 0 (draining too) (--host-core first) strata generate: expert cache auto: 6.27 GiB free, 1800 MiB reserved (+143 MiB for the draft head) -> 3109 slots strata generate: expert cache 3250 slots, 4.37 GiB of VRAM; policy is strata generate: the GPU computes the experts in the cache; it rounds differently from the CPU, so a reply can differ slightly from a run without the cache (same quality: bench/results/2026-09-27-cache-parity). PROFILE, ranked by routing frequency, no eviction. strata generate: the profile fill asks for 256 pairs ahead (STRATA_FILL_AHEAD) strata generate: pre-filled 3250 of 3250 slots from the profile in 29.8 s (158 MB/s); slot 0 verified strata generate: routing-aware prefetch of the file tier on (the next layer's router) strata generate: R4 hit path ON - resident experts are computed on the GPU strata generate: 9 expert-pool workers + the host thread strata generate: session is up (engine 0.1.40) strata generate: token graph hit path: 3250 resident experts, decided on the device FileExpertSource: allocating 32.35 GiB page-locked cache complement #### SERVER (resident) loading the model (the first start takes a minute or two) ... [strata] starting the engine: reading the model's weights ... [strata] loading the experts the GPU does not hold into RAM (of about 39 GB) and locking part of them for the GPU. YOUR PC CAN BE SLOW OR STOP RESPONDING FOR 1-3 MINUTES NOW - this is normal. Please wait and don't close this window; the browser opens when it is ready. [strata] filling the GPU's expert cache (3250 experts, 4.37 GiB of VRAM) ... [strata] still starting (27 s) - please wait ... [strata] almost ready ... #### ENGINE (defaults) [strata] 2026-10-06 21:00:36 engine started: <runtime>/engine/strata --serve --pack <packs>/iq2_xs --native <models>/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001-of-00002.gguf --ple-gguf <models>/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf --expert-profile <runtime>/data/expert-profile.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp <mtp>/rt --max-context 262144 --kv int8 --kv-resident 32768 --vram-reserve-mib 1800 strata generate: PCIe probe: 24.0 GB/s host->device (best of 24.0 23.8 23.9 24.0) -> pcie_frac 0.55 (default 0.55) strata generate: this CPU has no AVX-512: the expert kernels run on AVX-2 (multi-token for the i-quant gate/up rows) strata generate: native pack: <packs>/iq2_xs experts (largest blob 1.51 MB), token embedding IQ4_XS in mapped host memory (322 MiB, 0.7 s) strata generate: 1466 MiB of weights loaded from <packs>/iq2_xs in 3.0 s (302 canonical tensors skipped: served natively) strata generate: 300 native projection matrices, 1474.85 MiB of weights, in 9.2 s strata generate: the SSD is kept awake while rows are read: one page of the table after 100 ms without a read, until 60 s after the last request (STRATA_SSD_KEEPALIVE=0 turns it off) strata generate: profile <runtime>/data/expert-profile.bin: 24576 ranked pairs, built for 24576 slots strata generate: KV streaming: 32768 of 262144 cells per QSA layer in VRAM, the K/V in 3.09 GiB of pinned RAM strata generate: PLE on, table 320001536 rows of <models>/Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf strata mtp: draft layer loaded, 835 MiB of VRAM (experts 675, dense 111), files read in 1.60 s (490 MiB/s) strata generate: experimental native Q5_K head, 337715200 bytes, in 0.7 s strata generate: GPU 0: NVIDIA GeForce RTX 3080, compute capability 8.6 ``` </details>
Author
Owner

@perronemirko commented on GitHub (Oct 6, 2026):

Are you sure that CUDA 13.0.88 is compatible with driver 595.91.07

<!-- gh-comment-id:6026542426 --> @perronemirko commented on GitHub (Oct 6, 2026): Are you sure that CUDA 13.0.88 is compatible with driver 595.91.07
Author
Owner

@Absolutely-not-a-coder commented on GitHub (Oct 7, 2026):

Yes. CUDA 13.0 needs driver 580 or newer on Linux, and 595.91.07 is newer than that. The same driver runs the 0.1.31 build of this engine on this box (same toolchain, same model) without problems, along with other CUDA 13 workloads.

One thing I found since, in fairness to everyone's time: overnight this machine logged a kernel memory corruption. Two unrelated kernel pointers were damaged by the same single flipped bit (bit 41), and the second one crashed the kernel. It runs 4× DDR5 at the XMP profile (6000 MT/s, 2 DIMMs per channel), which is beyond what this platform reliably supports. I doubt it explains the OOMs: six of six starts failed at the same step, and the memory accounting is consistent each time, which reads like accounting, not corruption. Still, I'll take the RAM back to stable speeds, run a memory test, then re-run 0.1.40.1 and report back before asking anyone to dig further.

<!-- gh-comment-id:6032337712 --> @Absolutely-not-a-coder commented on GitHub (Oct 7, 2026): Yes. CUDA 13.0 needs driver 580 or newer on Linux, and 595.91.07 is newer than that. The same driver runs the 0.1.31 build of this engine on this box (same toolchain, same model) without problems, along with other CUDA 13 workloads. One thing I found since, in fairness to everyone's time: overnight this machine logged a kernel memory corruption. Two unrelated kernel pointers were damaged by the same single flipped bit (bit 41), and the second one crashed the kernel. It runs 4× DDR5 at the XMP profile (6000 MT/s, 2 DIMMs per channel), which is beyond what this platform reliably supports. I doubt it explains the OOMs: six of six starts failed at the same step, and the memory accounting is consistent each time, which reads like accounting, not corruption. Still, I'll take the RAM back to stable speeds, run a memory test, then re-run 0.1.40.1 and report back before asking anyone to dig further.
Author
Owner

@Absolutely-not-a-coder commented on GitHub (Oct 7, 2026):

Possibly the same root cause as #771. This box has THP enabled=madvise and defrag=madvise, and our build is the same 82f46a8 (v0.1.40.1) as the latest report there. As far as I can tell, the 0.1.40 fix skips the arena's MADV_HUGEPAGE only when THP is [always], so with madvise the arena faults still go into direct reclaim and compaction. That fits what we saw: the default-mode start sat at "still starting" for about 9 minutes, and every failure came during the arena/complement allocation, with tens of GB of page cache not being given back (MemFree under 1 GB, Cached about 53 GB).

When I re-test after fixing the RAM, I'll try STRATA_NO_ARENA_THP=1 first, then THP never, and post the results here.

<!-- gh-comment-id:6032391078 --> @Absolutely-not-a-coder commented on GitHub (Oct 7, 2026): Possibly the same root cause as #771. This box has THP `enabled=madvise` and `defrag=madvise`, and our build is the same 82f46a8 (v0.1.40.1) as the latest report there. As far as I can tell, the 0.1.40 fix skips the arena's `MADV_HUGEPAGE` only when THP is `[always]`, so with `madvise` the arena faults still go into direct reclaim and compaction. That fits what we saw: the default-mode start sat at "still starting" for about 9 minutes, and every failure came during the arena/complement allocation, with tens of GB of page cache not being given back (MemFree under 1 GB, Cached about 53 GB). When I re-test after fixing the RAM, I'll try `STRATA_NO_ARENA_THP=1` first, then THP `never`, and post the results here.
Author
Owner

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

Thanks for the memory trace. We could not reproduce the kernel's behaviour on our machines, so 0.1.40.2 guards the allocation instead of fixing a known cause: before page-locking the expert copy the engine hands back the cached pages of the model files it has mapped; if the really free RAM still does not cover the copy, it takes the pages in 1 GiB steps while the RAM available (cgroup limits included) stays above the headroom, page-locks what it has and keeps the rest resident but pageable, with a warning only N of M GiB could be page-locked. The answers are the same; only the CPU copies of the pageable part are slower. Tested under 32 GB cgroups with the whole copy, half of it and none of it page-locked. STRATA_PIN_GUARD=0 turns the guard off, STRATA_PIN_RESERVE_GIB=N sets the RAM that must stay free. Could you try 0.1.40.2 on your box and attach the engine log if it still dies?

<!-- gh-comment-id:6038105122 --> @Niko1221 commented on GitHub (Oct 7, 2026): Thanks for the memory trace. We could not reproduce the kernel's behaviour on our machines, so 0.1.40.2 guards the allocation instead of fixing a known cause: before page-locking the expert copy the engine hands back the cached pages of the model files it has mapped; if the really free RAM still does not cover the copy, it takes the pages in 1 GiB steps while the RAM available (cgroup limits included) stays above the headroom, page-locks what it has and keeps the rest resident but pageable, with a warning `only N of M GiB could be page-locked`. The answers are the same; only the CPU copies of the pageable part are slower. Tested under 32 GB cgroups with the whole copy, half of it and none of it page-locked. STRATA_PIN_GUARD=0 turns the guard off, STRATA_PIN_RESERVE_GIB=N sets the RAM that must stay free. Could you try 0.1.40.2 on your box and attach the engine log if it still dies?
Author
Owner

@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.

<!-- gh-comment-id:6156044104 --> @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](https://github.com/Niko1221/Strata/releases/tag/v0.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.
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#515
No description provided.