clbr / radeontop

GNU General Public License v3.0
804 stars 70 forks source link

No VRAM info for second GPU #36

Open RussianNeuroMancer opened 8 years ago

RussianNeuroMancer commented 8 years ago

Hi

I have SUMO iGPU and TURKS dGPU. radeontop version is 0.9.

With "radeontop -b 0" there is info about VRAM usage, but with "radeontop -b 1" - not VRAM info at all. Strange thing that I thought it works before year ago or so (at least as I remember).

clbr commented 8 years ago

Please try latest git, there was a contribution that changed the -b logic recently.

RussianNeuroMancer commented 8 years ago

In git version this is other way around - no VRAM info for iGPU. Do I need to open separate issue about iGPU?

clbr commented 8 years ago

This one is ok.

Please try to see where it fails - add a printf after the drmOpen call, printing the busid string and what drmOpen returned.

clbr commented 8 years ago

Oh, also, does it only fail when starting without -b, or in both cases?

RussianNeuroMancer commented 8 years ago

Please try to see where it fails - add a printf after the drmOpen call, printing the busid string and what drmOpen returned.

I am not developer so I have no idea what to do there. I even build radeontop not on my machine but using Launchpad: https://launchpad.net/~russianneuromancer/+archive/ubuntu/ppa

Oh, also, does it only fail when starting without -b, or in both cases?

In both cases.

clbr commented 8 years ago

Maybe someone on an Ubuntu IRC channel can walk you through the steps? I'm afraid I can't.

Bengt commented 4 years ago

For what it's worth, monitoring the VRAM usage of two discrete GPUs works fine. So this issue seems limited to the combination of an iGPU and a dGPU. Proof:

Screenshot from 2019-10-19 14-33-42_cut

bisqwit commented 4 years ago
# ./radeontop -b 21
could not drmOpen for busid=pci:0000:21:00.0
Failed to open DRM node, no VRAM support.

I added this code to detect.c, after the if() following drmOpen:

    else
            fprintf(stderr, "could not drmOpen for busid=%s\n", busid);

For reference:

# /opt/amdgpu-pro/bin/clinfo |grep -i 'name:'
  Platform Name:                                 NVIDIA CUDA
  Platform Name:                                 AMD Accelerated Parallel Processing
  Platform Name:                                 NVIDIA CUDA
  Name:                                          GeForce GTX 1080 Ti
  Name:                                          GeForce GTX 970
  Platform Name:                                 AMD Accelerated Parallel Processing
  Board name:                                    AMD Radeon Graphics
  Name:                                          Ellesmere

# lspci|grep Radeon
21:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] (rev e1)
21:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]

# dpkg --get-selections|grep -i drm.*amdgpu
libdrm-amdgpu-amdgpu1:amd64                     install
libdrm-amdgpu-common                            install
libdrm-amdgpu-pro-amdgpu1:amd64                 install
libdrm-amdgpu-pro-radeon1:amd64                 install
libdrm-amdgpu-radeon1:amd64                     install
libdrm-amdgpu1:amd64                            install
libdrm-amdgpu1:i386                             install
libdrm2-amdgpu:amd64                            install
libdrm2-amdgpu-pro:amd64                        install
trek00 commented 4 years ago

It seems to me you are running an older version of radeontop, please try again with the latest git version

bisqwit commented 4 years ago

Thanks, that fixed it. The version in Debian Testing is older.