[GH-ISSUE #1910] [Regression] Prefill 35-55% slower on v0.1.42 vs v0.1.41 on dual 2080 Ti (cold long prefix) #755

Closed
opened 2026-11-04 01:45:36 +07:00 by bsakaguchi · 7 comments
Owner

Originally created by @wszhoho on GitHub (Oct 11, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1910

What do you want to do?

Report a prefill throughput regression between v0.1.41 and v0.1.42 on dual-GPU CUDA hardware, in the hope that it is a fixable regression rather than an intended trade-off.

Environment

  • Hardware: 2 × RTX 2080 Ti (11 GB each, 22 GB total VRAM), 62 GB RAM, Linux
  • Model: IQ3_S (GSQ-RCO, Qwen3.8-Flash-Next family), 256K context
  • Always measured with a cold 40K-token prompt (27,318 prompt tokens), same prompt across all runs

Measured prefill (cold 40K prefix)

Build / config Prefill (tok/s)
v0.1.41 ~1150–1280
v0.1.42, defaults ~790
v0.1.42, --no-prefill-borrow ~565
v0.1.42, STRATA_SPLIT_OWN=1 ~530
v0.1.42, STRATA_ROUTE_TAIL_SKIP=0 ~800 (still far below v0.1.41)

So on this hardware v0.1.42 is 35–55% slower than v0.1.41 for a cold long prefix, and none of the exposed knobs (--no-prefill-borrow, STRATA_SPLIT_OWN=1, STRATA_ROUTE_TAIL_SKIP=0) restores v0.1.41 speed. This suggests a lower-level regression in the prefill path (e.g. the BF16 prefill change, chunk scheduling, or the per-card weight/session split) rather than a single settable option.

Question for the maintainers

Was v0.1.42's prefill path changed in a way that could explain this on small-VRAM dual-GPU layer-split setups (22 GB total)? If so, is there an intended opt-in/opt-out equivalent to v0.1.41's behavior that we are missing?

(Not a criticism — just flagging the regression so it can be triaged. Happy to provide more measurements or a reproducible script.)

Originally created by @wszhoho on GitHub (Oct 11, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/1910 ## What do you want to do? **Report a prefill throughput regression between v0.1.41 and v0.1.42** on dual-GPU CUDA hardware, in the hope that it is a fixable regression rather than an intended trade-off. ### Environment - Hardware: 2 × RTX 2080 Ti (11 GB each, 22 GB total VRAM), 62 GB RAM, Linux - Model: IQ3_S (GSQ-RCO, Qwen3.8-Flash-Next family), 256K context - Always measured with a cold 40K-token prompt (27,318 prompt tokens), same prompt across all runs ### Measured prefill (cold 40K prefix) | Build / config | Prefill (tok/s) | |---|---| | v0.1.41 | ~1150–1280 | | v0.1.42, defaults | ~790 | | v0.1.42, `--no-prefill-borrow` | ~565 | | v0.1.42, `STRATA_SPLIT_OWN=1` | ~530 | | v0.1.42, `STRATA_ROUTE_TAIL_SKIP=0` | ~800 (still far below v0.1.41) | So on this hardware v0.1.42 is 35–55% slower than v0.1.41 for a cold long prefix, and none of the exposed knobs (`--no-prefill-borrow`, `STRATA_SPLIT_OWN=1`, `STRATA_ROUTE_TAIL_SKIP=0`) restores v0.1.41 speed. This suggests a lower-level regression in the prefill path (e.g. the BF16 prefill change, chunk scheduling, or the per-card weight/session split) rather than a single settable option. ### Question for the maintainers Was v0.1.42's prefill path changed in a way that could explain this on small-VRAM dual-GPU layer-split setups (22 GB total)? If so, is there an intended opt-in/opt-out equivalent to v0.1.41's behavior that we are missing? (Not a criticism — just flagging the regression so it can be triaged. Happy to provide more measurements or a reproducible script.)
Author
Owner

@wszhoho commented on GitHub (Oct 11, 2026):

Quick note following the commit by Maddox Wong: on his gfx1100 (RX 7900 XT, 24 GB, AMD) the interleaved 4K pairs show v0.1.42 about +2% ahead of v0.1.41, so the prefill regression does not reproduce there.

The regression we reported is specific to NVIDIA CUDA + small-ish VRAM + a dual-GPU layer split. We believe it is tied to the prefill borrow path: in generate.cpp (~L2048-2112) the borrow decision is governed by STRATA_SPLIT_OWN, and on small-VRAM cards (reserve_mib * 100 > 12 * total_mib) the code forces own = false, i.e. it borrows experts from the other card for every request stream and copies them back. With each card already holding nearly all of its experts, that per-request borrow/copy is expensive for a cold long prefix.

  • Our hardware: 2 × RTX 2080 Ti (11 GB each), 62 GB RAM, Linux
  • Cold 40K-token prefix (27,318 prompt tokens), same prompt throughout:
    • v0.1.41: ~1150-1280 tok/s
    • v0.1.42 defaults: ~790
    • v0.1.42 --no-prefill-borrow: ~565
    • v0.1.42 STRATA_SPLIT_OWN=1: ~530
    • v0.1.42 STRATA_ROUTE_TAIL_SKIP=0: ~794 (still far below 0.1.41)

None of the exposed knobs restore v0.1.41 speed, which is why we suspect a lower-level regression in the prefill path rather than a single option. Happy to run any test config or capture engine logs to help narrow it down.

<!-- gh-comment-id:6106671445 --> @wszhoho commented on GitHub (Oct 11, 2026): Quick note following the commit by Maddox Wong: on his gfx1100 (RX 7900 XT, 24 GB, AMD) the interleaved 4K pairs show v0.1.42 about +2% **ahead** of v0.1.41, so the prefill regression does **not** reproduce there. The regression we reported is specific to **NVIDIA CUDA + small-ish VRAM + a dual-GPU layer split**. We believe it is tied to the prefill **borrow** path: in `generate.cpp` (~L2048-2112) the borrow decision is governed by `STRATA_SPLIT_OWN`, and on small-VRAM cards (`reserve_mib * 100 > 12 * total_mib`) the code forces `own = false`, i.e. it borrows experts from the other card for every request stream and copies them back. With each card already holding nearly all of its experts, that per-request borrow/copy is expensive for a cold long prefix. - Our hardware: 2 × RTX 2080 Ti (11 GB each), 62 GB RAM, Linux - Cold 40K-token prefix (27,318 prompt tokens), same prompt throughout: - v0.1.41: ~1150-1280 tok/s - v0.1.42 defaults: ~790 - v0.1.42 `--no-prefill-borrow`: ~565 - v0.1.42 `STRATA_SPLIT_OWN=1`: ~530 - v0.1.42 `STRATA_ROUTE_TAIL_SKIP=0`: ~794 (still far below 0.1.41) None of the exposed knobs restore v0.1.41 speed, which is why we suspect a lower-level regression in the prefill path rather than a single option. Happy to run any test config or capture engine logs to help narrow it down.
Author
Owner

@wszhoho commented on GitHub (Oct 11, 2026):

Update: root cause located — v0.1.42 mmaps the whole PLE shard and re-reads it during decode

I traced this further on the same hardware (dual RTX 2080 Ti 11 GB, 62 GiB RAM, IQ3_S / GSQ-RCO, 256K context). The regression is not only in cold prefll; decode also reads the disk and runs slower on v0.1.42.

The telling A/B (identical minimal config, same 200-token request)

v0.1.41 v0.1.42
read_bytes delta from one 200-token request ~31 MB ~253 MB (8× more)
mmap of the PLE shard (*-00002-of-00002.gguf, 27 GB, per_layer_token_embd.weight) not mapped (0 mappings) whole 27 GB shard mmap'd (27,465 MB)
engine RSS 49.5 GB 56.1 GB
engine VSZ 81.7 GB 108.9 GB
decode (minimal config) 37.6 tok/s 10–25 tok/s

/proc/<pid>/maps shows v0.1.42 maps the entire 27 GB second shard read-only; v0.1.41 does not map it. The engine then touches that mapping during decode, so read_bytes climbs by ~253 MB per request (mostly hitting the OS page cache / standby list, but constantly pulling pages). ngram.cpp (the PLE reader) is byte-identical between the two tags — the difference is in how generate.cpp loads/maps the PLE shard on the native path.

Below are two live dashboard reads while a session was decoding. Same model, same machine — the disk-read column shows the difference: v0.1.41 is at ~0.1 MB/s, v0.1.42 at ~410 MB/s during prefll.

v0.1.41
Image

v0.1.42
Image

For this low-VRAM dual-2080-Ti setup, v0.1.41 is the practical choice: it does not map the PLE shard, reads ~31 MB per request, and decodes at 37.6 tok/s. Happy to provide more traces or test a fix if you'd like (e.g. keeping the PLE table resident or reading it row-bounded like v0.1.41) — I can test patches on this box.

<!-- gh-comment-id:6109008774 --> @wszhoho commented on GitHub (Oct 11, 2026): ### Update: root cause located — v0.1.42 mmaps the whole PLE shard and re-reads it during decode I traced this further on the same hardware (dual RTX 2080 Ti 11 GB, 62 GiB RAM, IQ3_S / GSQ-RCO, 256K context). The regression is not only in cold prefll; **decode also reads the disk and runs slower** on v0.1.42. #### The telling A/B (identical minimal config, same 200-token request) | | v0.1.41 | v0.1.42 | |---|---|---| | read_bytes delta from one 200-token request | **~31 MB** | **~253 MB (8× more)** | | **mmap of the PLE shard** (`*-00002-of-00002.gguf`, 27 GB, `per_layer_token_embd.weight`) | **not mapped** (0 mappings) | **whole 27 GB shard mmap'd** (27,465 MB) | | engine RSS | 49.5 GB | 56.1 GB | | engine VSZ | 81.7 GB | 108.9 GB | | decode (minimal config) | **37.6 tok/s** | **10–25 tok/s** | `/proc/<pid>/maps` shows v0.1.42 maps the entire 27 GB second shard read-only; v0.1.41 does **not** map it. The engine then touches that mapping during decode, so `read_bytes` climbs by ~253 MB per request (mostly hitting the OS page cache / standby list, but constantly pulling pages). `ngram.cpp` (the PLE reader) is byte-identical between the two tags — the difference is in how `generate.cpp` loads/maps the PLE shard on the native path. Below are two live dashboard reads while a session was decoding. Same model, same machine — the disk-read column shows the difference: v0.1.41 is at ~0.1 MB/s, v0.1.42 at ~410 MB/s during prefll. v0.1.41 <img width="1214" height="508" alt="Image" src="https://github.com/user-attachments/assets/b67bec39-d251-4028-876d-545154db8d5a" /> v0.1.42 <img width="1211" height="506" alt="Image" src="https://github.com/user-attachments/assets/481a5d66-2535-48b5-8f60-206562f1e89c" /> For this low-VRAM dual-2080-Ti setup, v0.1.41 is the practical choice: it does not map the PLE shard, reads ~31 MB per request, and decodes at 37.6 tok/s. Happy to provide more traces or test a fix if you'd like (e.g. keeping the PLE table resident or reading it row-bounded like v0.1.41) — I can test patches on this box.
Author
Owner

@Niko1221 commented on GitHub (Oct 11, 2026):

Thank you for the careful numbers and for listing what you already tried.

We could not reproduce it so far. A cold 27,300-token prompt, 0.1.41 against 0.1.42, 5 interleaved pairs each, same output: 2x Radeon AI PRO R9700 IQ3_S +4.3% and +1.1% (with ~11 GB-class caches), 2x RTX A4000 IQ3_XXS 0.0%, +0.4% (10.9 GB per card), -0.1% (--max-context 262144), 0.0% (--resident-experts). We have no Turing card. Between the two versions these CUDA-side changes could act differently on 11 GB 2080 Tis: the automatic layer split avoids one- or two-layer stages and a small cache now limits every card's prompt chunk (#1616), each stage's lend region is sized and pinned separately, and a GEMM shape that cuBLAS refuses now falls back to another algorithm.

Could you post, from both versions' start-up logs: the layer split ... runs layers line, the prompt chunk line, any lend and borrowed slots lines; and one 0.1.42 (or 0.1.43) run with the split 0.1.41 chose forced via --layer-split K? That tells us whether the split or chunk choice is the difference.

<!-- gh-comment-id:6110177528 --> @Niko1221 commented on GitHub (Oct 11, 2026): Thank you for the careful numbers and for listing what you already tried. We could not reproduce it so far. A cold 27,300-token prompt, 0.1.41 against 0.1.42, 5 interleaved pairs each, same output: 2x Radeon AI PRO R9700 IQ3_S +4.3% and +1.1% (with ~11 GB-class caches), 2x RTX A4000 IQ3_XXS 0.0%, +0.4% (10.9 GB per card), -0.1% (--max-context 262144), 0.0% (--resident-experts). We have no Turing card. Between the two versions these CUDA-side changes could act differently on 11 GB 2080 Tis: the automatic layer split avoids one- or two-layer stages and a small cache now limits every card's prompt chunk (#1616), each stage's lend region is sized and pinned separately, and a GEMM shape that cuBLAS refuses now falls back to another algorithm. Could you post, from both versions' start-up logs: the `layer split ... runs layers` line, the `prompt chunk` line, any `lend` and `borrowed slots` lines; and one 0.1.42 (or 0.1.43) run with the split 0.1.41 chose forced via `--layer-split K`? That tells us whether the split or chunk choice is the difference.
Author
Owner

@0sy commented on GitHub (Oct 11, 2026):

Edit: Nevermind, not Strata related. UnRaid uses fuse layer - once I mounted the direct path vs symlink, the mem got allocated correctly.

Sorry

_Additional info. Running Strata 0.1.42 containerized on UnRaid 7.3.2.

128gb system ram, dual rtx 3060 12gb vram, for a total of 24gb vram.

Strata v0.1.42, Linux Docker on Unraid, IQ3_S, dual RTX 3060,
128 GiB RAM, --ulimit memlock=-1.

With --ple-io ram:

  • engine logs: "PLE table locked in RAM (--ple-io ram) in 28.5 s"
  • /proc//status: VmLck 28125136 kB
  • PLE mapping in /proc//smaps:
    Size: 28125136 kB
    Rss: 0 kB
    Locked: 0 kB
    VmFlags: rd mr mw me lo
  • /proc/meminfo:
    Mlocked: 352 kB
    Unevictable: 3424 kB
  • process RSS remains ~55.9 GB
  • container remains healthy; no OOM

The VMA receives VM_LOCKED, but none of the PLE pages are resident.
The success log therefore does not establish that the table was populated._

<!-- gh-comment-id:6111225717 --> @0sy commented on GitHub (Oct 11, 2026): Edit: Nevermind, not Strata related. UnRaid uses fuse layer - once I mounted the direct path vs symlink, the mem got allocated correctly. Sorry _Additional info. Running Strata 0.1.42 containerized on UnRaid 7.3.2. 128gb system ram, dual rtx 3060 12gb vram, for a total of 24gb vram. Strata v0.1.42, Linux Docker on Unraid, IQ3_S, dual RTX 3060, 128 GiB RAM, --ulimit memlock=-1. With --ple-io ram: - engine logs: "PLE table locked in RAM (--ple-io ram) in 28.5 s" - /proc/<pid>/status: VmLck 28125136 kB - PLE mapping in /proc/<pid>/smaps: Size: 28125136 kB Rss: 0 kB Locked: 0 kB VmFlags: rd mr mw me lo - /proc/meminfo: Mlocked: 352 kB Unevictable: 3424 kB - process RSS remains ~55.9 GB - container remains healthy; no OOM The VMA receives VM_LOCKED, but none of the PLE pages are resident. The success log therefore does not establish that the table was populated._
Author
Owner

@wszhoho commented on GitHub (Oct 12, 2026):

Here is the data you asked for, plus the disk-read measurement that pins down the regression.

Environment (unchanged)

  • 2 × RTX 2080 Ti (11 GB each), 62 GiB RAM, Linux
  • IQ3_S / GSQ-RCO, 256K context, engine built from the same build/strata
  • Identical production config across all three runs (--spec 2 --spec-min-p 0.5 --max-context 262144 --kv int8 --kv-resident 32768 --pipeline-windows 2 --trim-stage-weights --layer-split 24 --vision)

Lines you asked for (identical across 0.1.41 / 0.1.42 / 0.1.43)

strata generate: layer split: CUDA1 runs layers 24-47, expert cache 2729 slots (5.48 GiB), 2729 of its 12288 profiled pairs
strata generate: layer split: CUDA0 runs layers 0-23
strata serve: prompt chunk auto: 8192 tokens, a 384-slot ring
strata serve: the prompt path borrows 2438 CUDA0 cache slots (4.38 GiB)
strata serve:   CUDA1 prompt path borrows 2175 of its 2729 slots (4.38 GiB)

The split (24/24), chunk size (8192) and borrow slots (2438/2175) are byte-for-byte identical across all three tags.

0.1.43 forced via --layer-split 24 (your suggested test)

Ran 0.1.43 with an explicit --layer-split 24. Prefill still does not recover:

strata serve: prompt 12099 tokens = 0 reused + 12099 read in 87069 ms (139.0 tok/s), 180 generated in 5754 ms (31.3 tok/s)

139 tok/s vs 0.1.41's 833 tok/s — the split is not the difference.

Cold long-prefix comparison (same 12K-token prompt)

prefill tok/s decode tok/s disk read_bytes / 12K request
0.1.41 833 30.8 ~31 MB
0.1.42 151 32.5 ~253 MB
0.1.43 160 31.7 —
0.1.43 --layer-split 24 139 31.3 ~14 GB

I measured disk reads for the 0.1.43 --layer-split 24 run via /proc/<pid>/io across one cold 12,099-token request: read_bytes went from 56,006,696,960 to 71,188,267,008 → +15,181,570,048 bytes (~14 GB). That is the engine touching the mmap'd PLE shard (*-00002-of-00002.gguf, 27 GB) during the request — 0.1.41 does not map that shard and reads ~31 MB.

Summary

  • 0.1.43's prefill (160, 139 with forced split) is still ~1/6 of 0.1.41 (833). The regression is not fixed in 0.1.43.
  • Split/chunk/borrow lines being identical rules out the layer-split or prompt-chunk choice as the cause.
  • The disk-read delta (31 MB vs 14 GB) strongly points to the PLE-shard mmap behaviour on the native path as the root cause, matching the /proc/<pid>/maps observation earlier.

Happy to run any other config (e.g. --ple-io ram) or capture more traces."

<!-- gh-comment-id:6116512242 --> @wszhoho commented on GitHub (Oct 12, 2026): Here is the data you asked for, plus the disk-read measurement that pins down the regression. ## Environment (unchanged) - 2 × RTX 2080 Ti (11 GB each), 62 GiB RAM, Linux - IQ3_S / GSQ-RCO, 256K context, engine built from the same `build/strata` - Identical production config across all three runs (`--spec 2 --spec-min-p 0.5 --max-context 262144 --kv int8 --kv-resident 32768 --pipeline-windows 2 --trim-stage-weights --layer-split 24 --vision`) ## Lines you asked for (identical across 0.1.41 / 0.1.42 / 0.1.43) ``` strata generate: layer split: CUDA1 runs layers 24-47, expert cache 2729 slots (5.48 GiB), 2729 of its 12288 profiled pairs strata generate: layer split: CUDA0 runs layers 0-23 strata serve: prompt chunk auto: 8192 tokens, a 384-slot ring strata serve: the prompt path borrows 2438 CUDA0 cache slots (4.38 GiB) strata serve: CUDA1 prompt path borrows 2175 of its 2729 slots (4.38 GiB) ``` The split (24/24), chunk size (8192) and borrow slots (2438/2175) are **byte-for-byte identical** across all three tags. ## 0.1.43 forced via --layer-split 24 (your suggested test) Ran 0.1.43 with an explicit `--layer-split 24`. Prefill still does **not** recover: ``` strata serve: prompt 12099 tokens = 0 reused + 12099 read in 87069 ms (139.0 tok/s), 180 generated in 5754 ms (31.3 tok/s) ``` 139 tok/s vs 0.1.41's 833 tok/s — the split is not the difference. ## Cold long-prefix comparison (same 12K-token prompt) | | prefill tok/s | decode tok/s | disk read_bytes / 12K request | |---|---|---|---| | 0.1.41 | **833** | 30.8 | ~31 MB | | 0.1.42 | 151 | 32.5 | ~253 MB | | 0.1.43 | 160 | 31.7 | — | | 0.1.43 --layer-split 24 | 139 | 31.3 | **~14 GB** | I measured disk reads for the 0.1.43 `--layer-split 24` run via `/proc/<pid>/io` across one cold 12,099-token request: **read_bytes went from 56,006,696,960 to 71,188,267,008 → +15,181,570,048 bytes (~14 GB)**. That is the engine touching the mmap'd PLE shard (`*-00002-of-00002.gguf`, 27 GB) during the request — 0.1.41 does not map that shard and reads ~31 MB. ## Summary - 0.1.43's prefill (160, 139 with forced split) is still ~1/6 of 0.1.41 (833). The regression is **not** fixed in 0.1.43. - Split/chunk/borrow lines being identical rules out the layer-split or prompt-chunk choice as the cause. - The disk-read delta (31 MB vs 14 GB) strongly points to the PLE-shard mmap behaviour on the native path as the root cause, matching the `/proc/<pid>/maps` observation earlier. Happy to run any other config (e.g. `--ple-io ram`) or capture more traces."
Author
Owner

@wszhoho commented on GitHub (Oct 12, 2026):

Correction on the disk-read numbers in my previous comment. For rigor:

  • 0.1.41 ~31 MB and 0.1.43 (--layer-split 24) ~14 GB are both measured on the same cold 12,099-token prefill via /proc/<pid>/io (read_bytes 56.0G → 71.2G, +15.2 GB for 0.1.43).
  • The 0.1.42 ~253 MB figure I listed came from a different measurement — a 200-token decode request read_bytes delta (RSS 49.5→56.1 GB, /proc/<pid>/maps showing 0.1.42 maps the whole 27 GB PLE shard while 0.1.41 does not). It was not the cold 12K prefill read_bytes.

I have not separately measured the 12K cold-prefill read_bytes for 0.1.42. Its config lines are identical to 0.1.43 (both use --ple-io mmap, STRATA_ROUTE_TAIL_SKIP=7, same KV-streaming numbers), so I expect its cold-prefill disk read to be essentially the same order as 0.1.43's. Happy to measure it directly if that helps pin the magnitude.

The core finding stands regardless: 0.1.41 reads ~31 MB and does not map the PLE shard; 0.1.42/0.1.43 map the 27 GB shard and read far more during requests.

<!-- gh-comment-id:6116807818 --> @wszhoho commented on GitHub (Oct 12, 2026): **Correction on the disk-read numbers in my previous comment.** For rigor: - `0.1.41 ~31 MB` and `0.1.43 (--layer-split 24) ~14 GB` are both measured on the **same cold 12,099-token prefill** via `/proc/<pid>/io` (read_bytes 56.0G → 71.2G, +15.2 GB for 0.1.43). - The `0.1.42 ~253 MB` figure I listed came from a **different measurement** — a 200-token decode request read_bytes delta (RSS 49.5→56.1 GB, `/proc/<pid>/maps` showing 0.1.42 maps the whole 27 GB PLE shard while 0.1.41 does not). It was **not** the cold 12K prefill read_bytes. I have **not** separately measured the 12K cold-prefill read_bytes for 0.1.42. Its config lines are identical to 0.1.43 (both use `--ple-io mmap`, `STRATA_ROUTE_TAIL_SKIP=7`, same KV-streaming numbers), so I expect its cold-prefill disk read to be essentially the same order as 0.1.43's. Happy to measure it directly if that helps pin the magnitude. The core finding stands regardless: 0.1.41 reads ~31 MB and does not map the PLE shard; 0.1.42/0.1.43 map the 27 GB shard and read far more during requests.
Author
Owner

@wszhoho commented on GitHub (Oct 12, 2026):

Resolution found: --ple-io direct restores v0.1.43 prefill to v0.1.41 levels on this SATA SSD

This confirms #2040's diagnosis for an ordinary SATA SSD (Kingston SA400S3): the 15k rows/s "direct is healthy" auto-switch threshold is NVMe-calibrated, so on a plain SATA drive the engine auto-switches --ple-io to mmap, and that mmap of the whole PLE shard is what kills cold long-prefill.

What I ran

Same hardware as before (2 × RTX 2080 Ti 11 GB, 62 GiB RAM, IQ3_S/GSQ-RCO, 256K). Engine v0.1.43 with the explicit flag added to the otherwise-identical production config:

--ple-io direct

The engine logs the expected warning for this drive but keeps direct as requested:

WARNING: --ple-io direct measures slow here (12399 rows/s, ~51 MB/s of random 4 KiB reads) ...
   #1425/#1629 ... --ple-io mmap was 40-100x faster on such drives
PLE on, table 320001536 rows of <PLE shard 00002>

Cold long-prefill results (real generated prompts, reading the prompt lines)

config prompt tokens prefill tok/s
0.1.43 default (auto → mmap) ~12,099 139-160
0.1.43 --ple-io direct 8,225 822
0.1.43 --ple-io direct 5,625 937
0.1.41 (reference) ~12,099 833

So on this drive direct is indeed the faster mode (>5x over mmap), exactly the opposite of what the auto-switch assumed — matching #2040's point.

Wanted

If possible, could the NVMe-only auto-switch be made to either:

  1. not trip on SATA/HDD SSDs (detect the bus/controller and skip the threshold), or
  2. fall back to a one-shot probe of both modes (a short timing run) instead of a fixed rows/s threshold,
    so users on SATA drives get direct automatically without needing to add --ple-io direct by hand.

Thanks for the great work — flagging this as resolved on our end via the explicit flag.

<!-- gh-comment-id:6118099514 --> @wszhoho commented on GitHub (Oct 12, 2026): ## Resolution found: `--ple-io direct` restores v0.1.43 prefill to v0.1.41 levels on this SATA SSD This confirms #2040's diagnosis for an ordinary **SATA SSD** (Kingston SA400S3): the 15k rows/s "direct is healthy" auto-switch threshold is NVMe-calibrated, so on a plain SATA drive the engine auto-switches `--ple-io` to `mmap`, and that mmap of the whole PLE shard is what kills cold long-prefill. ### What I ran Same hardware as before (2 × RTX 2080 Ti 11 GB, 62 GiB RAM, IQ3_S/GSQ-RCO, 256K). Engine **v0.1.43** with the explicit flag added to the otherwise-identical production config: ``` --ple-io direct ``` The engine logs the expected warning for this drive but **keeps direct as requested**: ``` WARNING: --ple-io direct measures slow here (12399 rows/s, ~51 MB/s of random 4 KiB reads) ... #1425/#1629 ... --ple-io mmap was 40-100x faster on such drives PLE on, table 320001536 rows of <PLE shard 00002> ``` ### Cold long-prefill results (real generated prompts, `reading the prompt` lines) | config | prompt tokens | prefill tok/s | |---|---|---| | 0.1.43 default (auto → mmap) | ~12,099 | **139-160** | | **0.1.43 `--ple-io direct`** | 8,225 | **822** | | **0.1.43 `--ple-io direct`** | 5,625 | **937** | | 0.1.41 (reference) | ~12,099 | 833 | So on this drive `direct` is indeed the faster mode (>5x over mmap), exactly the opposite of what the auto-switch assumed — matching #2040's point. ### Wanted If possible, could the NVMe-only auto-switch be made to either: 1. **not** trip on SATA/HDD SSDs (detect the bus/controller and skip the threshold), or 2. fall back to a **one-shot probe of both modes** (a short timing run) instead of a fixed rows/s threshold, so users on SATA drives get `direct` automatically without needing to add `--ple-io direct` by hand. Thanks for the great work — flagging this as resolved on our end via the explicit flag.
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#755
No description provided.