[GH-ISSUE #4548] [Engine] Linux md RAID0 backed by NVMe receives the SATA 0.45 GB/s planner assumption #2054

Closed
opened 2026-11-04 01:56:17 +07:00 by bsakaguchi · 1 comment
Owner

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 to md0 and finds its nonrotational queue. drive_read_gbps() recognizes NVMe only when that resolved name starts with nvme; 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:

md0: level raid0, queue/rotational = 0
slaves: nvme0n1, nvme2n1
both component devices: Samsung SSD 9100 PRO 1TB

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:

Access Workers Rep 1 Rep 2
16 MiB sequential 1 20.54 22.81
2 MiB random 1 6.05 9.79
2 MiB random 8 16.05 22.71

Total: 48 GiB in a bounded ~4.22-second calibration. /proc/diskstats recorded 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_GBPS on 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.

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 to `md0` and finds its nonrotational queue. `drive_read_gbps()` recognizes NVMe only when that resolved name starts with `nvme`; it does not inspect the md device's slaves. The log therefore calls this NVMe-backed array a SATA-class SSD (assumed). Source: https://github.com/Niko1221/Strata/blob/5e8a4cca7d690ac60ca37eb09e7d0e010099ad6d/src/program/generate.cpp#L1428 ### Local evidence Topology, read through sysfs: ```text md0: level raid0, queue/rotational = 0 slaves: nvme0n1, nvme2n1 both component devices: Samsung SSD 9100 PRO 1TB ``` 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: | Access | Workers | Rep 1 | Rep 2 | |---|---:|---:|---:| | 16 MiB sequential | 1 | 20.54 | 22.81 | | 2 MiB random | 1 | 6.05 | 9.79 | | 2 MiB random | 8 | 16.05 | 22.71 | Total: 48 GiB in a bounded ~4.22-second calibration. `/proc/diskstats` recorded **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_GBPS` on 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.
Author
Owner

@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:

  1. Re-test on 0.2.11. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6660678237 --> @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: 1. Re-test on 0.2.11. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#2054
No description provided.