mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5372] [Engine] Idle GPU spin: both cards stay at 100% / ~110 W with no request in flight #3200
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#3200
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 @Eaken on GitHub (Nov 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5372
Summary
With the model loaded and no requests in flight, both GPUs sit at 100% busy and ~110–120 W each (sclk pinned at ~3060 MHz, mclk idle at 96 MHz). Stopping the engine drops them to 13–17 W. It looks like a GPU-side wait kernel (doorbell / hand-off spin) is left resident after a request, so the driver never lets the card idle.
Environment
--tensor-parallel 2 --layer-split 24 --max-context 262144 --kv int8 --pipeline-windows 2 --vram-reserve-mib 768 --vram-reserve-later-mib 768 --prefill auto --spec 4 --mtp ...STRATA_MEGAKERNEL=1Measurements (idle, no request, 60 s sample)
systemctl stopmclkis 96 MHz in both states, so it is a compute-side spin, not memory.Ruled out
STRATA_MEGAKERNEL=0→ same 110 W--pipeline-windows 2→ samestrata-vision→ sameTried (no effect, reverted)
Adding a bounded spin to
doorbell_wait_kernel,wait_flag_ge_kernel,wait_flag_copy_i32_kerneland a 3 s default inwait_handoff_kerneldid not change the idle power (correctness and speed were fine).Request
When the pipeline has no work, could the resident wait kernel be released — e.g. publish the doorbell / exit the wait after a timeout, or host-side park and relaunch on the next request? Even an opt-in flag ("let the card idle between requests", trading ~0.1–0.5 ms of first-token latency) would be enough.
Current workaround
server.py --lazy --idle-unload 1800— the model is unloaded after 30 min idle and reloads on the next request (idle then 5–11 W/card), at the cost of a ~70 s cold start.