mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4548] [Engine] Linux md RAID0 backed by NVMe receives the SATA 0.45 GB/s planner assumption #2054
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#2054
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?
Originally created by @cmdruid on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4548
Area
[Engine] Linux storage detection / host-aware prefill planner
Finding
On v0.2.7 (
5e8a4cca7d690ac60ca37eb09e7d0e010099ad6d, engine 0.1.52), a Linux md RAID0 backed by two Samsung 9100 PRO NVMe drives is assigned the SATA fallback, 0.45 GB/s.on_rotational_disk()resolves the filesystem device tomd0and finds its nonrotational queue.drive_read_gbps()recognizes NVMe only when that resolved name starts withnvme; it does not inspect the md device's slaves. The log therefore calls this NVMe-backed array a SATA-class SSD (assumed).Source:
github.com/Niko1221/Strata@5e8a4cca7d/src/program/generate.cpp (L1428)Local evidence
Topology, read through sysfs:
With inference stopped, I read an existing GGUF file on this filesystem using read-only
O_DIRECT, an mmap-aligned buffer, and 4096-byte-aligned offsets. Each row/rep read 8 GiB; random offsets used a fixed seed. No writes, global cache drop, or RAID changes. Decimal GB/s:Total: 48 GiB in a bounded ~4.22-second calibration.
/proc/diskstatsrecorded 51,539,607,552 bytes read on md0, exactly matching the requested 48 GiB; the two NVMe device deltas sum to the same count. These are short access-pattern samples, not a thermal steady-state bandwidth guarantee. A conservative candidate override would be 6.0 GB/s (the lowest measured value rounded down), not the sequential peak or a sum of advertised drive rates.Planner effect and limits
The captured workload uses two 16 GiB CUDA cards, mmap experts, native MTP, a 40 GiB memory cgroup with no swap, and 262144 context. The unmodified planner logged 55.4 GiB experts, 14.1 GiB GPU expert cache, 41.4 GiB file tier, 36.2 GiB available page cache, PCIe 28.9 GB/s, and drive 0.45 GB/s (md0 is a SATA-class SSD (assumed)). It retained chunk 8192 / ring 96; its estimated prompt file set was 48.7 GiB.
I have not demonstrated a worse selected plan or an inference speedup from
STRATA_SSD_GBPSon this host. The independent qualification campaign stopped candidate advancement at a strict-output gate, so an override was not selected or benchmarked. This report establishes a topology/rate-assumption mismatch, not a measured throughput regression. The baseline override state remains unset.Suggested scope
Handle partitions and stacked block devices conservatively. For md/dm stacks, consider inspecting slaves (with recursion/loop guards), or explicitly identifying the topology as unknown/stacked rather than SATA. Detecting NVMe backing should not imply that advertised rates can be summed or that an arbitrary array sustains those rates; retain the measured override.
Related: #2824 introduced the host-aware planner; #3518 reports a different Windows planner-choice regression and discusses an assumed drive rate. I found no existing md0/RAID topology issue in the issue/PR search. This is independent of the prefetch-gate correctness fix in #4538.
@Niko1221 commented on GitHub (Nov 5, 2026):
Thanks for taking the time to report this.
Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.