mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2928] [CLOSED] feat(sycl): opt-in fdinfo-only sampler for Intel GPU load and VRAM #4343
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#4343
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/2928
Author: @pankleks
Created: 10/17/2026
Status: ❌ Closed
Base:
main← Head:fix/xe-fdinfo-only-sampler📝 Commits (1)
08f7008feat(sycl): add an opt-in fdinfo-only GPU sampler📊 Changes
3 files changed (+141 additions, -2 deletions)
View changed files
📝
docs/INTEL.md(+16 -1)📝
sycl/tools/gpustat.py(+31 -1)➕
tools/test_gpustat_fdinfo.py(+94 -0)📄 Description
Summary
Refs #2921. Companion to #2924, not a replacement for the server-side idle-telemetry fix. The two PRs use separate branches off
mainand share no changed files.Intel GPU load and resident VRAM come from
/run/gpustat.json. The supplied root sampler can provide them, but its full mode also continuously reads temperature, energy, clock and PCIe sensors. Installing that full sampler can therefore undo the benefit of stopping the server's own sensor reads after idle unload.This adds opt-in
GPUSTAT_FDINFO_ONLY=1to the existing sampler:lspcicall on this path. Card discovery and VRAM-capacity detection still read static sysfs metadata at import.drm-pdevbefore deduplicating DRM client IDs, so another card's clients cannot supply the selected card's numbers in this mode. Existing no-argumentclients()behavior is unchanged.GPUSTAT_VRAM_MBoverride for SR-IOV/ReBAR cases. On the tested 32 GiB B70, the largest-resource heuristic selected a 56 GiB VF reservation; specifying 32768 MiB fixes the display. This PR does not change that default heuristic.Validation
python -m unittest tools.test_gpustat_fdinfo tools.test_setup_sycl— 22 passed.python -m unittest tools.test_gpustat_fdinfo— 4 passed.main()AST with the new body after its opt-in dispatch: identical. No C++/CUDA/HIP/Metal source or build change.The sampler option alone does not stop the server's separate hardware reader; #2924 addresses that. No independent wattage reduction, uninterrupted suspend, exact-candidate inference/PM run, multi-GPU hardware run or engine rebuild is claimed. Ready for review as an Intel/xe-only, opt-in Python sampler change; the exact-candidate hardware validation limits above still apply. No private configuration or credentials included.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.