Syllo / nvtop

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

nvtop doesn't show my second GPU #243

Open awsms opened 9 months ago

awsms commented 9 months ago

In "desktop" mode, nvtop won't show both GPU (optimus laptop: AMD integrated GPU + NVIDIA discrete GPU). However, it works fine if I launch nvtop in tty, where both GPU are correctly identified.

nvtop executed in a terminal on the desktop:

 Device 0 [NVIDIA GeForce RTX 3060 Laptop GPU] PCIe GEN 2@ 8x RX: 6.836 MiB/s TX: 173.8 MiB/s
 GPU 855MHz  MEM 810MHz  TEMP  49°C FAN N/A% POW  21 /  80 W
 GPU[||||||||||||||||||                    45%] MEM[|||||||||||||||||        2.587Gi/6.000Gi]
   ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
100│GPU0 %                                                                                                                                                                                                                                                    │
   │GPU0 mem%                                                                                                                                                                                                                                                 │
   │                                                                                                                                                                                                                                                          │
   │                                                                                                                                                                                                                                                          │
   │                                                                                                                                                                                                                                                          │
 75│                                                                                                                                                                                                                                                          │
   │                                                                                                                                                                                                                                                          │
   │                                                                                                                                                                                                                                                          │
   │                                                                      ┌─┐                                                                                                                                                                                 │
   │                                                                      │ │                                                                                                     ┌─┐                                                                         │
 50│                                                                      │ │                                                               ┌─┐                                   │ │             ┌─┐                       ┌─┐                               │
   │                                                                     ┌┼─┼─────────────────────────────────────────────────┬─┬───────┬─┬─┼─┼───────────────────────────────────┼─┼─────┬─┬─────┼─┼───────────────────┬─┬─┼─┼───┬─┬───────────────┬─┬─────┬─│
   │                                                                     ││ │                                                 │ │   ┌─┐ │ │ │ │                                   │ │     │ │     │ │                   │ │ │ │   │ │ ┌─┐           │ │ ┌─┐ │ │
   │                                                                    ┌┼┘ └───┐ ┌─────────────────────────────┐             │ │   │ │ │ │ │ │           ┌─┐ ┌─┐                 │ └───┐ │ │     │ │                   │ │ │ │   │ │ │ │       ┌─┐ │ │ │ │ │ │
   │                                                                    ││      └─┘                             └─┐     ┌─┐   │ │   │ │ │ │ │ └─┐   ┌───┐ │ │ │ │     ┌─────┐     │     │ │ │     │ │   ┌─┐ ┌─┐     ┌─┐ │ │ │ │ ┌─┘ │ │ │       │ │ │ │ │ │ │ │
 25│                                                                    ││                                        └─┐ ┌─┘ │   │ │ ┌─┘ │ │ └─┘   └─┐ │   │ │ └─┘ └───┐ │     └───┐ │     └─┘ └───┐ │ └─┐ │ └─┘ └─────┘ └─┘ │ │ └─┘   │ │ └─────┐ │ │ │ └─┘ └─┘ │
   │                                                                    ││                                          └─┘   └───┘ └─┘   └─┘         └─┘   └─┘         └─┘         └─┘             └─┘   └─┘                 └─┘       └─┘       └─┘ │ │         │
   │                                                                    ││                                                                                                                                                                        └─┘         │
   │                                                                    ││                                                                                                                                                                                    │
   │                                                                    ││                                                                                                                                                                                    │
  0│────────────────────────────────────────────────────────────────────┴┘                                                                                                                                                                                    │
   └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
    PID USER DEV    TYPE  GPU        GPU MEM    CPU  HOST MEM Command                                                                                                                                                                                          
 199237  nop   0 Graphic   0%   2254MiB  37%    13%   1625MiB Z:\media\nop\big_nvme\gaymes\SteamLibrary\steamapps\common\Dead Rising\DeadRising.exe                                                                                                            
 199237  nop   0 Compute   0%   2254MiB  37%     0%   1625MiB Z:\media\nop\big_nvme\gaymes\SteamLibrary\steamapps\common\Dead Rising\DeadRising.exe
   1272 root   0 Graphic  26%    173MiB   3%     9%    582MiB /usr/lib/Xorg :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch

tty:

 Device 0 [NVIDIA GeForce RTX 3060 Laptop GPU] PCIe GEN 1@ 8x RX: 7.812 MiB/s TX: 1.953 MiB/s Device 1 [AMD Radeon Graphics]                Integrated GPU RX: N/A TX: N/A
 GPU 210MHz  MEM 405MHz  TEMP  47°C FAN N/A% POW  15 /  80 W                                  GPU 400MHz  MEM 1600MHz TEMP  52°C CPU-FAN  POW  10 W
 GPU[                                       0%] MEM[||||||||||||||||         2.486Gi/6.000Gi] GPU[                                       0%] MEM[|||||||||||||||||||||||||3.721Gi/4.000Gi]
   ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
100│GPU0 %                                                                                                                                                                                                                                    │
   │GPU0 mem%                                                                                                                                                                                                                                 │
   │                                                                                                                                                                                                                                          │
   │                                                                                                                                                                                                                                          │
   │                                                                                                                                                                                                                                          │
 75│                                                                                                                                                                                                                                          │
   │                                                                                                                                                                                                                                          │
   │                                                                                                                                                                                                                                          │
   │                                                                                                                                                                                                                                          │
   │                                                                                                                                                                                                                                          │
 50│                                                                                                                                                                                                                                          │
   │                                                                                                                                                                                                                                          │
   │                                                                                                                                                                                                                                 ┌────────│
   │                                                                                                                                                                                                                                 │        │
   │                                                                                                                                                                                                                                 │        │
 25│                                                                                                                                                                                                                                 │        │
   │                                                                                                                                                                                                                                ┌┼┐       │
   │                                                                                                                                                                                                                                │││       │
   │                                                                                                                                                                                                                                │││       │
   │                                                                                                                                                                                                                                │││       │
  0│────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴┘└───────│
   └117s─────────────────────────────────────────────────────87s────────────────────────────────────────────────────────58s───────────────────────────────────────────────────────29s───────────────────────────────────────────────────────0s┘
   ┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
100│GPU1 %                                                                                                                                                                                                                                    │
   │GPU1 mem%                                                                                                                                                                                                                        ┌────────│
   │                                                                                                                                                                                                                                 │        │
   │                                                                                                                                                                                                                                 │        │
   │                                                                                                                                                                                                                                 │        │
 75│                                                                                                                                                                                                                                 │        │
   │                                                                                                                                                                                                                                 │        │
   │                                                                                                                                                                                                                                 │        │
   │                                                                                                                                                                                                                                 │        │
   │                                                                                                                                                                                                                                 │        │
 50│                                                                                                                                                                                                                                 │        │
   │                                                                                                                                                                                                                                 │        │
   │                                                                                                                                                                                                                                 │        │
   │                                                                                                                                                                                                                                 │        │
   │                                                                                                                                                                                                                                 │        │
 25│                                                                                                                                                                                                                                 │        │
   │                                                                                                                                                                                                                                 │        │
   │                                                                                                                                                                                                                                 │        │
   │                                                                                                                                                                                                                                 │        │
   │                                                                                                                                                                                                                                 │        │
  0│─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴────────│
   └117s─────────────────────────────────────────────────────87s────────────────────────────────────────────────────────58s───────────────────────────────────────────────────────29s───────────────────────────────────────────────────────0s┘
    PID USER DEV     TYPE  GPU        GPU MEM    CPU  HOST MEM Command                                                                                                                                                                          
 199237  nop   0  Graphic   0%   2254MiB  37%    10%   1625MiB Z:\media\nop\big_nvme\gaymes\SteamLibrary\steamapps\common\Dead Rising\DeadRising.exe                                                                                            
 199237  nop   0  Compute   0%   2254MiB  37%     0%   1625MiB Z:\media\nop\big_nvme\gaymes\SteamLibrary\steamapps\common\Dead Rising\DeadRising.exe
   1272 root   1  Graphic   0%   1617MiB  39%     0%    582MiB /usr/lib/Xorg :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
   5646  nop   1  Graphic   0%   1417MiB  35%     1%    269MiB /usr/lib/chromium/chromium --type=gpu-process --change-stack-guard-on-fork=enable --gpu-preferences=WAAAAAAAAAAgAAAEAAAAAAAAAAAAAAAAAABgAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
   2070  nop   1  Graphic   0%   1328MiB  32%     0%    293MiB cinnamon --replace
   3636  nop   1  Graphic   0%    361MiB   9%     2%    530MiB tauonmb
 108620  nop   1  Graphic   0%    134MiB   3%     0%    344MiB /home/nop/.local/share/ValveSteam/ubuntu12_64/steamwebhelper --disable-seccomp-filter-sandbox -lang=en_US -cachedir=/home/nop/.local/share/ValveSteam/config/htmlcache -steampid=
 152728  nop   1  Graphic   0%     90MiB   2%     0%    163MiB /usr/lib/electron25/electron --type=gpu-process --crnoppad-handler-pid=16528 --enable-crnop-reporter=41068b2e-d0dd-4f9d-809c-ea98ba69d3d4,no_channel --user-data-dir=/home/nop/.c
   1272 root   0  Graphic   0%     70MiB   1%     0%    582MiB /usr/lib/Xorg :0 -seat seat0 -auth /run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
  15383  nop   1  Graphic   0%     55MiB   1%     0%    247MiB /home/nop/.local/bin/python /usr/bin/nicotine
 108590  nop   1  Graphic   0%      8MiB   0%     2%    128MiB /home/nop/.local/share/ValveSteam/ubuntu12_32/steam