nvtop icon indicating copy to clipboard operation
nvtop copied to clipboard

Add support for AMD GTT Memory

Open DocMAX opened this issue 4 months ago • 3 comments

Can you please add a bar to nvtop to show GTT Memory usage (beside VRAM) on AMD GPUs?

DocMAX avatar Aug 07 '25 09:08 DocMAX

Upvote this request. I'm using AMD integrated iGpu with only 512 MiB VRAM and 50 GiB GTT ram. Need to use amdgpu_top for it. Wait for it a lot.

Crandel avatar Aug 07 '25 16:08 Crandel

This info is pretty trivial to query from libdrm, but adding a new memory progress bar on the same line makes them way too narrow. I'm not much of a UI person and some ideas I prototyped didn't look very good. Any ideas on how the UI can be refactored to accommodate another memory bar? @Syllo

TinyServal avatar Oct 31 '25 02:10 TinyServal

It would be nice if we can move the memory progress bars to a new line below, as the encoder/decoder display logic is already quite messy.

Existing layout:

 Device 0 [AMD Radeon Graphics] Integrated GPU RX: N/A TX: N/A
 GPU 1900MHz MEM 1000MHz TEMP  36°C   CPU-FAN   POW   4 W
 GPU[                               0%] MEM[                  0.014Gi/8.000Gi]
 Device 0 [AMD Radeon Graphics] Integrated GPU RX: N/A TX: N/A
 GPU 1900MHz MEM 1000MHz TEMP  36°C   CPU-FAN   POW   4 W
 GPU[                 0%] MEM[    0.014Gi/8.000Gi] ENC[      0%] DEC[      0%]

Proposed layout for GTT devices:

 Device 0 [AMD Radeon Graphics] Integrated GPU RX: N/A TX: N/A
 GPU 1900MHz MEM 1000MHz TEMP  36°C   CPU-FAN   POW   4 W
 GPU[                                                                      0%]
 MEM[                  0.014Gi/8.000Gi] GTT[                  0.014Gi/8.000Gi]
 Device 0 [AMD Radeon Graphics] Integrated GPU RX: N/A TX: N/A
 GPU 1900MHz MEM 1000MHz TEMP  36°C   CPU-FAN   POW   4 W
 GPU[                                          0%] ENC[      0%] DEC[      0%]
 MEM[                  0.014Gi/8.000Gi] GTT[                  0.014Gi/8.000Gi]

Proposed layout for devices that doesn't use GTT:

 Device 0 [NVIDIA RTX A4000] PCIe GEN 1@ 1x RX: 585.0 KiB/s TX: 537.0 KiB/s
 GPU 210MHz  MEM 405MHz  TEMP  56°C  FAN  41%   POW  19 / 140 W
 GPU[                                                                   0%]
 MEM[|||||||||||||                                       12.571Gi/15.992Gi]
 Device 0 [NVIDIA RTX A4000] PCIe GEN 1@ 1x RX: 634.0 KiB/s TX: 537.0 KiB/s
 GPU 210MHz  MEM 405MHz  TEMP  56°C  FAN  41%   POW  19 / 140 W
 GPU[                                       0%] ENC[      0%] DEC[      0%]
 MEM[|||||||||||||                                       12.571Gi/15.992Gi]

TinyServal avatar Oct 31 '25 03:10 TinyServal

As a potential solution without needing to change the UI - how about if you just add VRAM + GTT and show that?

superm1 avatar Dec 13 '25 14:12 superm1

As a potential solution without needing to change the UI - how about if you just add VRAM + GTT and show that?

I've opened a PR that does just that. Works well for me.

superm1 avatar Dec 13 '25 17:12 superm1

I just want to mention, that will work well for iGPUs, because it doesn't matter there, it's the same physical RAM.

For dGPUs, they are different, and seeing this would be useful to debug performance issues when games are GTT'd out.

jlo62 avatar Dec 13 '25 18:12 jlo62

Yeah; that's why I set the change to only apply on APU. Existing policy to only show VRAM is for dGPU.

superm1 avatar Dec 13 '25 18:12 superm1