There are all kinds of accelerators out there for various sorts of things.
It would be a shame if you chose an approach just for GPU's.

On Thu, Feb 5, 2026 at 11:58 AM Alex Deucher <[email protected]> wrote:

> Has anyone given any thought on how to support something like top for
> accelerators or GPUs?  We have fdinfo, but using fdinfo requires extra
> privileges (CAP_SYS_PTRACE) and there is not a particularly efficient
> way to even discover what processes are using the GPU.  There is the
> clients list in debugfs, but that is also admin only.  Tools like ps
> and top use /proc/<pid>/stat and statm.  Do you think there would be
> an appetite for something like /proc/<pid>/drm/stat, statm, etc.?
> This would duplicate much of what is in fdinfo, but would be available
> to regular users.
>
> Thanks,
>
> Alex
>

Reply via email to