mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4033] [Engine] Linux gfx1151, 96 GiB BIOS carve-out + ~30 GiB RAM: --expert-cache auto aborts with "free(): chunks in smallbin corrupted" after the arena cannot be reserved (0.2.4.1 / main) #1740
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#1740
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 @nabe2030 on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4033
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
On a Ryzen AI Max+ 395 (Radeon 8060S, gfx1151) with the BIOS set to a fixed 96 GiB of VRAM and about 30 GiB of system RAM left to the OS, starting Qwen3.8-Flash-Next UD-IQ4_XS (experts about 59.5 GB) with
--expert-cache autoends with glibc aborting the engine:The engine is killed by signal 6 (SIGABRT);
serve/server.pyreports "the engine process ended: killed by signal 6" and exits with status 1. The kernel logs__vm_enough_memory: ... bytes: 59525373952 not enough memory for the allocationin the same second. (On 0.1.40.2 the same start ended without any message after the arena line; on 0.2.4.1 there is a reason line, then the abort.)--mmap-experts --expert-cache 24576works on the same machine: 24576/24576 slots are filled in about 29 s and the engine runs at 256K context.This is not the same case as #3719 (a 61 GB APU with a small carve-out and a large GTT, where
autocomputes 0 slots). Here the carve-out is large and the GTT small, the experts do not fit in the pinned arena but would fit in VRAM, and the engine aborts with a corrupted heap instead of stopping with its reason.Suggestion: when the arena cannot be reserved, do not continue into code that corrupts the heap; stop with the printed reason, and when the VRAM is large enough fall back to
--mmap-experts(or say so in one line). The corruption looks like a bug on the failure path afterArenaExpertSourcereturns false; I did not look for the exact line.The working config and earlier measurements from this machine (with 0.1.40.2): https://github.com/nabe2030/strata-evo-x2-256k
Smallest steps or command that reproduce it
Take a working config for a 256K run and replace
--mmap-experts --expert-cache 24576with--expert-cache auto; start it withserve/server.py. Everything else unchanged:--pack ... --native ...-00001-of-00003.gguf --expert-profile data/expert-profile.bin --prefill 16384 --max-context 262144 --kv int8 --spec 4 --spec-min-p 0.5 --mtp ... --lookup-chain 3 --mtp-q4 all --vision.Reproduction status
Reproduced locally
Strata version
0.2.4.1 source build (
c33fa7ba, engine 0.1.49.1). The engine sources are identical to main7dd5cf18(the onlysrc/difference issrc/dsv41/ds4_gg_cpu.cpp).Graphics card, memory and system
Radeon 8060S (gfx1151), 96 GiB BIOS carve-out, 31 GiB RAM, 16 GiB swap, Ubuntu 26.04, Linux 7.0, ROCm TheRock 7.14.1 in user space,
vm.overcommit_memory=0,vm.nr_hugepages=0.Model, size and settings
Qwen3.8-Flash-Next UD-IQ4_XS, 256K context, int8 KV, MTP.
@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.