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#2596
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/358
Author: @sergqwer
Created: 10/1/2026
Status: ❌ Closed
Base:
main← Head:pr/start-register📝 Commits (1)
59d97b3Start: register the expert arena per layer on a thread ahead of the readers (Windows; part 2 of #285)📊 Changes
4 files changed (+113 additions, -15 deletions)
View changed files
📝
include/strata/core/expert_source.hpp(+3 -2)📝
include/strata/core/pinned.hpp(+16 -2)📝
src/core/expert_source.cpp(+42 -6)📝
src/core/pinned.cu(+52 -5)📄 Description
Part 2 of the #285 split. One commit on 0.1.38 (part 1, #357, is in 0.1.38). The start times below were measured on 0.1.31; the checksums on 0.1.38 are in the comments.
0.1.31 registers the whole arena with CUDA before the first byte is read. With 4 KB pages, that registration is ~1.5 s of the start that nothing hides (IQ2_XS: 33 GiB). Every account without the Lock Pages privilege gets 4 KB pages.
What changes:
PinnedArena(bytes, bounds, Deferred)only reserves the arena.register_slices()registers the per-layer slices in order on a thread and publishes how many are done.load_experts_gguf(buffered and unbuffered),load_experts_rangesandload_experts_direct.cudaHostRegisterruns on it corrupted the arena under WDDM, even on large pages.STRATA_ARENA_PIN_GIB, multi-GPU under WDDM);STRATA_DEFERRED_REGISTER=0restores the old order.STRATA_VERIFY_ARENA=1prints the loaded arena's FNV-1a checksum (for tests).Checksums match. The old order and the deferred one give the same checksum across:
Start times
Setup:
generateof 16 tokens.128 GB (the file cache can keep the files), two to three runs each:
STRATA_NO_LARGEPAGES=1), 0.1.31The cold spread with large pages comes from the drive: the cache flush reads 142 GB from the same NVMe. A/B runs of this branch with
STRATA_DEFERRED_REGISTER=0(19.9 s) and withSTRATA_UNBUFFERED_LOAD=0(17.6 / 18.8 s) fall inside that same spread.An emulated 64 GB PC (a locked-pages RAM ballast leaves 58 GiB):
With large pages under that memory pressure, the allocation itself takes 6-12 s and varies from run to run. Windows has to gather contiguous 2 MB pages before the first byte is read, hence the wide ranges in both rows.
Part 3 is dropped
I built and measured part 3 too: the arena opened on its own thread beside the dense weights, plus a cuBLAS handle made on a thread. It gave no net gain here:
So it is not part of the split.
🤖 Generated with Claude Code
https://claude.ai/code/session_01VZy1yKaDDiA8a7svdwaHio
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.