[GH-ISSUE #2478] CPU prefill share stays unarmed on a 32 GB machine; forcing it gives 1.8-2.2× prompt speed with no failures #1011

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

Originally created by @Dongli99 on GitHub (Oct 14, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2478

RTX 3080 Laptop 8 GB, 32 GB RAM, Linux, Strata 0.1.44.1, Coder IQ1_M, setup's config (--prefill auto, resident low-RAM mode), two starts from a cool GPU on the same day:

setup's config + STRATA_PREFILL_CPU_SHARE=auto
4K prompt tok/s (3 runs) 294 (282-295) 541 (538-571)
16K prompt tok/s (3 runs) 283 (282-289) 628 (611-633)
16K first token 56.8 s 25.6 s
chat decode tok/s (9) 24.0 (22.7-29.0) 25.3 (22.3-35.0)
failed requests 0 0

Without the env, the log says the CPU prefill share is not armed by default: the experts it would read are 2.9 GiB of file pages and only 4.3 GiB of RAM is free to keep them. With it, the engine warns that the share can slow prompts or fail on a machine this short of memory (1.0 GiB of file pages, 3.6 GiB free), then runs at the speeds above.

The resident set is decided the same way. Over three starts with the same config, resident RAM mode kept 19.43, 21.30 and 23.10 GiB of experts (the last with STRATA_RESIDENT_HEADROOM_GIB=3). The first start warned the whole resident RAM mode does not fit (... resident complement 22.33 GiB exceeds available RAM (23.68 GiB) minus the 4 GiB safety headroom; 24.4 GiB of the RAM is file cache ...). We could not separate a decode effect of the resident size (one start each, overlapping ranges).

On a 32 GB machine, prompt speed therefore depends on what ran before the start. Is the free-RAM threshold for the share conservative for the resident mode? Could setup measure the share once and record STRATA_PREFILL_CPU_SHARE=auto when it helps?

Originally created by @Dongli99 on GitHub (Oct 14, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/2478 RTX 3080 Laptop 8 GB, 32 GB RAM, Linux, Strata 0.1.44.1, Coder IQ1_M, setup's config (`--prefill auto`, resident low-RAM mode), two starts from a cool GPU on the same day: | | setup's config | + `STRATA_PREFILL_CPU_SHARE=auto` | |---|---:|---:| | 4K prompt tok/s (3 runs) | 294 (282-295) | 541 (538-571) | | 16K prompt tok/s (3 runs) | 283 (282-289) | 628 (611-633) | | 16K first token | 56.8 s | 25.6 s | | chat decode tok/s (9) | 24.0 (22.7-29.0) | 25.3 (22.3-35.0) | | failed requests | 0 | 0 | Without the env, the log says `the CPU prefill share is not armed by default: the experts it would read are 2.9 GiB of file pages and only 4.3 GiB of RAM is free to keep them`. With it, the engine warns that the share `can slow prompts or fail on a machine this short of memory` (1.0 GiB of file pages, 3.6 GiB free), then runs at the speeds above. The resident set is decided the same way. Over three starts with the same config, `resident RAM mode` kept 19.43, 21.30 and 23.10 GiB of experts (the last with `STRATA_RESIDENT_HEADROOM_GIB=3`). The first start warned `the whole resident RAM mode does not fit (... resident complement 22.33 GiB exceeds available RAM (23.68 GiB) minus the 4 GiB safety headroom; 24.4 GiB of the RAM is file cache ...)`. We could not separate a decode effect of the resident size (one start each, overlapping ranges). On a 32 GB machine, prompt speed therefore depends on what ran before the start. Is the free-RAM threshold for the share conservative for the resident mode? Could setup measure the share once and record `STRATA_PREFILL_CPU_SHARE=auto` when it helps?
Author
Owner

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

Thanks for taking the time to report this.

We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.0-beta. 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:6271082907 --> @Niko1221 commented on GitHub (Oct 19, 2026): Thanks for taking the time to report this. We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.0-beta. 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).
Author
Owner

@oldwinter commented on GitHub (Oct 24, 2026):

Re-tested on 0.2.4.1 / engine 0.1.48 as asked: still off by default, and on a Gyro-S setup it is worth 2.9-3.4x prompt reading (66 -> 238 tok/s at 3.2K, 138 -> 446 tok/s at 11.7K) with no failures.

Full data, including the observation that the planner's own read estimate gets worse (85 GB -> 253 GB per 32K prompt, chunk 8192 -> 2048) while throughput triples, is in #3923.

<!-- gh-comment-id:6380644826 --> @oldwinter commented on GitHub (Oct 24, 2026): Re-tested on 0.2.4.1 / engine 0.1.48 as asked: still off by default, and on a Gyro-S setup it is worth **2.9-3.4x prompt reading** (66 -> 238 tok/s at 3.2K, 138 -> 446 tok/s at 11.7K) with no failures. Full data, including the observation that the planner's own read estimate gets *worse* (85 GB -> 253 GB per 32K prompt, chunk 8192 -> 2048) while throughput triples, is in #3923.
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#1011
No description provided.