Nvidia GPU - rhythmic activity

This isn’t a problem, it’s more of a curiosity thing.

Updated to 6.16.11 this morning, found that it was very sluggish in responding to keystrokes. Fired up btop to see what was kicking its own head in and realised it was a lack of Nvidia drivers - at least they were not at all happy.

Rebuilt, reboot and recovered normality. Fired btop back up again to make sure everything looked happy and noticed that the GPU activity was displaying a regular pattern. Assumed it was my browser polling YouTube or something, so I shut everything down - turned the Wi-Fi radios off, turned the Ethernet port off - got it down to nothing more than Wayland, ghostty and btop. Set the btop refresh rate to 1000 m and left it alone for 10 minutes or so.

Anyone have any idea what is causing the GPU to perform a steady ramp up to about 20%, then a steady ramp down to its usual 3 or 4% every 20 seconds or so.

For those not aware, we’re looking at the green lines underneath the centre line. CPU is above, GPU is below. As you can see, nothing really active on the CPU, but a fairly consistent “wake up and have a look around” activity from the GPU. Nothing running, nothing on the network, nothing using the mouse, the screen (I powered the monitor off at the wall in case the GPU was polling it to see if it had magically produced some new resolutions or something equally unlikely.

As this is the closed proprietary driver, it’s almost certainly something Nvidia is trying to do, but what? This is not a new kernel thing - it happens on previous kernels as I’ve just found out, but because I noticed it, now I can’t unsee it.

1 Like

Is it really?
What is the output of modinfo -l nvidia ?
If that produces nvidia as the result then it is the closed driver,
but if it returns Dual MIT/GPL then it is the newer open driver.

I just ran btop on my desktop machine for several minutes with the same 1000ms update, and have the nvidia drivers installed. It is using the newer open driver and this is what I see. I do not see the rhythmic behavior you display, so would not attribute it to the driver for the gpu, but rather to something else you appear to have running. (I do not have ghostty installed or used). I also had my browser in use the full time.

┌─🎩 lurcher ~
├─
└─➜ modinfo -l nvidia                                                                                                                                                                                                         ⏱️ 1h2m40s 16:52 Tue 14-Oct
NVIDIA

Any idea what the difference under the hood really is between the two?

I don’t see anything strange here using the open module.

this it going to be “just me”… I can already feel it!

You need someone else to test with the closed driver to see if it just you.

I don’t know the differences, but the proprietary driver should only be built if you have an older gpu that is not supported by the open driver. (Assuming you have the driver installed from rpmfusion). If it is installed from anywhere else then all bets are off.

To see what is actually installed please run dnf list --installed \*nvidia\* as well as inxi -Gxx and post those results

─➜ sudo dnf list --installed '*nvidia*'                                                                                                                                                                                                                                                                                         19:02 Tue 14-Oct
Installed packages
akmod-nvidia.x86_64                        3:580.95.05-1.fc42 rpmfusion-nonfree-nvidia-driver
kmod-nvidia-6.16.10-200.fc42.x86_64.x86_64 3:580.95.05-1.fc42 @commandline
kmod-nvidia-6.16.11-200.fc42.x86_64.x86_64 3:580.95.05-1.fc42 @commandline
kmod-nvidia-6.16.7-200.fc42.x86_64.x86_64  3:580.82.09-1.fc42 @commandline
kmod-nvidia-6.16.8-200.fc42.x86_64.x86_64  3:580.82.09-1.fc42 @commandline
kmod-nvidia-6.16.9-200.fc42.x86_64.x86_64  3:580.82.09-1.fc42 @commandline
libva-nvidia-driver.x86_64                 0.0.14-1.fc42      <unknown>
nvidia-gpu-firmware.noarch                 20250917-2.fc42    <unknown>
nvidia-modprobe.x86_64                     3:580.95.05-1.fc42 rpmfusion-nonfree-nvidia-driver
nvidia-persistenced.x86_64                 3:580.95.05-1.fc42 rpmfusion-nonfree-nvidia-driver
nvidia-settings.x86_64                     3:580.95.05-1.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia.x86_64                 3:580.95.05-1.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda.x86_64            3:580.95.05-1.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.i686         3:580.95.05-1.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-cuda-libs.x86_64       3:580.95.05-1.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-kmodsrc.x86_64         3:580.95.05-1.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.i686              3:580.95.05-1.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-libs.x86_64            3:580.95.05-1.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-power.x86_64           3:580.95.05-1.fc42 rpmfusion-nonfree-nvidia-driver
xorg-x11-drv-nvidia-xorg-libs.x86_64       3:580.95.05-1.fc42 rpmfusion-nonfree-nvidia-driver

No idea where the libva-* stuff came from.

┌─🎩 lurcher ~
├─
└─➜ inxi -Gxx                                                                                                                                                                                                                                                                                                                    19:02 Tue 14-Oct
Graphics:
  Device-1: NVIDIA TU104 [GeForce RTX 2080] vendor: eVga.com. driver: nvidia
    v: 580.95.05 arch: Turing pcie: speed: 2.5 GT/s lanes: 16 ports:
    active: DP-4 empty: DP-1, DP-2, DP-3, HDMI-A-1, Unknown-2 bus-ID: 0e:00.0
    chip-ID: 10de:1e82
  Display: wayland server: X.org v: 1.21.1.18 with: Xwayland v: 24.1.8
    compositor: kwin_wayland driver: gpu: nvidia,nvidia-nvswitch display-ID: 0
  Monitor-1: DP-4 model: Dell U3415W res: 3440x1440 hz: 60 dpi: 109
    diag: 865mm (34.1")
  API: EGL v: 1.5 platforms: device: 0 drv: nvidia device: 2 drv: swrast
    gbm: drv: nvidia surfaceless: drv: nvidia wayland: drv: nvidia x11:
    drv: nvidia inactive: device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 580.95.05
    glx-v: 1.4 direct-render: yes renderer: NVIDIA GeForce RTX 2080/PCIe/SSE2
    display-ID: :0.0
  API: Vulkan v: 1.4.313 surfaces: N/A device: 0 type: discrete-gpu
    driver: nvidia device-ID: 10de:1e82 device: 1 type: cpu
    driver: mesa llvmpipe device-ID: 10005:0000
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor gpu: nvidia-settings,nvidia-smi
    wl: wayland-info x11: xdriinfo, xdpyinfo, xprop, xrandr

To find out where that libva package came from you could probably run dnf4 list --installed libva-nvidia-driver.
That could possibly be interfering and I do not have that package.

If modinfo -l nvidia still returns NVIDIA then you might try rebuilding the nvidia driver with sudo dnf remove libva-nvidia-driver to remove that one then sudo akmods --rebuild --force which should remove the current module and build it anew. The akmod-nvidia package is supposed to detect which gpu is installed and build the module accordingly. The RTX 2050 gpu is supported by the open driver and the module should be properly built for that gpu.

Reboot after doing the rebuild to load the newly compiled driver.

libva-nvidia-driver is a package from the main Fedora repo: libva-nvidia-driver - Fedora Packages

This is an VA-API implementation that uses NVDEC as a backend. This implementation is specifically designed to be used by Firefox for accelerated decode of web content, and may not operate correctly in other applications.

It’s not installed in the default releases but is suggested by the RPMFusion Multimedia guide.

Apparently, it’s from @updates

Installed Packages
libva-nvidia-driver.x86_64                                                                                0.0.14-1.fc42                                                                                 @updates

Removed it.

Rebuild the driver so it’s now showing as Dual MIT/GPL (I’d left a macro active override in /etc/rpm/ - took a while to find that!)

Unfortunately no difference to the regular ramp-up/down of the GPU.

Just noted the update from @PG-tips (fine tea!) and that is almost certainly where I yoinked it from, although I have no recollection of doing so - I was trying to encourage Firefox to display video in a more GPU accelerated fashion a few months back as it was using a lot of CPU to play YT videos, and spinning the CPU fans up enough to be annoying. In the end I employed a hardware approach and replaced the stock cooler with a larger twin tower affair which frankly I should have done years ago.

Anyway, still got the GPU “breathing” going on, so I think I’ll boot into a lower runlevel / systemd target and see if it goes away when there’s no wayland running!

If you ever get motivated to look at it again, my list of tweaks (other than package installs) to get it working was:

  • Environment vars NVD_BACKEND=direct MOZ_DISABLE_RDD_SANDBOX=1
  • about:config prefs:
    • media.hardware-video-decoding.force-enabled -> true
    • media.ffmpeg.vaapi.enabled → true
    • gfx.x11-egl.force-enabled → true
    • widget.dmabuf.force-enabled → true

(Not sure all those preferences are strictly required.)

Then to test the settings, go to the pseudo-URL about:support#media and you should see something like this. (Exact set of supported codecs will depend on what series of GPU card you have - this is from a 3000 series)

1 Like

And as expected, it’s “normal” with no wayland loaded and its even “normal” in an alternative TTY when a full system is running on the main wayland display server but not actually being displayed.

Found it. Been looking at the cause of this weirdness all day and the penny just dropped.

It’s the wallpaper. I was using the Hunyango (whatever that is) wallpaper and it changes colour every 20 seconds or so. It’s the fade in and fade out of the desktop wallpaper…

Sigh.

Also, @pg-tips where was your handy list of incantations to chant when I was losing my mind trying to get GPU acceleration in FF working better than it was! I’m using Zen now anyway, so I think I’ll have a fiddle with this lot anyway, just for fun.

3 Likes