Raspberry Pi V3D Driver Gaining Per-Process GPU Usage Stats

Written by Michael Larabel in Raspberry Pi on 15 August 2023 at 06:20 AM EDT. 1 Comment
RASPBERRY PI
Maíra Canal with Igalia has sent out a set of patches for exposing GPU usage statistics for the Broadcom graphics processor found within the Raspberry Pi 4 single board computers.

Last week Igalia sent out the latest patches for exposing GPU usage statistics with the V3D DRM kernel driver both on a global GPU usage basis as well as on a per-file descriptor basis for seeing specific application usage of the GPU. Maíra explained with the patches:
The first patch exposes the accumulated amount of active time per client through the fdinfo infrastructure. The amount of active time is exposed for each V3D queue. Moreover, it exposes the number of jobs submitted to each queue.

The second patch exposes the accumulated amount of active time for each V3D queue, independent of the client. This data is exposed through the sysfs interface.

With these patches, it is possible to calculate the GPU usage percentage per queue globally and per-file descriptor.

The patches are now under review for hopefully merging soon for this useful functionality to expose the GPU usage via sysfs.

Raspberry Pi 4


This is similar in nature to what Intel has done with their i915 kernel graphics driver for exposing per-client GPU usage statistics.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week