[GH-ISSUE #921] CPU expert-pool 20 ms spin can hurt GPU-heavy decode; 100 µs gives ~15% higher TG and ~4× lower CPU usage on dual RTX 4090 #400

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

Originally created by @hipotures on GitHub (Oct 5, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/921

I found a potentially large performance issue with the default CPU expert-pool spin-before-sleep policy
on a GPU-heavy / mostly-resident configuration.

This is not a correctness issue. The existing STRATA_POOL_SPIN_US test knob is enough to reproduce
the effect, so I am filing this without a patch — the right upstream fix may be a different default,
adaptive parking, or another policy.

System / configuration

  • 2× RTX 4090 24 GiB
  • Ryzen 9 7950X3D
  • VM with 16 vCPUs
  • Qwen3.8-Flash-Next IQ3_S
  • current Strata v0.1.39-era source/binary
  • layer split K=25
  • pcie-frac=0.28
  • 15 CPU expert-pool workers
  • MTP spec=4, spec-min-p=0.5
  • suffix lookup off
  • prompt reuse off
  • serial requests
  • 4096 output tokens

The comparison below uses the same executable. The only relevant change is:

STRATA_POOL_SPIN_US=100

instead of the default 20 ms spin-before-sleep.

Each point has 3 valid measured requests after the same warmup.

Result

Total context Default TG median 100 us TG median Change
32K 155.9 tok/s 178.5 tok/s +14.5%
128K 133.2 tok/s 154.0 tok/s +15.6%

The individual 100 us TG runs were:

  • 32K: 178.2 / 178.6 / 178.5
  • 128K: 144.1 / 154.0 / 165.4

Median request wall time fell by approximately 11% at both context sizes.

CPU utilization

The more surprising result is CPU usage during decode:

Total context Default VM CPU 100 us VM CPU
32K ~99.2% ~28.0%
128K ~97.9% ~25.8%

GPU utilization remained roughly unchanged.

The generated output, MTP behavior, expert-cache capacities and normal routing counters were identical in the paired comparison, so the speed difference is not explained by a different greedy/MTP trajectory or by giving the candidate more cache.

What seems to be happening

The current pool has:

static constexpr std::chrono::milliseconds kSpinBeforeSleep{20};

and STRATA_POOL_SPIN_US overrides it.

On this configuration most expert work is already handled by the GPUs. Many layers therefore have little or no CPU expert work, but the worker pool can continue spinning for up to 20 ms after becoming idle.

With 15 workers this keeps almost the entire VM CPU busy even when those cores are not doing useful expert computation.

Reducing the spin period to 100 us lets the workers park much sooner and substantially reduces CPU contention.

This appears to improve GPU-side inference throughput as well, rather than merely reducing power/CPU usage.

Important trade-off

100 us is not free.

In separate selected-layer diagnostics, CPU-positive completion-wait medians increased from roughly:

  • 4–6 us with the default policy

to roughly:

  • 59–72 us with the 100 us setting.

All-local wait floors remained around 4–5 us.

So I would not suggest simply changing the global default from 20 ms to 100 us without more workload coverage.

This probably depends on how often the CPU expert pool is actually needed.

Possible upstream direction

An adaptive policy may be preferable to one fixed spin duration.

For example:

  • park quickly after mostly/all-local GPU layers,
  • retain a longer spin window when CPU expert work has recently occurred or jobs are pending,
  • possibly adapt from recent CPU-positive frequency / completion latency.

The important observation is that VM-wide ~100% CPU in this configuration was mostly not useful expert computation: reducing the idle-spin window both lowered CPU use dramatically and increased decode throughput.

Reproducibility / caveat

The clean benchmark used one long repository-maintenance workload at 32K and 128K total context limits.

The result therefore does not establish a universal +15% improvement yet, especially for workloads with substantially more CPU misses.

I am currently validating the 100 us setting on independent code/math/structured workloads, including more CPU-positive cases.

The current evidence is strong enough that I thought the fixed 20 ms default was worth reporting now.

Originally created by @hipotures on GitHub (Oct 5, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/921 I found a potentially large performance issue with the default CPU expert-pool spin-before-sleep policy on a GPU-heavy / mostly-resident configuration. This is not a correctness issue. The existing `STRATA_POOL_SPIN_US` test knob is enough to reproduce the effect, so I am filing this without a patch — the right upstream fix may be a different default, adaptive parking, or another policy. ## System / configuration - 2× RTX 4090 24 GiB - Ryzen 9 7950X3D - VM with 16 vCPUs - Qwen3.8-Flash-Next IQ3_S - current Strata v0.1.39-era source/binary - layer split K=25 - `pcie-frac=0.28` - 15 CPU expert-pool workers - MTP `spec=4`, `spec-min-p=0.5` - suffix lookup off - prompt reuse off - serial requests - 4096 output tokens The comparison below uses the **same executable**. The only relevant change is: ```bash STRATA_POOL_SPIN_US=100 ``` instead of the default 20 ms spin-before-sleep. Each point has 3 valid measured requests after the same warmup. ## Result | Total context | Default TG median | 100 us TG median | Change | |---:|---:|---:|---:| | 32K | 155.9 tok/s | **178.5 tok/s** | **+14.5%** | | 128K | 133.2 tok/s | **154.0 tok/s** | **+15.6%** | The individual 100 us TG runs were: - 32K: `178.2 / 178.6 / 178.5` - 128K: `144.1 / 154.0 / 165.4` Median request wall time fell by approximately 11% at both context sizes. ## CPU utilization The more surprising result is CPU usage during decode: | Total context | Default VM CPU | 100 us VM CPU | |---:|---:|---:| | 32K | ~99.2% | **~28.0%** | | 128K | ~97.9% | **~25.8%** | GPU utilization remained roughly unchanged. The generated output, MTP behavior, expert-cache capacities and normal routing counters were identical in the paired comparison, so the speed difference is not explained by a different greedy/MTP trajectory or by giving the candidate more cache. ## What seems to be happening The current pool has: ```cpp static constexpr std::chrono::milliseconds kSpinBeforeSleep{20}; ``` and `STRATA_POOL_SPIN_US` overrides it. On this configuration most expert work is already handled by the GPUs. Many layers therefore have little or no CPU expert work, but the worker pool can continue spinning for up to 20 ms after becoming idle. With 15 workers this keeps almost the entire VM CPU busy even when those cores are not doing useful expert computation. Reducing the spin period to 100 us lets the workers park much sooner and substantially reduces CPU contention. This appears to improve GPU-side inference throughput as well, rather than merely reducing power/CPU usage. ## Important trade-off 100 us is not free. In separate selected-layer diagnostics, CPU-positive completion-wait medians increased from roughly: - **4–6 us** with the default policy to roughly: - **59–72 us** with the 100 us setting. All-local wait floors remained around 4–5 us. So I would not suggest simply changing the global default from 20 ms to 100 us without more workload coverage. This probably depends on how often the CPU expert pool is actually needed. ## Possible upstream direction An adaptive policy may be preferable to one fixed spin duration. For example: - park quickly after mostly/all-local GPU layers, - retain a longer spin window when CPU expert work has recently occurred or jobs are pending, - possibly adapt from recent CPU-positive frequency / completion latency. The important observation is that VM-wide ~100% CPU in this configuration was mostly not useful expert computation: reducing the idle-spin window both lowered CPU use dramatically and increased decode throughput. ## Reproducibility / caveat The clean benchmark used one long repository-maintenance workload at 32K and 128K total context limits. The result therefore does **not** establish a universal +15% improvement yet, especially for workloads with substantially more CPU misses. I am currently validating the 100 us setting on independent code/math/structured workloads, including more CPU-positive cases. The current evidence is strong enough that I thought the fixed 20 ms default was worth reporting now.
Author
Owner

@hipotures commented on GitHub (Oct 5, 2026):

Independent code/math/prose validation confirmed the effect: all three 32K workloads improved, code/prose improved at 128K, and math at 128K was neutral; no serious consistent regression was observed.

<!-- gh-comment-id:5993791433 --> @hipotures commented on GitHub (Oct 5, 2026): Independent code/math/prose validation confirmed the effect: all three 32K workloads improved, code/prose improved at 128K, and math at 128K was neutral; no serious consistent regression was observed.
Author
Owner

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

Thanks for the numbers. A per-phase setting is in #949; the default spin would need an interleaved A/B (10+ pairs, medians) on CPU-light and GPU-heavy setups before it changes. The default stays in 0.1.40; this is on the 0.1.41 list with your 100 us data point.

<!-- gh-comment-id:6010955566 --> @Niko1221 commented on GitHub (Oct 6, 2026): Thanks for the numbers. A per-phase setting is in #949; the default spin would need an interleaved A/B (10+ pairs, medians) on CPU-light and GPU-heavy setups before it changes. The default stays in 0.1.40; this is on the 0.1.41 list with your 100 us data point.
Author
Owner

@hipotures commented on GitHub (Oct 6, 2026):

Thanks, Niko, for specifying the interleaved 10+ pair/median protocol. I ran the requested default-spin comparison on the released 0.1.40-generation engine, keeping STRATA_POOL_SPIN_US genuinely absent for A and setting exactly 100 for B.

Source: Strata v0.1.40.1, 82f46a8c8f475f001ad76d92f58f4a4f8ffb0253. It was the latest release at campaign start; its native engine/build tree is byte-identical to v0.1.40. I built one clean Linux CUDA Release binary (sm_89, GGML pin 3cf03257f219afbe7334045ff7c6a06ac68c627d) and used it for both arms. Binary SHA256: 09f70d953f6d0009bdd555d06b72363aa9442fdb6f8f1a25250c6bf6a578dd94. Source confirms the 20 ms default and the existing microsecond override. No residency research patches, --pool-tasks, PR #949 combination, or other spin values.

Hardware: one dual RTX 4090 24 GiB / Ryzen 9 7950X3D KVM machine, 16 guest vCPUs, approximately 161 GiB RAM, no swap; driver 615.71.09, CUDA 13.4. PHB topology, CUDA peer access unavailable. Clocks, power limits, affinity, governor and VM/host settings were unchanged.

Regimes: IQ3_S K25 is highly resident by routed demand and CPU-light; UD-Q4_K_XL K24 has roughly 47% physical expert capacity and materially more real CPU fallback work. These are two workload regimes on the same GPU-heavy machine, not two independent machines. Both keep PCIe fraction 0.28, 15 pool workers, MTP spec=4/min-p=0.5, INT8 KV, KV-resident=32768 where applicable, prefill=auto, suffix lookup/reuse off, greedy serial execution.

Design: 48 valid adjacent A/B pairs across the four cells below. Each 12-pair cell has six AB/six BA, balanced 2/2 within code/math/prose, with fixed saved order and seed. Each arm uses a fresh server, the same 4096-input/64-output warmup, then exactly one 4096-output request. Actual native environments, command lines, hashes, capacities and input IDs were checked; only the spin environment key differs within each pair. Saved independent repository/numerical/RFC workloads were reused, with four pairs per family. The fourth repeats a saved variant. No timing-based prompt selection.

Regime Context Valid pairs A default TG median B 100us TG median Median paired TG Δ Median paired wall Δ CPU A CPU B Median paired CPU Δ B wins / pairs
IQ3_S 32768 12 155.25 172.60 +10.98% -6.30% 93.14% 16.92% -81.25% 12/12
Q4 32768 12 105.60 114.60 +7.12% -4.09% 96.15% 29.30% -69.58% 12/12
IQ3_S 131072 12 143.60 160.40 +10.03% -4.83% 94.28% 16.21% -82.28% 12/12
Q4 131072 12 101.85 107.00 +7.04% -2.83% 96.94% 31.40% -67.24% 11/12

TG and wall changes are medians of within-pair B/A ratios, not ratios of arm medians. CPU is mean guest active CPU during decode, excluding steal, then paired in the same way. Exact pair rows, raw-arm ranges/IQRs, paired ranges, AB/BA splits, seeded paired-median bootstrap intervals and exact sign-flip tests on log TG ratios are retained. The pair is the unit; tokens and 1 Hz telemetry are not independent N.

The earlier approximately 15% IQ3_S point becomes a smaller but consistent +10–11% pooled paired median. Q4 is positive at approximately +7% at both contexts despite 3.9×/5.4× the median CPU fallback entries of IQ3_S. All code/math/prose TG medians are positive (four pairs each; descriptive). B wins 47/48 TG comparisons. The exception is Q4 128K math pair 2: TG −6.29% and wall +7.07%; it remains included. Its steal changes 1.68→8.84%, so a pure wake-up explanation is not established. PP paired medians are nearly neutral (−0.20% to +0.75%), and 128K's longer prefill dilutes the wall-time benefit.

All 48 pairs have bit-identical actual output IDs and matching inputs. MTP proposals/accepted counts, verify windows, local/CPU/mapped routing counters and capacities match in every pair. The 24 same-variant A–A/B–B repeat checks also match, without extra reruns. Thus different generated or recorded MTP/routing trajectories do not explain the timing changes.

One eligibility failure was preserved: the original Q4 code 32K request naturally stopped at 3788 tokens, before its B arm. I froze the same stronger book-length instruction across all Q4 families/contexts/variants before any valid Q4 pair, retained the source text, and used the predeclared replacement slot. IQ3 inputs are unchanged. This is a declared output-length exclusion, not a performance exclusion. All original and replacement attempts remain in the ledger/raw artifacts.

Residual guest steal is 1.43–10.90%; Q4 128K median A/B steal is 2.77/6.89%. Steal may itself depend on the spin policy's effect on VM scheduling, so I did not assume it was an external nuisance or adjust results for it. Both AB and BA subsets favor B in median. Clocks were steady in observed decode samples and swap stayed zero, but host scheduling and cache/thermal effects are not fully controlled.

The CPU demand comparison uses normal fallback entries and CPU experts/entries per layer-window, not utilization alone. Exact worker spin/sleep counters and isolated wake-up latency are unavailable on the released headline binary. Aggregate CPU completion timing cannot establish the wake-up mechanism by itself; I did not add heavy profiling or a spin sweep.

For the 0.1.41 discussion, these paired medians support the view that 20 ms is unnecessarily long on this platform, including the tested CPU-positive Q4 regime. They do not prove a universally safe 100 µs default. Aggregate CPU timing gets longer in B despite better overall TG; that motivates examining coordination costs, but does not establish that an adaptive/per-phase policy would outperform 100 µs. Replication on other machines and more CPU-constrained regimes remains a separate question.

Limitations: 12 pairs per cell on one physical dual-4090 / 7950X3D VM, fixed repeated corpora, model/context-specific greedy free generation, and residual host scheduling/thermal drift. Family results have only four pairs each. This does not establish cross-machine generality, safety on CPU-heavy hardware, or a universal 100 µs default. It provides the requested paired medians for these two expert-pool demand regimes. The full report, reproducibility commands, hashes, logs, token arrays and telemetry are preserved locally; this comment has not been posted.

<!-- gh-comment-id:6022609357 --> @hipotures commented on GitHub (Oct 6, 2026): Thanks, Niko, for specifying the interleaved 10+ pair/median protocol. I ran the requested default-spin comparison on the released 0.1.40-generation engine, keeping `STRATA_POOL_SPIN_US` genuinely absent for A and setting exactly `100` for B. **Source:** Strata **v0.1.40.1**, `82f46a8c8f475f001ad76d92f58f4a4f8ffb0253`. It was the latest release at campaign start; its native engine/build tree is byte-identical to v0.1.40. I built one clean Linux CUDA Release binary (sm_89, GGML pin `3cf03257f219afbe7334045ff7c6a06ac68c627d`) and used it for both arms. Binary SHA256: `09f70d953f6d0009bdd555d06b72363aa9442fdb6f8f1a25250c6bf6a578dd94`. Source confirms the 20 ms default and the existing microsecond override. No residency research patches, `--pool-tasks`, PR #949 combination, or other spin values. **Hardware:** one dual RTX 4090 24 GiB / Ryzen 9 7950X3D KVM machine, 16 guest vCPUs, approximately 161 GiB RAM, no swap; driver 615.71.09, CUDA 13.4. PHB topology, CUDA peer access unavailable. Clocks, power limits, affinity, governor and VM/host settings were unchanged. **Regimes:** IQ3_S K25 is highly resident by routed demand and CPU-light; UD-Q4_K_XL K24 has roughly 47% physical expert capacity and materially more real CPU fallback work. These are two workload regimes on the same GPU-heavy machine, not two independent machines. Both keep PCIe fraction 0.28, 15 pool workers, MTP spec=4/min-p=0.5, INT8 KV, KV-resident=32768 where applicable, prefill=auto, suffix lookup/reuse off, greedy serial execution. **Design:** 48 valid adjacent A/B pairs across the four cells below. Each 12-pair cell has six AB/six BA, balanced 2/2 within code/math/prose, with fixed saved order and seed. Each arm uses a fresh server, the same 4096-input/64-output warmup, then exactly one 4096-output request. Actual native environments, command lines, hashes, capacities and input IDs were checked; only the spin environment key differs within each pair. Saved independent repository/numerical/RFC workloads were reused, with four pairs per family. The fourth repeats a saved variant. No timing-based prompt selection. | Regime | Context | Valid pairs | A default TG median | B 100us TG median | Median paired TG Δ | Median paired wall Δ | CPU A | CPU B | Median paired CPU Δ | B wins / pairs | |---|---:|---:|---:|---:|---:|---:|---:|---:|---:|---:| | IQ3_S | 32768 | 12 | 155.25 | 172.60 | +10.98% | -6.30% | 93.14% | 16.92% | -81.25% | 12/12 | | Q4 | 32768 | 12 | 105.60 | 114.60 | +7.12% | -4.09% | 96.15% | 29.30% | -69.58% | 12/12 | | IQ3_S | 131072 | 12 | 143.60 | 160.40 | +10.03% | -4.83% | 94.28% | 16.21% | -82.28% | 12/12 | | Q4 | 131072 | 12 | 101.85 | 107.00 | +7.04% | -2.83% | 96.94% | 31.40% | -67.24% | 11/12 | TG and wall changes are **medians of within-pair B/A ratios**, not ratios of arm medians. CPU is mean guest active CPU during decode, excluding steal, then paired in the same way. Exact pair rows, raw-arm ranges/IQRs, paired ranges, AB/BA splits, seeded paired-median bootstrap intervals and exact sign-flip tests on log TG ratios are retained. The pair is the unit; tokens and 1 Hz telemetry are not independent N. The earlier approximately 15% IQ3_S point becomes a smaller but consistent +10–11% pooled paired median. Q4 is positive at approximately +7% at both contexts despite 3.9×/5.4× the median CPU fallback entries of IQ3_S. All code/math/prose TG medians are positive (four pairs each; descriptive). B wins 47/48 TG comparisons. The exception is Q4 128K math pair 2: TG −6.29% and wall +7.07%; it remains included. Its steal changes 1.68→8.84%, so a pure wake-up explanation is not established. PP paired medians are nearly neutral (−0.20% to +0.75%), and 128K's longer prefill dilutes the wall-time benefit. All 48 pairs have bit-identical actual output IDs and matching inputs. MTP proposals/accepted counts, verify windows, local/CPU/mapped routing counters and capacities match in every pair. The 24 same-variant A–A/B–B repeat checks also match, without extra reruns. Thus different generated or recorded MTP/routing trajectories do not explain the timing changes. One eligibility failure was preserved: the original Q4 code 32K request naturally stopped at 3788 tokens, before its B arm. I froze the same stronger book-length instruction across all Q4 families/contexts/variants before any valid Q4 pair, retained the source text, and used the predeclared replacement slot. IQ3 inputs are unchanged. This is a declared output-length exclusion, not a performance exclusion. All original and replacement attempts remain in the ledger/raw artifacts. Residual guest steal is 1.43–10.90%; Q4 128K median A/B steal is 2.77/6.89%. Steal may itself depend on the spin policy's effect on VM scheduling, so I did not assume it was an external nuisance or adjust results for it. Both AB and BA subsets favor B in median. Clocks were steady in observed decode samples and swap stayed zero, but host scheduling and cache/thermal effects are not fully controlled. The CPU demand comparison uses normal fallback entries and CPU experts/entries per layer-window, not utilization alone. Exact worker spin/sleep counters and isolated wake-up latency are unavailable on the released headline binary. Aggregate CPU completion timing cannot establish the wake-up mechanism by itself; I did not add heavy profiling or a spin sweep. For the 0.1.41 discussion, these paired medians support the view that 20 ms is unnecessarily long on this platform, including the tested CPU-positive Q4 regime. They do not prove a universally safe 100 µs default. Aggregate CPU timing gets longer in B despite better overall TG; that motivates examining coordination costs, but does not establish that an adaptive/per-phase policy would outperform 100 µs. Replication on other machines and more CPU-constrained regimes remains a separate question. Limitations: 12 pairs per cell on one physical dual-4090 / 7950X3D VM, fixed repeated corpora, model/context-specific greedy free generation, and residual host scheduling/thermal drift. Family results have only four pairs each. This does not establish cross-machine generality, safety on CPU-heavy hardware, or a universal 100 µs default. It provides the requested paired medians for these two expert-pool demand regimes. The full report, reproducibility commands, hashes, logs, token arrays and telemetry are preserved locally; this comment has not been posted.
Author
Owner

@gl46 commented on GitHub (Oct 8, 2026):

Data point from the opposite regime (CPU pool on the critical path), for the 0.1.41 decision.

Setup: 2× RTX 3080 10 GB, layer split at 25, --pipeline-windows 2, STRATA_STAGE_TRIM=1, Orca IQ4_XS (61 GiB of experts, only ~10 GiB of them fit in VRAM; decode hit rate ~65%), 32 pool workers on a 128-vCPU VM (EPYC 7B13, 4-channel DDR4), v0.1.40.3.

Same binary, interleaved default / STRATA_POOL_SPIN_US=100 / default / 100, 4 prompts × 512 tokens, greedy, no thinking:

  • default 20 ms: 73.8 / 74.9 tok/s (engine ≈ 32.4 cores)
  • 100 µs: 64.8 / 64.8 tok/s (engine ≈ 21.7 cores)

That is −13%, and every prompt was slower in both rounds. On a single card (0.1.39, IQ3_XXS, hit rate ~56%) the same change was −23%.

So a flat 100 µs default would hurt setups where the pool computes a large share of the routed experts. The case in this issue is 15 workers on 16 vCPUs, so spinning saturates the whole VM; here the spinners use a quarter of the cores. Perhaps the default could depend on workers vs. cores, or on how often the pool actually has work per layer.

<!-- gh-comment-id:6050435184 --> @gl46 commented on GitHub (Oct 8, 2026): Data point from the opposite regime (CPU pool on the critical path), for the 0.1.41 decision. Setup: 2× RTX 3080 10 GB, layer split at 25, `--pipeline-windows 2`, `STRATA_STAGE_TRIM=1`, Orca IQ4_XS (61 GiB of experts, only ~10 GiB of them fit in VRAM; decode hit rate ~65%), 32 pool workers on a 128-vCPU VM (EPYC 7B13, 4-channel DDR4), v0.1.40.3. Same binary, interleaved default / `STRATA_POOL_SPIN_US=100` / default / 100, 4 prompts × 512 tokens, greedy, no thinking: - default 20 ms: 73.8 / 74.9 tok/s (engine ≈ 32.4 cores) - 100 µs: 64.8 / 64.8 tok/s (engine ≈ 21.7 cores) That is −13%, and every prompt was slower in both rounds. On a single card (0.1.39, IQ3_XXS, hit rate ~56%) the same change was −23%. So a flat 100 µs default would hurt setups where the pool computes a large share of the routed experts. The case in this issue is 15 workers on 16 vCPUs, so spinning saturates the whole VM; here the spinners use a quarter of the cores. Perhaps the default could depend on workers vs. cores, or on how often the pool actually has work per layer.
Author
Owner

@qni-live commented on GitHub (Oct 10, 2026):

Data point from a third regime, for the 0.1.41 decision: all experts VRAM-resident, bare metal, no effect.

Setup: 2x RTX PRO 4500 Blackwell (32 GB each), Threadripper 7960X (24 cores / 48 threads), Linux, v0.1.40.1, Swift 1.5
IQ3_XXS with 100 % of the experts resident (layer split: 100% of the experts resident), --pipeline-windows 2,
--spec 5, presence_penalty 0.0, 23 pool workers (the engine's own default), memory clock 14,000 MHz in every arm.

Method as asked: same binary, fresh server per arm, STRATA_POOL_SPIN_US genuinely absent for A (env -u) and 100 for B
(checked in /proc/<pid>/environ). 10 pairs, 5 AB and 5 BA. Each arm: five short scenarios (code, English prose, German
prose, German list, copy edit) x 3 runs at 400 tokens, plus 4k and 32k prompts x 3 runs at 256 tokens; temperature 0, the
same prompts in both arms. Medians of the within-pair B/A ratios:

cell median B/A bootstrap 95 % B wins
code -0.1 % -0.4 .. +0.3 % 4/10
prose (en) -0.2 % -0.3 .. +0.3 % 3/10
prose (de) +0.0 % -0.4 .. +0.2 % 5/10
list (de) -0.0 % -0.5 .. +0.3 % 4/10
copy edit +0.0 % -0.3 .. +0.2 % 5/10
4k prompt +0.1 % -0.2 .. +0.4 % 6/10
32k prompt +0.2 % -0.5 .. +0.5 % 7/10

CPU during a 3,000-token decode (vmstat, top, 8 s): machine 3.0 % active in both arms, the engine process 1.0 core in
both arms. So there is no spin to shorten here: the pool workers are idle in decode (only the host thread runs), most
likely because with every expert resident the pool gets no work and is never held awake for 20 ms. That is an inference;
I did not read the pool counters.

This does not contradict the numbers above. It supports the point that the right default depends on how often the pool
has work: a fully resident layout shows no difference, the CPU-light/GPU-heavy 16-vCPU VM gains, and the CPU-heavy
cases (gl46, Orca IQ4_XS) lose.

Not tested: any layout with experts in RAM, --batch, several concurrent requests, 128k prompts, 0.1.41. In 187 of 210
paired runs the draft acceptance counts and output length were identical; the other 23 differ slightly. I have no A-A
repeat, so I cannot say whether that is normal greedy jitter or comes from the spin setting.

Raw data, scripts and the paired analysis are in ~/messungen/2026-10-10-pool-spin-921/ on my machine and can be attached
as a benchmark folder if useful.

Written with AI assistance (Claude); numbers reviewed by me.

<!-- gh-comment-id:6096094016 --> @qni-live commented on GitHub (Oct 10, 2026): Data point from a third regime, for the 0.1.41 decision: **all experts VRAM-resident, bare metal, no effect**. Setup: 2x RTX PRO 4500 Blackwell (32 GB each), Threadripper 7960X (24 cores / 48 threads), Linux, v0.1.40.1, Swift 1.5 IQ3_XXS with 100 % of the experts resident (`layer split: 100% of the experts resident`), `--pipeline-windows 2`, `--spec 5`, `presence_penalty 0.0`, 23 pool workers (the engine's own default), memory clock 14,000 MHz in every arm. Method as asked: same binary, fresh server per arm, `STRATA_POOL_SPIN_US` genuinely absent for A (`env -u`) and `100` for B (checked in `/proc/<pid>/environ`). 10 pairs, 5 AB and 5 BA. Each arm: five short scenarios (code, English prose, German prose, German list, copy edit) x 3 runs at 400 tokens, plus 4k and 32k prompts x 3 runs at 256 tokens; temperature 0, the same prompts in both arms. Medians of the within-pair B/A ratios: | cell | median B/A | bootstrap 95 % | B wins | | --- | ---: | --- | ---: | | code | -0.1 % | -0.4 .. +0.3 % | 4/10 | | prose (en) | -0.2 % | -0.3 .. +0.3 % | 3/10 | | prose (de) | +0.0 % | -0.4 .. +0.2 % | 5/10 | | list (de) | -0.0 % | -0.5 .. +0.3 % | 4/10 | | copy edit | +0.0 % | -0.3 .. +0.2 % | 5/10 | | 4k prompt | +0.1 % | -0.2 .. +0.4 % | 6/10 | | 32k prompt | +0.2 % | -0.5 .. +0.5 % | 7/10 | CPU during a 3,000-token decode (`vmstat`, `top`, 8 s): machine 3.0 % active in both arms, the engine process 1.0 core in both arms. So there is no spin to shorten here: the pool workers are idle in decode (only the host thread runs), most likely because with every expert resident the pool gets no work and is never held awake for 20 ms. That is an inference; I did not read the pool counters. This does not contradict the numbers above. It supports the point that the right default depends on how often the pool has work: a fully resident layout shows no difference, the CPU-light/GPU-heavy 16-vCPU VM gains, and the CPU-heavy cases (gl46, Orca IQ4_XS) lose. Not tested: any layout with experts in RAM, `--batch`, several concurrent requests, 128k prompts, 0.1.41. In 187 of 210 paired runs the draft acceptance counts and output length were identical; the other 23 differ slightly. I have no A-A repeat, so I cannot say whether that is normal greedy jitter or comes from the spin setting. Raw data, scripts and the paired analysis are in `~/messungen/2026-10-10-pool-spin-921/` on my machine and can be attached as a benchmark folder if useful. *Written with AI assistance (Claude); numbers reviewed by me.*
Author
Owner

@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.

<!-- gh-comment-id:6155987511 --> @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](https://github.com/Niko1221/Strata/releases/tag/v0.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.
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#400
No description provided.