System monitor shows 0.0% GPU usage constantly

Hi all!

After installing the latest fedora (KDE) I’ve installed the nvidia drivers according to this https://rpmfusion.org/Howto/NVIDIA. Sadly since that the system monitor constantly displays 0.0% usage for my GPU even while gaming. I have an RTX 3080.

The driver seems to work well as running “modinfo -F version nvidia” displays “580.119.02” also I’ve noticed huge FPS boost and visual quality in the game I’ve tried.

I found this post describing the same issue but the solution there was to use something other than system monitor which I don’t want.

Maybe add your information to this bug https://bugs.kde.org/show_bug.cgi?id=513708

With the latest KDE Plasma and a 3060Ti I don’t have this issue (i.e. usage displays fine). So there must be some particular set of conditions that causes it.

1 Like

Are you seeing the This page is missing some sensors and will not display correctly. messages on the system monitor?

I do see GPU % for my AMD GPU. But not for the Fedora in a KVM VMs.

Given what @pg-tips said can you tell us which version of Fedora you are using and if it has been fully updated?

I’m using fedora 43 and i’ve updated it.

System monitor doesn’t show any errors neither on the GUI nor in the logs.

sudo journalctl -b _PID=23006
Jan 18 17:15:29 fedora plasma-systemmonitor[23006]: QWaylandGLContext: Failed to create the decorations EGLContext. Decorations will not be drawn.

This is all there is in the logs.

Just my two cents in case either are relevant:

  1. Are you seeing any usage when you run nvidia-smi?
  2. Are you running a multi-gpu system (i.e. do you have integrated graphics as well)?

If the second point applies, it might be worth trying to disable the integrated GPU to see if it causes the system monitor to begin reporting the dedicated GPU instead. I will acknowledge that I do not use KDE, so I am unfamiliar with the finer details for the system monitor there.

I know you mentioned not wanting another application, but I quite like this tool, Resources, as it will report multiple GPUs if they are present. Helpful for showing what resources are actually in use at any given time.

2 Likes

You can try Edit page, click on the GPU and change the config for what it disaplays. Does one of the sources of info fix the problem?

1 Like
gramms@fedora:~$ nvidia-smi
bash: nvidia-smi: command not found...
Packages providing this file are:
'xorg-x11-drv-nvidia-390xx-cuda'
'xorg-x11-drv-nvidia-470xx-cuda'
'xorg-x11-drv-nvidia-cuda'
CPU: AMD Ryzen 7 7800X3D (16) @ 5.05 GHz
GPU 1: NVIDIA GeForce RTX 3080 [Discrete]
GPU 2: AMD Raphael [Integrated]

It seems it indeed has integrated graphics :sweat_smile:. Now I have a strong suspicion that is the problem (also considering I believe it worked before installing the driver). I’ll try to verify this later as I can’t restart my system at the moment. If that’s the case can this help solving the bug ticket? If so I’ll also happily add it to the ticket.

Thank you for your help so far, really appreciate it.

Personally I always disable the intergrated graphics whenI have a system fitted with a GPU card.

Okay I’ve tried this but what I found seems really weird. This is before turning off integrated graphics.

I’m not sure why GPU 3 Name is GPU 3 Both show 0% usage, GPU 2 has temperature. Also both show 0 Power usage.

This is after turning off integrated graphics.

GPU 3 is no longer present

Just a hypothesis, but since these are the proprietary Nvidia drivers, could you try installing the cuda package that includes the nvidia-smi tool? I wonder if the system monitor needs that to poll for usage info.

Depending on your hardware, I think it’s just:

sudo dnf install xorg-x11-drv-nvidia-cuda

1 Like

Oh wow. Thank you everyone, especially to @dannflower and @barryascott installing cuda worked!

Still I don’t understand I thought cuda was mainly needed for AI? Why did this help and why proprietary Nvidia drivers weren’t enough? Cuda is also proprietary no?

1 Like

Still I don’t understand I thought cuda was mainly needed for AI? Why did this help and why proprietary Nvidia drivers weren’t enough? Cuda is also proprietary no?

To elaborate on this a little bit, the Cuda package includes the nvidia-smi tool that, when run, dumps out a lot of diagnostic info about the Nvidia hardware running in the machine. Why it’s not included in the primary driver package I’m not 100% sure, perhaps because it’s assumed to be optional and not required for normal use.

Nvidia drivers are a moving target for lots of Linux software, so rather than trying to read sensors themselves they just piggy-back off of nvidia-smi output to make it easier.

2 Likes

Not quite.
Cuda makes us of the graphics processing cores in the GPU to perform lots of different calculations. The ability of the nvidia GPU cores to perform calculations much faster than the CPU makes them ideal for AI, but also for many other uses.

I agree that cuda should be included with the basic nvidia driver installation but that is another discussion.

My recommendation has always been to install both akmod-nvidia and xorg-x11-drv-nvidia-cuda at the same time to avoid the type of issues you were seeing.