[GH-ISSUE #3923] [Engine] Re-test on 0.1.48 (32 GB PC, Gyro-S): CPU prefill share is still off by default and still worth 2.9-3.4x prompt speed #1677

Closed
opened 2026-11-04 01:53:06 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @oldwinter on GitHub (Oct 24, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3923

Continues #2478 (closed as not planned in the 0.2.0-beta tracker reset, which asked for a re-test
on 0.2.0-beta). Re-tested on 0.2.4.1 / engine 0.1.48, still armable only by hand, and on this machine
the gain is larger than in the original report: 2.9-3.4x on prompt reading (4.4-7.5x on the
shortest prompt tried) with no failures.

What happens

Setup's own config (--resident-experts, --prefill auto) leaves the CPU prefill share off on a
32 GB PC. From the engine log of an untouched strata launch start:

strata: the CPU prefill share is not armed by default: the experts it would read are 16.1 GiB of
        file pages and only 4.5 GiB of RAM is free to keep them. STRATA_PREFILL_CPU_SHARE=auto turns it on anyway
strata: prefill plan: chunk 8192, ring 96 kept: file set 19.8 GiB does not fit the page cache 3.3 GiB
        -> about 85.1 GB read from the drive per 32768-token prompt (4 chunks); no option does better

Same machine, timer only changes when the CPU share is persisted (strata launch --preset ... --set STRATA_PREFILL_CPU_SHARE=auto --save-preset ...):

strata: WARNING STRATA_PREFILL_CPU_SHARE=auto is set and kept, but the experts it would read are
        13.4 GiB of file pages and only 5.8 GiB of RAM is free to keep them: the share can ...
strata: prefill plan: chunk 2048, ring 8 kept: file set 14.7 GiB does not fit the page cache 3.6 GiB
        -> about 252.7 GB read from the drive per 32768-token prompt (16 chunks); no option does better
strata: resident RAM mode: 9.43 GiB of experts in RAM (page-locked), 1259 in the GPU cache

Note the plan gets worse by its own metric (85 GB -> 253 GB of drive reads per 32K prompt, chunk
8192 -> 2048) yet prompt reading is much faster in practice, because the CPU keeps the experts that
the file tier would otherwise fetch. The original report saw the same pattern (1.0 GiB of file pages
against 2.9 without the share).

Measurements

Gyro-S (Qwen3.8-Flash-Next, trellis experts, pack with experts.bin), 64K context, int8 KV, MTP
draft on, RTX 4060 Ti 16 GB + Ryzen 5 7500F (AVX-512) + 32 GB RAM + NVMe, Windows 11 26200,
/v1/chat/completions, max_tokens=8, temperature=0, reasoning_effort=none, wall clock of the
whole request. Fresh prompts each time (no prefix cache hit).

prompt tokens share off share on (=auto, chunk 2048 plan) speed-up
3,269 66 tok/s (49.2 s) 238 tok/s (13.7 s) 3.6x
3,272 65 tok/s (50.3 s) - -
11,719 138 tok/s (85.1 s) 446 tok/s (26.3 s) 3.2x
11,719 - 398 tok/s (29.4 s) 2.9x

Decode: 9.6 tok/s on a fresh start with the share on (17-25 tok/s with a warm page cache, off or on),
so decode is not obviously harmed here, unlike the warning text.

Question (same as the original)

Can setup/strata launch decide this itself instead of the user? Two candidates:

  1. Arm STRATA_PREFILL_CPU_SHARE=auto when the resident set is smaller than what the file tier would
    have to feed (here: 9.4 GiB resident vs 16.1 GiB of file pages on a 32 GB PC).
  2. When it arms the share, re-plan the prompt chunk around the CPU share instead of shrinking it to
    2048/16 chunks: the read estimate grew 3x while throughput grew 3.4x, so the planner and the
    actual bottleneck disagree on this setup.

Environment

  • Strata Terminal 0.2.4.1 (build 0.1.49.1), bundle commit c33fa7ba6d0d5b104983736b50c4e1d61f207b1b
  • Engine 0.1.48 (f-023-rel, commit 6f8800aefe27), CUDA 13.0, archs 75/86/89/120
  • RTX 4060 Ti 16 GB · 32 GB RAM · Ryzen 5 7500F · Windows 11 26200
  • Model: agentionai/Qwen3.8-Flash-Next-Gyro-GGUF, Qwen3.8-Flash-Next-Gyro-S-TQ1_0.gguf,
    low-RAM mode, pictures off (the reader does not start here, see #3921)
  • Windows commit limit was 79.7 GiB with 4.8 GiB free at the start of the share-on run; the page
    file is a fixed 43.2 GB, not system-managed
Originally created by @oldwinter on GitHub (Oct 24, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3923 Continues #2478 (closed as not planned in the 0.2.0-beta tracker reset, which asked for a re-test on 0.2.0-beta). Re-tested on 0.2.4.1 / engine 0.1.48, still armable only by hand, and on this machine the gain is larger than in the original report: **2.9-3.4x on prompt reading** (4.4-7.5x on the shortest prompt tried) with **no failures**. ## What happens Setup's own config (`--resident-experts`, `--prefill auto`) leaves the CPU prefill share off on a 32 GB PC. From the engine log of an untouched `strata launch` start: ``` strata: the CPU prefill share is not armed by default: the experts it would read are 16.1 GiB of file pages and only 4.5 GiB of RAM is free to keep them. STRATA_PREFILL_CPU_SHARE=auto turns it on anyway strata: prefill plan: chunk 8192, ring 96 kept: file set 19.8 GiB does not fit the page cache 3.3 GiB -> about 85.1 GB read from the drive per 32768-token prompt (4 chunks); no option does better ``` Same machine, timer only changes when the CPU share is persisted (`strata launch --preset ... --set STRATA_PREFILL_CPU_SHARE=auto --save-preset ...`): ``` strata: WARNING STRATA_PREFILL_CPU_SHARE=auto is set and kept, but the experts it would read are 13.4 GiB of file pages and only 5.8 GiB of RAM is free to keep them: the share can ... strata: prefill plan: chunk 2048, ring 8 kept: file set 14.7 GiB does not fit the page cache 3.6 GiB -> about 252.7 GB read from the drive per 32768-token prompt (16 chunks); no option does better strata: resident RAM mode: 9.43 GiB of experts in RAM (page-locked), 1259 in the GPU cache ``` Note the plan gets *worse* by its own metric (85 GB -> 253 GB of drive reads per 32K prompt, chunk 8192 -> 2048) yet prompt reading is much faster in practice, because the CPU keeps the experts that the file tier would otherwise fetch. The original report saw the same pattern (1.0 GiB of file pages against 2.9 without the share). ## Measurements Gyro-S (Qwen3.8-Flash-Next, trellis experts, pack with `experts.bin`), 64K context, int8 KV, MTP draft on, RTX 4060 Ti 16 GB + Ryzen 5 7500F (AVX-512) + 32 GB RAM + NVMe, Windows 11 26200, `/v1/chat/completions`, `max_tokens=8`, `temperature=0`, `reasoning_effort=none`, wall clock of the whole request. Fresh prompts each time (no prefix cache hit). | prompt tokens | share off | share on (`=auto`, chunk 2048 plan) | speed-up | |---:|---:|---:|---:| | 3,269 | 66 tok/s (49.2 s) | 238 tok/s (13.7 s) | 3.6x | | 3,272 | 65 tok/s (50.3 s) | - | - | | 11,719 | 138 tok/s (85.1 s) | 446 tok/s (26.3 s) | 3.2x | | 11,719 | - | 398 tok/s (29.4 s) | 2.9x | Decode: 9.6 tok/s on a fresh start with the share on (17-25 tok/s with a warm page cache, off or on), so decode is not obviously harmed here, unlike the warning text. ## Question (same as the original) Can setup/`strata launch` decide this itself instead of the user? Two candidates: 1. Arm `STRATA_PREFILL_CPU_SHARE=auto` when the resident set is smaller than what the file tier would have to feed (here: 9.4 GiB resident vs 16.1 GiB of file pages on a 32 GB PC). 2. When it arms the share, re-plan the prompt chunk around the CPU share instead of shrinking it to 2048/16 chunks: the read estimate grew 3x while throughput grew 3.4x, so the planner and the actual bottleneck disagree on this setup. ## Environment - Strata Terminal 0.2.4.1 (build 0.1.49.1), bundle commit `c33fa7ba6d0d5b104983736b50c4e1d61f207b1b` - Engine 0.1.48 (`f-023-rel`, commit `6f8800aefe27`), CUDA 13.0, archs 75/86/89/120 - RTX 4060 Ti 16 GB · 32 GB RAM · Ryzen 5 7500F · Windows 11 26200 - Model: `agentionai/Qwen3.8-Flash-Next-Gyro-GGUF`, `Qwen3.8-Flash-Next-Gyro-S-TQ1_0.gguf`, low-RAM mode, pictures off (the reader does not start here, see #3921) - Windows commit limit was 79.7 GiB with 4.8 GiB free at the start of the share-on run; the page file is a fixed 43.2 GB, not system-managed
Author
Owner

@coryjett commented on GitHub (Oct 28, 2026):

A second data point, from a layer split rather than one card: 2x RTX 3090 on PCIe 3.0 x16 (one per socket, Xeon E5-2620 v3), Flash-Next IQ3_S, Strata 0.2.7 / engine 0.1.52, ~78% of the experts resident across the two cards. The share is off by default under a split too; with STRATA_PREFILL_CPU_SHARE=auto and STRATA_PREFILL_CPU_SHARE_MAX=4096 set explicitly, incremental reads of 300-4,000 tokens onto a cached ~66K context (the coding-agent shape) got 8-13% faster over the curve: about -0.6 s at 1K and -0.9 s at 1.5K, flat above 2K. The 32K read, decode and greedy output were unchanged within production's own spread, and it has been in production since. Much smaller than your 2.9-3.4x, which fits: here only ~22% of the experts stream, on your 32 GB PC most of them do. The prefill help share (STRATA_PREFILL_HELP) did not add to it, since the help only runs above the share's maximum. Tables and raw per-run files in #4468 (bench/results/2026-10-28-community-t630-2x3090-pcie3/, rounds r24-r26).

<!-- gh-comment-id:6472476428 --> @coryjett commented on GitHub (Oct 28, 2026): A second data point, from a layer split rather than one card: 2x RTX 3090 on PCIe 3.0 x16 (one per socket, Xeon E5-2620 v3), Flash-Next IQ3_S, Strata 0.2.7 / engine 0.1.52, ~78% of the experts resident across the two cards. The share is off by default under a split too; with `STRATA_PREFILL_CPU_SHARE=auto` and `STRATA_PREFILL_CPU_SHARE_MAX=4096` set explicitly, incremental reads of 300-4,000 tokens onto a cached ~66K context (the coding-agent shape) got 8-13% faster over the curve: about -0.6 s at 1K and -0.9 s at 1.5K, flat above 2K. The 32K read, decode and greedy output were unchanged within production's own spread, and it has been in production since. Much smaller than your 2.9-3.4x, which fits: here only ~22% of the experts stream, on your 32 GB PC most of them do. The prefill help share (`STRATA_PREFILL_HELP`) did not add to it, since the help only runs above the share's maximum. Tables and raw per-run files in #4468 (`bench/results/2026-10-28-community-t630-2x3090-pcie3/`, rounds r24-r26).
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:6659807372 --> @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#1677
No description provided.