Syllo / nvtop

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

GPU usage percentage of processes always shows 0%. #177

Open angel-devicente opened 1 year ago

angel-devicente commented 1 year ago

Hello,

with nvtop version 3.0.1 in ArchLinux the GPU usage percentage of each process seems to always show 0%. I attach an image.

Screenshot_2022-11-16_11-11-49

airvzxf commented 1 year ago

The same is happening to me. It looks like the issue #110 is not resolving the problem.

Screenshot 2023-04-12_19-25-13

I tested nvitop, and it has the same issue. This image shows that the GPU is using 13% (UTL), but the processes are using 1% (%SM column) of it. Furthermore, it is a discrepancy between the GPU UTL between the bar graphic on the top-right and the value for the same subject on the middle-right: 13% versus 9%.

Screenshot 2023-04-12_19-31-38


                   -`
                  .o+`                 wolf@MSIGT73EVR7RF
                 `ooo/                 OS: Arch Linux
                `+oooo:                Kernel: x86_64 Linux 6.2.10-arch1-1
               `+oooooo:               Uptime: 2d 1h 49m
               -+oooooo+:              Packages: 1720
             `/:-:++oooo+:             Shell: zsh 5.9
            `/++++/+++++++:            Resolution: 1920x1080
           `/++++++++++++++:           WM: OpenBox
          `/+++ooooooooooooo/`         WM Theme: Clearlooks
         ./ooosssso++osssssso+`        GTK Theme: Adwaita [GTK3]
        .oossssso-````/ossssss+`       Disk: 296G / 469G (67%)
       -osssssso.      :ssssssso.      CPU: Intel Core i7-7820HK @ 8x 3.9GHz [57.0°C]
      :osssssss/        osssso+++.     GPU: NVIDIA GeForce GTX 1080
     /ossssssss/        +ssssooo/-     RAM: 11893MiB / 64265MiB
   `/ossssso+/:-        -:/+osssso+-
  `+sso+:-`                 `.-/+oso:
 `++:.                           `-/+/
 .`                                 `/

It could be something wrong with Nvidia for Linux. I have a dual boot, in this Laptop, then on Windows it shows the GPU Fan speed but in Linux not.

Screenshot 2023-04-12_19-55-04

qwertychouskie commented 9 months ago

Considering that this issue applies to another unrelated monitoring app, it sounds like an Nvidia driver issue rather than an nvtop issue. Should probably close as notourbug, though maybe also add a note somewhere that this feature may be broken.

airvzxf commented 9 months ago

I agree, it should be the NVIDIA driver which not returning the correct data. The best approach that I found to check the usage of the GPU is to measure the power, the energy consumes.

Screenshot_2023-12-15_08-19-58

Syllo commented 7 months ago

I'll update the NVML support to call the newest API function versions. It may help with this problem and with GPU MIG/virtualization modes.