mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #129] [CLOSED] core: add optional shared expert arena backing #2472
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#2472
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/129
Author: @rhgo1749
Created: 9/29/2026
Status: ❌ Closed
Base:
main← Head:upstream/shared-arena-backing📝 Commits (2)
11b26facore: add guarded shared expert arena backing58542b5docs: limit shared arena backing to dev shm📊 Changes
7 files changed (+330 additions, -10 deletions)
View changed files
📝
CMakeLists.txt(+6 -0)📝
include/strata/core/expert_source.hpp(+1 -1)📝
include/strata/core/pinned.hpp(+8 -1)📝
src/core/expert_source.cpp(+117 -3)📝
src/core/pinned.cu(+126 -4)➕
src/core/pinned_shared_test.cpp(+61 -0)📝
src/program/generate.cpp(+11 -1)📄 Description
Follow-up to #127, limited to the shared-arena piece you invited as a PR.
What this changes
--shared-expert-arena FILEbacking for the resident expert arena.PinnedArenauses a MAP_SHARED file with a 4 KiB header when that option is set./dev/shm, not ordinary SSD storage.The fork used an mmap interception wrapper to prove the idea. This version makes the backing explicit in
PinnedArena/ArenaExpertSourceinstead, so unrelated mappings are not affected.Validation
v0.1.26(ac8b251).pinned_shared_test: same-pack mappings observe the same bytes; different-pack and size mismatches are refused.strataCUDA build passes locally with CUDA 13.4 / sm_120.--mmap-experts+--shared-expert-arenais rejected with exit 2.Deliberate non-goals
This is intended to be the smallest upstreamable primitive needed for the request-per-GPU design from #127.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.