mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1325] file tier (Windows): read each expert from experts.bin and a mirror on a second drive at once #3384
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#3384
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/1325
Author: @malloc32
Created: 10/7/2026
Status: 🔄 Open
Base:
main← Head:pr/experts-mirror📝 Commits (5)
d3659bcprefill: batched unbuffered expert reads in the stager; close the experts.bin view once reads are unbufferedf577faafile tier: STRATA_DIRECT_SPLIT_KIB reads a large unbuffered request as several slices in flight together (Windows, experiment)b39f4ddfile tier: STRATA_EXPERTS_MIRROR spreads each unbuffered read over experts.bin and a copy on another drive (Windows, experiment)40d3425file tier: the experts.bin mirror is checked against 16 sampled 64 KiB blocks before it is used300de9fbench: reading each expert from two drives at once on Windows, measured (990 PRO + EXCERIA PRO)📊 Changes
5 files changed (+287 additions, -32 deletions)
View changed files
➕
bench/results/2026-10-07-windows-experts-mirror/README.md(+50 -0)📝
include/strata/core/expert_source.hpp(+18 -0)📝
src/core/expert_source.cpp(+168 -14)📝
src/prefill/prefill.cpp(+43 -18)📝
src/program/generate.cpp(+8 -0)📄 Description
AI-written. This PR was prepared by an AI (Claude Opus 5.5, via Claude Code) at the submitter's request; the code and the measurements (including the read-latency micro-benchmark) were done by the AI on the submitter's machine. The idea of using both drives came from the submitter, who reviewed it before opening.
Depends on #1323 (the #833 port is this branch's first commit); review that one first.
Update 2026-10-07: rebased onto 0.1.40.2 (
e8ca9af) together with #1323; no conflicts in this branch's own commits. The mirror has been in daily use here since (checked again after a reboot).What
STRATA_EXPERTS_MIRROR=<path>: a byte-identical copy ofexperts.binon another drive. Each unbuffered request is read as two halves, one per drive, in flight together. Before use, the copy's size and 16 sampled 64 KiB blocks (first and last included) are compared with the original; a stale copy is refused and the reads stay on one drive.STRATA_DIRECT_SPLIT_KIB=K: a request larger than K KiB is read as K-KiB slices issued together (alternating drives with a mirror).Windows only,
experts.binonly. Without the variables nothing changes.Measured
Details in
bench/results/2026-10-07-windows-experts-mirror/.Cost: a second copy of
experts.bin(50 GB here), which has to be copied again whenever the pack changes.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.