mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #691] Windows: generation slows when the server window is minimized (EcoQoS moves threads to E-cores) — fix included #319
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#319
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mozophe on GitHub (Oct 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/691
Problem
On Windows 11 with a hybrid CPU (here an i9-13980HX, P+E cores), generation slows down (about 20%) when the server's console window is minimized. Having another window focused makes no difference. Windows power throttling (EcoQoS) treats the server and its children (
strata.exe,strata-vision.exe) as background work and moves their threads to the E-cores.Fix
Opt the server and every contained child out of power throttling with
SetProcessInformation(ProcessPowerThrottling). This is done inserve/winjob.py, sincecontain()already handles every child process:python -m unittest serve.test_winjobstill passes.Measured with the patch
Setup: RTX 4090 Laptop 16 GB, i9-13980HX, 96 GB RAM, Qwen3.8-Flash-Next IQ3_S, AC power, Balanced plan. Same prompt at temperature 0 with 400 max tokens, 3 rounds each:
With the patch, minimizing no longer makes a difference beyond run-to-run noise. Numbers without the patch are in the comment below. Not yet tested on battery, where Windows throttles more aggressively.
@apdogod123321-ops commented on GitHub (Oct 4, 2026):
can you include benchmarks without the patch?
@mozophe commented on GitHub (Oct 4, 2026):
Here are numbers with and without the patch. Same machine as above: RTX 4090 Laptop, i9-13980HX, 96 GB RAM, Qwen3.8-Flash-Next IQ3_S, AC power, Balanced plan. Same prompt at temperature 0, 400 tokens, 3 rounds per state. The script checked that each window state had actually applied before every run. Median tok/s:
Correction to my original report: the slowdown shows up only when the server window is minimized, about 20% slower. Having another window focused made no difference. I've updated the title to match. With the patch, minimized runs at the same speed as the other states.
Not tested yet: battery power, where Windows throttles more aggressively, so losing focus alone might matter there.
@Niko1221 commented on GitHub (Oct 6, 2026):
Fixed in 0.1.40: the server and every child it contains are opted out of Windows power throttling (EcoQoS), so a minimized window no longer moves the engine to the E-cores. Windows 10 accepts one of the two bits only; that one is set there.