mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1002] [CLOSED] arena: STRATA_ARENA_MMAP on Windows (mapped experts.bin, streamed first fill) #2957
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#2957
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/1002
Author: @mirifiuto135-debug
Created: 10/5/2026
Status: ❌ Closed
Base:
main← Head:windows-arena-mmap📝 Commits (10+)
fa16567setup: an earlier config that does not parse is skipped, not a crash; configs are written atomically (#459)749d957setup (--backend hip): a system ROCm without the HIP development files falls back to the wheels (#446)5a30024calibrate: the engine's arguments come from the server's engine_args; a failed tuning says why (#447)9f60d13serve, setup: name the small split card that caps the prompt chunk; setup recommends the big card alone (#448)eb8da1d/metrics: each request's speculative draft counts, and their sums in the totals (#457)6a09387setup (--gguf-dir): GGUFs Strata cannot run are named as such, with the --family/--model to use (#444)d6a91e2docs: the Coder is weaker outside code, Chinese/CJK text included; the unpruned sizes for that (#438)d8d4ad3Merge branch 'f-135-eng' into rel-0.1.357b600d5Merge branch 'f-135-small' into rel-0.1.35d9ab843Engine 0.1.35: Windows AMD uses its bundled HIP runtime (#468 #461), the low-RAM resident mode on Windows 32 GB PCs (#467), fixes #460 #459 #446 #447 #457 #448 #444; setup requires it📊 Changes
2 files changed (+84 additions, -14 deletions)
View changed files
📝
docs/DETAILS.md(+1 -1)📝
src/core/expert_source.cpp(+83 -13)📄 Description
What
STRATA_ARENA_MMAP=1(the mapped expert arena from #640) is POSIX-only. This ports it to Windows, insrc/core/expert_source.cpponly:experts.binmapped read-only withCreateFileMapping/MapViewOfFilePrefetchVirtualMemory; release:VirtualUnlockon the unlocked pages (drops them from the working set, they stay on the standby list)UnmapViewOfFileexperts.binthrough a writable mapping withload_experts_gguf, so the arena is never held in RAM (written to.tmp, then renamed). The POSIX first start is unchanged.One doc line in
docs/DETAILS.mdsays "Linux and Windows" instead of "Linux".Why
On a 128 GB Windows box the Q6 pack's arena (119.5 GiB) could not be served with a layer split:
--resident-budget-gibis refused together with a split, and without the mapped arena the whole arena has to sit in RAM. With this change it maps from disk.Measured
Windows 11, 3x RTX 5060 Ti 16 GB, 128 GB RAM, Qwen3.8 Flash-Next UD-Q6_K_XL converted pack, layer split auto,
--pcie-frac 0, MTP on:Not in this PR
Nothing else changes; AMD and Linux paths are untouched. I have not tested on a 32 GB RAM Windows machine.
Disclosure
The code was written with Claude Code (Anthropic) under my direction; I built and tested it on the hardware above. Happy to adjust anything.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.