How to see if your GPU is being used by games or a process in linux?
from SpiderUnderUrBed@lemmy.zip to linux@lemmy.ml on 18 May 08:51
https://lemmy.zip/post/38834306

Title, I am unsure if games are using my GPU or if using my CPU, or maybe my GPU through my CPU, I do not know, something is using my GPU, but I think its just KDE plasma, and I would like to know definitively how to find out

#linux

threaded - newest

StrawberryPigtails@lemmy.sdf.org on 18 May 08:56 next collapse

nvtop will show you what processes are using your GPU.

abobla@lemm.ee on 18 May 10:10 next collapse

+1 for nvtop, helped me check my vram usage

wwb4itcgas@lemm.ee on 18 May 11:32 next collapse

Thanks for the tip! I wasn’t aware of nvtop, and I’m thoroughly pleased that’s no longer the case.

HumanPenguin@feddit.uk on 18 May 12:26 next collapse

Thanks til. After 30+ years using Linux exclusively. That is very useful.

Admittedly GPUs were not a thing when I started. It’s cool to learn new useful things. Thanks.

IrritableOcelot@beehaw.org on 18 May 19:04 next collapse

…and for anyone like me who was unsure, yes it works equivalently for AMD. I think Intel as well, but I’m not sure about that.

SteveTech@programming.dev on 19 May 02:28 collapse

The master branch works well with Intel ARC, I contributed a lot of the ARC changes. I don’t think they’ve made it into a release yet though.

StrawberryPigtails@lemmy.sdf.org on 19 May 08:12 collapse

Thank you for your contributions!

desktop_user@lemmy.blahaj.zone on 19 May 02:25 collapse

does it work for multi gpu systems?

StrawberryPigtails@lemmy.sdf.org on 19 May 03:46 collapse

The screenshot in the readme suggests it does, but I couldn’t say for myself. I’m not that rich.

github.com/Syllo/nvtop

desktop_user@lemmy.blahaj.zone on 19 May 06:17 collapse

nice

wewbull@feddit.uk on 18 May 09:08 next collapse

github.com/Umio-Yasuno/amdgpu_top

sovietknuckles@hexbear.net on 18 May 09:17 next collapse

You can use Bumblebee to ensure your game is the only thing that gets the GPU by running only it through optirun (AMD support is probably not coming soon)

You can also use taskset to ensure that only your game gets physical CPU cores, and everything else gets efficiency CPU cores

Hubi@feddit.org on 18 May 11:08 next collapse

Since you’re on KDE, plasma-systemmonitor should already be installed. It is the closest to the Windows task manager that you’re probably familiar with.

Carrot@lemmy.today on 19 May 17:05 collapse

I’ve always had to manually add my GPU to system monitor, and since I’ve always had integrated GPU as well, had to sort out which GPU is the dedicated GPU before knowing what service is using which GPU. But this definitely is my favorite method once I get it all set up, makes it really clear if a steam game is using the wrong GPU

Darkassassin07@lemmy.ca on 18 May 14:54 next collapse

If you’ve got an nvidia gpu+drivers installed, you’ve probably got ‘nvidia-smi’ already which will show you utilization and which processes are using it.

mortalic@lemmy.world on 18 May 15:00 next collapse

Everyone talking about nvidia, but install radeontop for amd cards. It’s not very detailed but shows the gpu usage.

For nvidia I like nvidia-smi.

ozymandias117@lemmy.world on 18 May 16:05 next collapse

nvtop, while it sounds like it’s nvidia, is brand agnostic It actually stands for “neat videocard top”

It’ll show per process usage of memory and compute usage on most GPUs

kuneho@lemmy.world on 19 May 07:15 collapse

unfortunately, radontop doesn’t support relatively old cards. I get this error. (And the github page states that >R600 will work)

Unknown Radeon card. <= R500 won’t work, new cards might.

Also, my AMD CPU has a integrated GPU too, radeontop just doesn’t know about it.

The GPU works on my system tho, just radeontop doesn’t detect/support them. Oh well.

mortalic@lemmy.world on 19 May 14:14 collapse

That’s a bummer then. Sorry friend.

spv@lemmy.spv.sh on 18 May 22:02 collapse

intel_gpu_top, nvidia-smi, or radeontop. pick your poison.