Skip to content

[KUBE-50] gpuagent: add GPUGetFilter to skip GPU attribute groups on … - #85

Open
bhatturu wants to merge 1 commit into
ROCm:mainfrom
bhatturu:chore/kube-50-565-gpugetfilter-v1.5.1
Open

[KUBE-50] gpuagent: add GPUGetFilter to skip GPU attribute groups on …#85
bhatturu wants to merge 1 commit into
ROCm:mainfrom
bhatturu:chore/kube-50-565-gpugetfilter-v1.5.1

Conversation

@bhatturu

Copy link
Copy Markdown
Contributor

…GPUGet

Port pensando/sw#119031 onto the GIM 9.1.0.K base. GPUGetRequest carries an optional GPUGetFilter of 11 per-attribute Skip* flags (unset fetches all). aga_gpu_read/read_all/gpu_entry::read take the filter and pass it to the smi fill paths; each collector in the amdsmi, gimamdsmi and mock backends is gated by its Skip* bit (AGA_GPU_SKIP). gpuctl gains --skip-* flags.

This lets a client (DME) drop the expensive KFD process walk and other unneeded collectors from the default GPUGet path (KUBE-50).

(cherry picked from commit 46a5c25)

Motivation

Technical Details

Test Plan

Test Result

Submission Checklist

…GPUGet

Port pensando/sw#119031 onto the GIM 9.1.0.K base. GPUGetRequest carries an
optional GPUGetFilter of 11 per-attribute Skip* flags (unset fetches all).
aga_gpu_read/read_all/gpu_entry::read take the filter and pass it to the smi
fill paths; each collector in the amdsmi, gimamdsmi and mock backends is gated
by its Skip* bit (AGA_GPU_SKIP). gpuctl gains --skip-* flags.

This lets a client (DME) drop the expensive KFD process walk and other unneeded
collectors from the default GPUGet path (KUBE-50).

(cherry picked from commit 46a5c25)

@rsrikanth86 rsrikanth86 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@bhatturu

Copy link
Copy Markdown
Contributor Author
$   sudo docker exec dme_gpugetfilter sh -c 'time /home/amd/bin/gpuctl show gpu all | wc -l'                  # baseline (pays pcie_bw)
1991

real    0m25.988s
user    0m0.007s
sys     0m0.022s

:~$   sudo docker exec dme_gpugetfilter sh -c 'time /home/amd/bin/gpuctl show gpu all --skip-pcie-stats --skip-process-status | wc -l'   # fast
1719

real    0m0.858s
user    0m0.009s
sys     0m0.016s
bhatturu@miramar350-1b112-b10-14:~

@spraveenio
spraveenio requested a review from sarat-k July 29, 2026 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants