Syllo / nvtop

GPU & Accelerator process monitoring for AMD, Apple, Huawei, Intel, NVIDIA and Qualcomm
Other
7.95k stars 291 forks source link

GPU reported inconsistently but MEM reports fine #146

Closed xM8WVqaG closed 2 years ago

xM8WVqaG commented 2 years ago

Important Information

Issue

At the top: GPU is reported as N/A, but MEM correctly updates. Plot: GPU% is always 0, but MEM% correctly updates. Table: GPU% updates on individual processes just like MEM% and CPU% values.

See screenshot:

20220515_00h15m06s_grim

It's unexpected that nvtop is inconsistently reporting GPU metrics.

Syllo commented 2 years ago

Hi @xM8WVqaG,

The information that shows the global GPU usage is extracted from the Linux kernel DRM interface. The per-process GPU usage is independent and is retrieved from /proc//fdifo, introduced in Linux 5.14.

Your GPU being from 2013 I suspect that the DRM interface was not updated while the second one was.

Could you please try the patch (29e0d6968b9694dae9854b8cd196d639ee4e30f0) I pushed to the gpuUsageOldAMD branch to see if it fixes your issue?

To do so:

cd nvtop
git fetch origin
git checkout gpuUsageOldAMD

and follow the compilation process from the README.

xM8WVqaG commented 2 years ago

Fantastic, thanks for the quick turn around! I can confirm your solution means GPU% is now tracked on my hardware.

20220515_17h27m57s_grim