Skip to content

obs-gpu-status: amdgpu whole-GPU utilization from gpu_busy_percent - #1222

Merged
zackees merged 2 commits into
masterfrom
feat/1024-amdgpu-busy-percent
Oct 17, 2026
Merged

zackees merged 2 commits into
masterfrom
feat/1024-amdgpu-busy-percent

Conversation

@zackees

@zackees zackees commented Oct 17, 2026

Copy link
Copy Markdown
Member

Fixes #1024.

amdgpu_busy_percent(root, pci) -> Utilization (Percent(u8) / Unavailable) reads gpu_busy_percent of the sys/class/drm/card<n> whose PCI address matches the render adapter from #1020 (reuses pci_address_of). Missing file, unknown adapter, unparsable or >100 contents are Unavailable. Wiring into the readout stays with #1025/#1027.

  • RED (f7f5507): Tier 1 fixture sysfs tree with two cards; reads_the_render_adapters_card failed against the stub returning Unavailable.
  • GREEN (3fb3eba): soldr cargo test -p obs-gpu-status 69 passed; ./lint ok.

New code with no C original, so Tiers 2 and 3 do not apply.

amdgpu_busy_percent reads gpu_busy_percent of the drm card whose PCI
address is the render adapter's (#1020). A missing, unreadable or
out-of-range file is Unavailable.

Fixes #1024
@zackees
zackees enabled auto-merge October 17, 2026 10:57
@zackees
zackees added this pull request to the merge queue Oct 17, 2026
Merged via the queue into master with commit 179ec71 Oct 17, 2026
29 checks passed
@zackees
zackees deleted the feat/1024-amdgpu-busy-percent branch October 26, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

obs-gpu-status: amdgpu whole-GPU utilization from gpu_busy_percent

1 participant