Read and report integrated GPU shared memory (GTT) #35
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/ram-67-igpu-gtt"
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?
The first piece of integrated GPU (iGPU) support: reading and reporting GTT shared memory.
Part of RAM-67. On an iGPU the device memory is a carve-out of host RAM, so it must be counted once and reported separately from host available memory and from dedicated VRAM.
What this adds
breadram-core/src/telemetry/igpu.rs: readsmem_info_gtt_usedandmem_info_gtt_totalunder/sys/class/drm/card<N>/device, bounded to a fixed number of cards. A card with neither counter is not an integrated GPU.gtt_used_bytesandgtt_total_bytes(protocol minor 7, both defaulted), summed across cards, shown bybreadram diagnostics(human and JSON), and surfaced as thegpu_gttcapability: available when a used count is read, degraded when only a total is, unavailable with a reason when the drm class is unreadable or there is no iGPU.Verification
Run on this branch off main:
All pass. Tests cover a two-card sum, a dedicated card that is not an iGPU, an unreadable drm class, and a used count with no total.
Still to come on RAM-67
Attributing an iGPU-backed model's footprint through the inference adapters so an otherwise idle workload is not released while it holds a loaded iGPU model, counting the GTT carve-out once when it overlaps cgroup accounting, and exercising the reading against a real iGPU host.
a9de8f95e82ff1108e87Handled as a duplicate. This is the auto-imported PR card for the same PR that RAM-67 tracks: #35. That PR has now been reviewed and squashed onto main as
b38f03b(branch feature/ram-67-igpu-gtt deleted), so the work this card represents has landed under RAM-67. No separate delivery here. Closing it out.