mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2924] [CLOSED] fix(sycl): pause GPU telemetry while the model is unloaded #4341
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#4341
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/2924
Author: @pankleks
Created: 10/17/2026
Status: ❌ Closed
Base:
main← Head:fix/xe-telemetry-runtime-idle📝 Commits (1)
d1ee912fix(sycl): pause GPU telemetry while the model is unloaded📊 Changes
4 files changed (+109 additions, -4 deletions)
View changed files
📝
serve/server.py(+2 -1)📝
serve/telemetry.py(+11 -3)📝
sycl/serve/xe_telemetry.py(+3 -0)➕
tools/test_telemetry_idle.py(+93 -0)📄 Description
Summary
Fixes #2921
Stop the SYCL Monitor's once-per-second GPU sensor reads while the model is unloaded. The HTTP server stays up, CPU/RAM/disk/server metrics continue, and the next inference still loads the model normally.
Telemetryaccepts an optionalgpu_activepredicate. Only SYCL supplies it (Service.loaded); CUDA/HIP/Metal and callers that omit it retain their existing sampling path._XeGpu.pause()clears only its energy-delta baseline, so the first resumed power sample is not averaged over the unloaded interval.Validation
pause(), and Intel energy-baseline reset.python -m unittest serve.test_server serve.test_monitor serve.test_prometheus tools.test_telemetry_idle— 357 tests passed./metricsonce per second for 120 seconds while unloaded: all 120 responses remained unloaded, GPU power/temperature absent, and CPU/RAM metrics available. Simultaneous passive PM counters recorded +104,619 ms suspended / +15,384 ms active over ~120 seconds, comparable to stopping the server in the original isolation test. An earlier equivalent run recorded +105,566 ms suspended / +14,437 ms active. The card still has transient wakeups (the final interval ended active/usage=0 and a later check was suspended); this is not a claim of uninterrupted suspend or that every wake source has been isolated.This is not a claim of a measured wattage reduction: no independent power meter was used, and no GPU sensor reads were made by the PM observation. No CUDA/HIP/Metal GPU hardware run, engine rebuild, long-context benchmark, or sustained-load test was performed for this Python-only change. Inference sources and binaries are unchanged.
Ready for review: only SYCL enables the new pause predicate; other backends retain their existing sampling behavior. The hardware-validation limits above still apply.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.