[GH-ISSUE #4489] [Engine] single-slot mode: let a short request in during a long cold read (BYIELD exists only for --batch) #2011

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

Originally created by @coryjett on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4489

Area

Engine

What do you want to do?

Let a short request get in during a long cold read in single-slot mode.

Workload: three coding agents (boss, coder, researcher) through one server with one slot; each turn appends a 300-4,000-token tool result to a conversation of ~66K tokens the server holds; median ~210-290 tokens generated per turn. In a 3-hour window (613 requests) the engine parked 56 conversations for 102 s in all (2.0-4.0 s each, e.g. "conversation cache: parked 68955 tokens in 4027.6 ms") and restored 10 for 21 s. A cold ~66K read takes ~28 s here. In single-slot mode the lock is held for the whole read, so every other agent waits behind it. Only --batch has a yield at a chunk boundary (BYIELD, #656: _shorter_waiting in serve/server.py ~1800-1811 and ~1871, "the read gave way"). We run one slot because batch decode has no MTP unless --batch-mtp, which measured -22% upstream.

Suggested: the same chunk-boundary yield in single-slot mode, using a checkpoint as the point where the part read waits.

What do you do today instead?

Nothing; agents queue behind each other's cold reads.

Hardware: 2x RTX 3090 24 GB (PCIe 3.0 x16, one per socket), 2x Xeon E5-2620 v3, 256 GB, Ubuntu 26.10. Version: 0.2.7 (engine 0.1.52, Control 0.1.52); code checked on main 46c152a1. Model: Flash-Next IQ3_S, layer split 25 with --trim-stage-weights, conversation cache 40 GiB / 16 slots; the full profile is in #4468.

Originally created by @coryjett on GitHub (Oct 28, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4489 ### Area Engine ### What do you want to do? Let a short request get in during a long cold read in single-slot mode. Workload: three coding agents (boss, coder, researcher) through one server with one slot; each turn appends a 300-4,000-token tool result to a conversation of ~66K tokens the server holds; median ~210-290 tokens generated per turn. In a 3-hour window (613 requests) the engine parked 56 conversations for 102 s in all (2.0-4.0 s each, e.g. "conversation cache: parked 68955 tokens in 4027.6 ms") and restored 10 for 21 s. A cold ~66K read takes ~28 s here. In single-slot mode the lock is held for the whole read, so every other agent waits behind it. Only `--batch` has a yield at a chunk boundary (BYIELD, #656: `_shorter_waiting` in `serve/server.py` ~1800-1811 and ~1871, "the read gave way"). We run one slot because batch decode has no MTP unless `--batch-mtp`, which measured -22% upstream. Suggested: the same chunk-boundary yield in single-slot mode, using a checkpoint as the point where the part read waits. ### What do you do today instead? Nothing; agents queue behind each other's cold reads. Hardware: 2x RTX 3090 24 GB (PCIe 3.0 x16, one per socket), 2x Xeon E5-2620 v3, 256 GB, Ubuntu 26.10. Version: 0.2.7 (engine 0.1.52, Control 0.1.52); code checked on `main` 46c152a1. Model: Flash-Next IQ3_S, layer split 25 with --trim-stage-weights, conversation cache 40 GiB / 16 slots; the full profile is in #4468.
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:6660522637 --> @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#2011
No description provided.