Skip to content

rpi-gpu-usage: Report csd and cache_clean queues - #210

Merged
pelwell merged 1 commit into
raspberrypi:masterfrom
popcornmix:rpi-gpu-usage-csd
Aug 4, 2026
Merged

rpi-gpu-usage: Report csd and cache_clean queues#210
pelwell merged 1 commit into
raspberrypi:masterfrom
popcornmix:rpi-gpu-usage-csd

Conversation

@popcornmix

Copy link
Copy Markdown
Contributor

V3D has six job queues but only render, tfu and bin were mapped in engine_idx(), so samples for any other queue were silently discarded.

Compute workloads run entirely on the csd (compute shader dispatch) queue and never touch render or bin. That made them completely invisible: an ML inference job saturating the GPU showed render, tfu and bin all at 0.0% alongside 100% CPU, which reads as "not using the GPU at all" when the opposite is true. The global gpu_stats sysfs file already reported the same work as csd at 99.8% busy.

Add csd and cache_clean, and narrow the PID and Process columns so the two extra columns still fit in an 80-column terminal (78 chars used).

V3D has six job queues but only render, tfu and bin were mapped in
engine_idx(), so samples for any other queue were silently discarded.

Compute workloads run entirely on the csd (compute shader dispatch)
queue and never touch render or bin. That made them completely
invisible: an ML inference job saturating the GPU showed render, tfu
and bin all at 0.0% alongside 100% CPU, which reads as "not using the
GPU at all" when the opposite is true. The global gpu_stats sysfs file
already reported the same work as csd at 99.8% busy.

Add csd and cache_clean, and narrow the PID and Process columns so the
two extra columns still fit in an 80-column terminal (78 chars used).
@pelwell
pelwell merged commit 6fa7ec6 into raspberrypi:master Aug 4, 2026
4 checks passed
@popcornmix
popcornmix deleted the rpi-gpu-usage-csd branch August 5, 2026 10:35
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