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#657
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 @bluebirdlboro on GitHub (Oct 8, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1629
Summary
On a stock 0.1.40.2 engine (Linux/CUDA, RTX 3090 24 GB), the default
--ple-io directreads layer 1'sn-gram (PLE) table so slowly from a DRAM-less NVMe SSD that a real coding-agent prompt never gets past
layer 1:
0 layers servedin 60 s, so the #29 no-progress watchdog stops the engine (client seesthe engine stopped unexpectedly (exit code -6)), and the server reloads it (~3 min cold start).The prompt path is the whole story: with
--ple-io direct, a cold 59-token prompt takes 16.1 s to read(3.7 tok/s) and a 170-token prompt 20.4 s (8.3 tok/s) — no prefill work involved, just the PLE row reads.
Switching to
--ple-io mmapmakes the same reads 293–508 tok/s (40–100×) and, unlike the first coldpass in #1425, it holds on the first pass: a 38,808-token prompt read in 101 s with steady progress,
no watchdog trip.
This is the Linux/CUDA/stock-engine counterpart to #1425 (Windows, NVFP4 fork:
direct≈ 34 MB/s), and thecase where
--ple-io ram(#746, #605) is not available because the host cannot spare 28.8 GB.Environment
0.1.40.2(strata serve: stall report (engine 0.1.40.2)), served via the pack's ownserve/server.py --engine strata; backend cuda.--vram-reserve-mib 700./sys/block/nvme0n1/queue/rotational=0, DRAM-less (no hostDRAM for the FTL map).
Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS(two shards) +--ple-ggufshard 28.8 GB,--expert-profile … --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp … --max-context 131072 --kv int8 --vision. Same result observed with the IQ3_S pack.--ple-io: default (direct) unless stated;--ple-row-cache/--ple-inflightleft at defaults(1 048 576 / 256) in both arms.
Reproduction
Fresh (diverse) prompt of agent-session size through the OpenAI-compatible endpoint, on a freshly started
engine so nothing of that prompt is cached:
--ple-io direct: engine log goes to Reproduced on every attempt with an 18 672-token prompt and a 30 731-token prompt; small prompts(< 200 tokens) finish but are also slow to read.
--ple-io mmap: same prompts, same engine, one flag changed — all pass (numbers below).Measurements
Cold prompt reads (no prefix reuse), from the engine's own
prompt … read in … mslines:--ple-io direct--ple-io mmapEnd-to-end through the client path (same prompt size, both arms):
direct: request fails —the engine stopped unexpectedly (exit code -6); server restarts the engine(
experts loaded: 39.97 GiB at 0.83 GiB/s (98 s)), ~3 min before it can serve again.mmap: 18 672-token agent prompt answers in 73 s wall clock (prompt read 36.8 s + 486 tokens decoded at48.7 tok/s); 30 731-token prompt completes with exit code 0. Prefix reuse stays cheap afterwards
(
38803 reused + 5 read in 84 ms).Why
--ple-io ramis not an option here--ple-io ramneeds the PLE shard resident (28.8 GB), but the host has 62 GiB total with ~47 GiB alreadyresident for the engine (experts in RAM) and ~13 GiB free — it would push the machine into swap (swap was
already 5 GiB used during the failing run).
mmapworks because the touched row set of a prompt is farsmaller than the whole table and the page cache keeps it across requests, so it costs little RAM.
The stall-report hint is misleading for this class of disk
a rotational or failing disk with --ple-io directsent me looking at the drive first. A DRAM-less NVMe isneither rotational nor failing — it does 1.4 GB/s sequentially — but random 4 K reads of ~90-byte rows pay an
extra FTL metadata read each, which is exactly what
direct(O_DIRECT, no OS cache) does on the prompt path.Suggest mentioning "DRAM-less SSD / random small reads" (and
--ple-io mmap) in that hint.What would help
--ple-io mmapbe the documented recommendation for DRAM-less NVMe whenramis unaffordable?(It is the only setting that works here, and it holds on the cold pass — unlike the 156 MB/s cold pass
reported in #1425.)
directit fires at layer 1 withnothing served. Is making it configurable, or exempting the prompt-read stage, on the table?
--ple-row-cache/--ple-inflight(defaults 1 048 576 / 256) help in this regime? I havenot tried them; the batched/read-ahead PLE read in the style of #1323 sounds like the real fix.
--ple-io rammeant to be the answer whenever RAM allows (per #746/#605) andmmapthe fallback, or isthere a third mode planned (e.g. buffered reads with read-ahead) for hosts that can afford neither the
RAM nor the O_DIRECT penalty?
Related: #1425 (Windows/NVFP4 fork,
direct≈ 34 MB/s), #1211 (ramnull result on fast NVMe),#605 / #746 (
ramas the storage lever), #1323 (batched unbuffered reads), #29 (the watchdog).@Niko1221 commented on GitHub (Oct 10, 2026):
Thank you, the 59-token cold prompt at 16 s and the mmap comparison made the threshold easy to choose. v0.1.42's start-up probe (see #1425) measures random-row reads before the first prompt: your DRAM-less NVMe (about 59 rows/s on the 59-token prompt) is far under the 15,000 rows/s line, so without
--ple-iothe engine now uses mmap and prints why. An explicit--ple-io directis kept with a warning.STRATA_PLE_PROBE=1disables it. Please try v0.1.42 on the SN580 and send the line the engine prints (the rate, and the 'using --ple-io mmap' message).@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.
If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.