mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5196] [Engine] "Keep experts in RAM" (--resident-experts) falls back to mmap: "cannot determine available memory for the resident-memory safety check" (0.2.10, Linux) #3093
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#3093
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 @DO1FJN on GitHub (Nov 4, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5196
Environment
#1 SMP PREEMPT_DYNAMICWhat I did
Fresh install today. In the model settings I set "Low-RAM mode" (German UI: "Modus für wenig RAM") to the middle option "Keep experts in RAM" (German: "Experten im RAM belassen"). The app starts the engine with
--resident-experts. Also tried "Low-RAM-mode" set on "auto".Expected
The experts that are not held in the GPU cache are copied into RAM, and system RAM usage grows accordingly.
Actual
The engine silently falls back to
--mmap-experts. RAM usage in the monitor does not grow, and the log shows0.0 GiB RAM copyandRAM 0 blobs.This happens with plenty of free RAM: the UI showed 26.9 of 31.2 GB free before loading, nothing else was running, and the memory guard in the same log reports
available 26.6 GiB (MemAvailable 26.6 GiB)withsource: meminfo.Log
Full engine command line (from the log):
strata --serve --pack .../coder-iq1_m --native ...IQ1_M-00001-of-00002.gguf --ple-gguf ...00002-of-00002.gguf --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp ... --max-context 32768 --kv int8 --resident-experts --ple-io mmap --vram-reserve-mib 1024The same warning appears in all my runs with
--resident-experts(4 runs on 2026-11-03/04, with different amounts of RAM in use).Notes
FileExpertSourcecheck cannot. It looks like that code path reads memory info from a different source, but I have not looked into the code.--resident-budget-gib, according to the same message.strata-coder-iq1_m.logstrata-coder-iq1_m.log
@github-actions[bot] commented on GitHub (Nov 4, 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 (Nov 4, 2026):
Thanks, this follows the format now.
@ThePouX01 commented on GitHub (Nov 7, 2026):
Same issue on Linux with Strata 0.2.11 / engine 0.1.58 (CUDA 13), one extra detail: --memory-limit-mib is used by the memory guard but not by FileExpertSource.
Setup: Ubuntu 24.04 container on TrueNAS SCALE 27 (64 GB RAM host, RTX PRO 2000 Blackwell 16 GB), Qwen3.8-Flash-Next IQ3_S, 128K context. The container has no memory limit, so /proc/meminfo shows ~1 TB, which is why I set --memory-limit-mib.
Flags: --resident-experts --memory-limit-mib 30720 --ple-io direct --conversation-cache-mib 4096
Log:
So the memory guard and the prefill planner see the 30 GiB limit, but the resident check still falls back to plain mmap. Expected: the resident check uses the same memory source as the guard and keeps the hottest experts that fit under the limit.
Speed with plain mmap: ~8-12 tok/s. The same machine runs Gyro-M with the full resident arena at 42-73 tok/s, so a working RAM budget would help a lot on 64 GB hosts.