Experiment 085: Reserved reader slot for reruns

Date: 2026-04-20

Status: Rejected (full-capacity variant); reserved-slot policy kept

Problem

Experiment 083 introduced two changes together:

  1. a bounded pre-dispatch rerun queue
  2. a policy that leaves one reader free for non-rerun work

Those needed to be isolated. If the win came mostly from "keep one

reader free", then the queue might be less essential than it looked. If

the queue did most of the work, then the reserved slot was a secondary

policy choice.

Hypothesis

If the queue itself is the real win, then allowing reruns to use all

readers should:

the whole reader pool

Approach

Built a queue variant identical to Experiment 083 except for one runtime

change:

This isolates the contribution of the reserved-slot policy.

Results

Scenario profiler: queue does most of the high-fan-out work

Compared to the reserved-slot queue from Experiment 083:

ScenarioMetricReserved slotFull capacity
A11wall451586 us440844 us
A11reruns started737981
A11stale reruns553779
A11pool wait / rerun0.3 us0.0 us
A11bwall428234 us426687 us
A11breruns started705884
A11bstale reruns552730
A11bpool wait / rerun0.1 us0.0 us

This shows the queue is the main reason A11 / A11b improved. The

reserved reader is not what eliminated the reader-pool wait bottleneck.

Real suite sections: reserved slot matters for balanced behavior

Single direct suite comparison:

ScenarioReserved slotFull capacity
A6 Feed Reactive110.176 ms118.982 ms
A11 Keyed PK214.57 ms222.15 ms
A11b High-card fan-out231.65 ms232.39 ms
A7 bulk burst50.53 ms205.86 ms
A7 merge rounds3.34 ms9.76 ms

The A7 regression is the important signal: without a reserved reader,

reruns can monopolize the pool and sync-burst behavior degrades badly.

Primary Metrics

Guardrail Metrics

Decision

Reject the full-capacity variant as the default policy.

The isolated result is useful:

over the whole pool on broader workloads

So the reserved slot is not the primary optimization, but it is an

important part of making the scheduler safe and well-balanced.