[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

Closed
opened 2026-11-04 01:53:36 +07:00 by bsakaguchi · 1 comment
Owner

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 auto ends with glibc aborting the engine:

strata generate: ArenaExpertSource: the arena could not be reserved (59523276800 B): MAP_HUGETLB unavailable (needed 28383 2 MiB pages, vm.nr_hugepages=0); using 4 KB pages
prefill gemm: hipBLASLt tuning enabled (90 rows, gfx1151, version 100401)
free(): chunks in smallbin corrupted

The engine is killed by signal 6 (SIGABRT); serve/server.py reports "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 allocation in 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 24576 works 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 auto computes 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 after ArenaExpertSource returns 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 24576 with --expert-cache auto; start it with serve/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 main 7dd5cf18 (the only src/ difference is src/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.

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 auto` ends with glibc aborting the engine: ``` strata generate: ArenaExpertSource: the arena could not be reserved (59523276800 B): MAP_HUGETLB unavailable (needed 28383 2 MiB pages, vm.nr_hugepages=0); using 4 KB pages prefill gemm: hipBLASLt tuning enabled (90 rows, gfx1151, version 100401) free(): chunks in smallbin corrupted ``` The engine is killed by signal 6 (SIGABRT); `serve/server.py` reports "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 allocation` in 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 24576` works 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 `auto` computes 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 after `ArenaExpertSource` returns 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 24576` with `--expert-cache auto`; start it with `serve/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 main `7dd5cf18` (the only `src/` difference is `src/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.
Author
Owner

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

  1. Re-test on 0.2.11. 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:6659865379 --> @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: 1. Re-test on 0.2.11. 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#1740
No description provided.