From ed6bc9484fcaec44f30dc12ee5cf2c701d0acbce Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Sat, 14 Nov 2026 12:45:09 +0000 Subject: [PATCH 1/2] Formatting tweaks to the rpi-gpu-usage README --- rpi-gpu-usage/README.md | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/rpi-gpu-usage/README.md b/rpi-gpu-usage/README.md index 8806669..27c3f79 100644 --- a/rpi-gpu-usage/README.md +++ b/rpi-gpu-usage/README.md @@ -1,8 +1,7 @@ - # rpi-gpu-usage -rpi-gpu-usage is a simple tool for showing the per-process usage of the V3D -GPU on Raspberry Pi 4 and 5. It works by parsing the /proc/\*/fdinfo/\* +`rpi-gpu-usage` is a simple tool for showing the per-process usage of the V3D +GPU on Raspberry Pi 4 and 5. It works by parsing the `/proc/*/fdinfo/*` information to find the processes that have drm stats information like: ``` @@ -21,7 +20,7 @@ information to find the processes that have drm stats information like: /proc/2390/fdinfo/23:drm-purgeable-memory: 0 ``` -The application then outputs total GPU usage for the renderer (shaders) +The application then outputs total GPU usage for the renderer (shaders), tfu (texture format unit), binning, csd (compute shader dispatch) and cache_clean blocks. It also reads the total CPU usage for that process. @@ -36,14 +35,13 @@ Client PID Process render tfu bin csd clean CPU **Command line options** - * --csv Output in CSV format. This can just be cat'ed to a file for analysis + * `--csv` Output in CSV format. This can just be cat'ed to a file for analysis **Build Instructions** -Install the prerequisites with "sudo apt install cmake libncurses-dev" - you need at least version 3.10 of cmake. Run the following commands, either here or in the top-level directory to build and install everything: - - - *cmake .* - - *make* - - *sudo make install* +Install the prerequisites with `sudo apt install cmake libncurses-dev` - you need at least version 3.10 of cmake. Run the following commands, either here or in the top-level directory, to build and install everything: + - `cmake .` + - `make` + - `sudo make install` From 38b7cdd13d32145f9ec24c7f16268c00dfee5c8e Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Sat, 14 Nov 2026 16:06:33 +0000 Subject: [PATCH 2/2] Update README.md --- rpi-gpu-usage/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpi-gpu-usage/README.md b/rpi-gpu-usage/README.md index 27c3f79..6957b3a 100644 --- a/rpi-gpu-usage/README.md +++ b/rpi-gpu-usage/README.md @@ -35,7 +35,7 @@ Client PID Process render tfu bin csd clean CPU **Command line options** - * `--csv` Output in CSV format. This can just be cat'ed to a file for analysis + * `--csv` Output in CSV format. This can just be `cat`ed to a file for analysis **Build Instructions**