mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#4759
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/3730
Author: @baptisterajaut
Created: 10/22/2026
Status: 🔄 Open
Base:
main← Head:fix/numa-split-arena📝 Commits (1)
5a13bbefix: keep the automatic NUMA pool off when the experts come from the arena path📊 Changes
5 files changed (+53 additions, -4 deletions)
View changed files
📝
docs/DETAILS.md(+6 -3)📝
include/strata/kernels/cpu/pool.hpp(+6 -0)📝
src/kernels/cpu/pool.cpp(+11 -1)📝
src/kernels/cpu/pool_tasks_test.cpp(+27 -0)📝
src/program/generate.cpp(+3 -0)📄 Description
Problem and result
Since 0.2.2 the NUMA pool turns itself on as soon as it finds two nodes with CPUs, the arena path included, where the experts' memory is not placed per node. There the split only adds workers on the second socket (19 instead of 10 in #3708) that read memory partly on the other node, with a cross-socket pool barrier per layer. #3708 measured it on 2x Xeon Gold 6226R with every expert in VRAM: 3.7K prefill at 1697 tok/s with the split against 1830 without, decode between 40 and 60 tok/s from run to run.
With this change the arena path keeps the one-socket pool and says why at start:
The file path (FileExpertSource, which places memory per node) is unchanged, and
STRATA_NUMA_SPLIT=1still forces the split on the arena path.Related discussion
#3708. The "arena path: memory is not placed per node" warning it quotes comes from my split branch (
2496795b), written when the split was opt-in (#3201).Approach
generate.cppsets a veto (set_numa_pool_veto) before the pool is built when the expert source is the arena.ExpertPoolthen skips the automatic attempt the waySTRATA_NUMA_POOL=0does (same worker count, same cores) and logs the reason. An explicitSTRATA_NUMA_SPLIT=1is not affected. Placing the arena per node would be the real fix, but it touches ArenaExpertSource's allocation and pinning; the veto gives the arena path its 0.2.1 behaviour back until then.docs/DETAILS.mdadds the arena path to the cases where the split does not run.Validation
Passed:
pool_tasks_test,pool_cores_test,numa_pool_test,pool_plan_test: rc 0, with #3706's test fix applied (not part of this branch). The new block inpool_tasks_testuses the fake two nodes: with the veto, the pool has the workers and cores ofSTRATA_NUMA_POOL=0and no split (pool tasks: fake two nodes, veto: split off, 11 workers as with STRATA_NUMA_POOL=0); with the veto andSTRATA_NUMA_SPLIT=1, the split still runs with 2 slices.--resident-budget-gib 55(FileExpertSource), 2x Xeon Gold 6226, 64 GB, RTX 3090. The start-up still showsNUMA split on: slice 0 = node 0 (12 threads), slice 1 = node 1 (11 threads)and the per-node placement; decode 48.2 / 54.3 / 55.4 tok/s over 3 turns.011c9e60is v0.2.2), CUDA 13.2, Debian 12.Failed: none observed.
Not run:
pool.cppandgenerate.cppare part of them, and I have no toolchain for them. The change is plain C++ with no backend code.Limits
The arena path keeps the one-socket pool even where the split could help (experts partly on the CPU), until the arena places its memory per node.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.