Under Fedora F35 the nvidia-X11 server (495) causes too much CPU usage

Dear friend,

i own a Lenovo notebook with a Ryzen9/Radeon and a Geoforce RTX3060 chipset. Since the DisplayPort/MST support is not beeing implemented in the opensource-nouveau driver, i installed the recent 495 nvidia driver from rpmfusion.

This seems the only way to get a native driver support, because the installation with NVIDIA-Linux-x86_64-495.46.sh never succeded and left a broken UI, that prevents the start of the graphical login-manager gdm.
Anyway the RPMFusion developers did a great job but, the started X11-Nvidia consumes too much CPU time (50% and more).

If you need any further information let me know and i can send you some informationm (log-files etc)

Thank you
Christian

Please run nvidia-bug-report.sh as root and attach the resulting nvidia-bug-report.log.gz file to your post.

here it is!
nvidia-bug-report.log.gz (300.6 KB)

Like I already hinted in your previous thread, you should switch to the nvidia gpu as primary with your setup. You’re currently switched to render offload mode, meaning everything is rendered on the amd gpu and then pushed over pcie to the nvidia gpu for display on three 4k monitors. This is not expected to work performant, also taking into account this setup still doesn’t work bugless with AMD/Nvidia combos.

Salut generix,

well it took me some time, to implemtnet your hint. I remeber that i did it
before, with another problem. So in oder to switch the nvidia gpu as primary i

  1. sudo cp -p /usr/share/X11/xorg.conf.d/nvidia.conf /etc/X11/xorg.conf.d/nvidia.conf

  2. inserted a line Option “PrimaryGPU” “yes” into the OutputClass section, right ?

Affer a reboot the option-wheel to use x11 (for gnome) instead of Wayland disappeard, no whell not option.

Enclosed you may find the boot log, there is somehting going wrong, when i gonna set PrimaryGPU.

boot.log.gz (56.9 KB)

I took a look into the boot log. I am not very erpericend with the GUI of linux, but it seems to me, that gdm is trying to probe all avaiblabe graphic options (wayland and X11). It also getting the X11 to work while trying several driver options (also nvidia, nouveau and fb). Some of the are responding others fail. The result of it is shown in the gear/wheel as a set of options.

Well, the x11 part of the log shows how the nvidia driver gets into the play. The driver seems to scan the list of connected external displays. The LG Ultra HD are my external 4K displays (i have 3 of them), but i do miss the notebook display?

Dez 30 21:20:21 fedora /usr/libexec/gdm-x-session[1829]: (II) NVIDIA GLX Module  495.46  Wed Oct 27 16:26:03 UTC 2021
Dez 30 21:20:21 fedora /usr/libexec/gdm-x-session[1829]: (II) NVIDIA: The X server supports PRIME Render Offload.
Dez 30 21:20:21 fedora /usr/libexec/gdm-x-session[1829]: (WW) NVIDIA(0): Failed to initialize Base Mosaic!  Reason: Only one GPU
Dez 30 21:20:21 fedora /usr/libexec/gdm-x-session[1829]: (WW) NVIDIA(0):     detected.  Only one GPU will be used for this X screen.
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(0): Valid display device(s) on GPU-0 at PCI:1:0:0
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(0):     DFP-0.1
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(0):     DFP-0.2
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(0):     DFP-0.3
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(0):     DFP-0 (boot)
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(0):     DFP-1
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(0):     DFP-2
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(0):     DFP-3
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(0):     DFP-4
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (II) NVIDIA(0): NVIDIA GPU NVIDIA GeForce RTX 3060 Laptop GPU (GA106-A) at
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (II) NVIDIA(0):     PCI:1:0:0 (GPU-0)
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(0): Memory: 6291456 kBytes
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(0): VideoBIOS: 94.06.19.00.3e
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (II) NVIDIA(0): Detected PCI Express Link width: 16X
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0.1): connected
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0.1): Internal DisplayPort
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0.1): 2670.0 MHz maximum pixel clock
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0):
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0.2): connected
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0.2): Internal DisplayPort
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0.2): GUID: 10DE9070-0000-0002-C07C-4E4400000056
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0.2): 2670.0 MHz maximum pixel clock
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0):
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0.3): connected
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0.3): Internal DisplayPort
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0.3): GUID: 10DE9070-0000-0002-C07C-4E4400000056
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0): LG Electronics LG Ultra HD (DFP-0.3): 2670.0 MHz maximum pixel clock
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0):
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0): DFP-0: disconnected
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0): DFP-0: Internal DisplayPort
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0): DFP-0: 2670.0 MHz maximum pixel clock
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0):
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0): DFP-1: disconnected
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0): DFP-1: Internal TMDS
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0): DFP-1: 165.0 MHz maximum pixel clock
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0):
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0): DFP-2: disconnected
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0): DFP-2: Internal DisplayPort
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0): DFP-2: 2670.0 MHz maximum pixel clock
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0):
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0): DFP-3: disconnected
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0): DFP-3: Internal TMDS
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0): DFP-3: 165.0 MHz maximum pixel clock
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0):
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0): DFP-4: disconnected
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0): DFP-4: Internal DisplayPort
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0): DFP-4: 2670.0 MHz maximum pixel clock
Dez 30 21:20:24 fedora /usr/libexec/gdm-x-session[1829]: (--) NVIDIA(GPU-0):

My interpretation: Finally nvidia seems to get messed up, because no mode can be computed and the nvidia-x11 is declard as dis-functional. For this reason the gdn only offers wayland, that seems not to work with the Alt-DP connected MST dock.

Iff i am right (not sure) , it would be helpful to point the nvidia-driver to the working notebook display and then let the graphics nvidia config manager to enable the external displays as one and given them the right 30/60/30 hz seeting, that works with windows.

If you need more log, feel free to contact me!

(update-01) ----------
Ok, this is only a test, in order to unserstand what is going on. If commented out the PrimaryGPU in the nvidia config file, because it makes me wonder, why i am able to see more (with x1) without the primary stuff.

As you may notice in the notPrimary bootlog the start of X11 does mention the notebook display, but is seems to be controlled by the AMDGPU. So correct me if am wrong, the amd-radeon and the nvidia gpu have to job to accelerate the UI but both do also control their display. The amd manage the notebook display, where the nvidia does control its channel (DFP-0 … DFP4) where two of them goes straight to the USB-C Alt-DP ports on my notebook.

So as i understand it now the start of PrimaryGPU configuration fails, because X11 is told to use only the NVIDIA-line. Since the AMDGPU ist not beeing asked, the X11 will not find any functional display and thus tells gdm NO-X11!!
boot_xrandr__noPrimary.tgz (68.6 KB)

Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0): Display is continuous-frequency
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0): redX: 0.655 redY: 0.330   greenX: 0.285 greenY: 0.616
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0): blueX: 0.145 blueY: 0.055   whiteX: 0.313 whiteY: 0.329
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0): Manufacturer's mask: 0
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0): Supported detailed timing:
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0): clock: 276.6 MHz   Image Size:  344 x 215 mm
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0): h_active: 2560  h_sync: 2608  h_sync_end 2640 h_blank_end 2720 h_border: 0
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0): v_active: 1600  v_sync: 1610  v_sync_end 1620 v_blanking: 1694 v_border: 0
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0): Supported detailed timing:
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0): clock: 221.3 MHz   Image Size:  344 x 215 mm
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0): h_active: 2560  h_sync: 2608  h_sync_end 2640 h_blank_end 2720 h_border: 0
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0): v_active: 1600  v_sync: 1610  v_sync_end 1620 v_blanking: 1694 v_border: 0
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0):  AUO
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0):  B160QAN02.M
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0): EDID (in hex):
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0):         00ffffffffffff0006af961200000000
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0):         2e1e0104a522167803e305a754499d25
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0):         0e505400000001010101010101010101
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0):         0101010101010c6c00a0a0405e603020
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0):         aa0058d710000018705600a0a0405e60
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0):         3020aa0058d710000018000000fe0041
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0):         554f0a202020202020202020000000fe
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0):         004231363051414e30322e4d200a0029
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0): Printing probed modes for output eDP
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0): Modeline "2560x1600"x60.0  276.60  2560 2608 2640 2720  1600 1610 1620 1694 -hsync -vsync (101.7 kHz eP)
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0): Modeline "2560x1600"x48.0  221.28  2560 2608 2640 2720  1600 1610 1620 1694 -hsync -vsync (81.4 kHz e)
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0): Modeline "1920x1200"x60.0  276.60  1920 2608 2640 2720  1200 1610 1620 1694 -hsync -vsync (101.7 kHz e)
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0): Modeline "1920x1080"x60.0  276.60  1920 2608 2640 2720  1080 1610 1620 1694 -hsync -vsync (101.7 kHz e)
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0): Modeline "1600x1200"x60.0  276.60  1600 2608 2640 2720  1200 1610 1620 1694 -hsync -vsync (101.7 kHz e)
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0): Modeline "1680x1050"x60.0  276.60  1680 2608 2640 2720  1050 1610 1620 1694 -hsync -vsync (101.7 kHz e)
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0): Modeline "1280x1024"x60.0  276.60  1280 2608 2640 2720  1024 1610 1620 1694 -hsync -vsync (101.7 kHz e)
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0): Modeline "1440x900"x60.0  276.60  1440 2608 2640 2720  900 1610 1620 1694 -hsync -vsync (101.7 kHz e)
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0): Modeline "1280x800"x60.0  276.60  1280 2608 2640 2720  800 1610 1620 1694 -hsync -vsync (101.7 kHz e)
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0): Modeline "1280x720"x60.0  276.60  1280 2608 2640 2720  720 1610 1620 1694 -hsync -vsync (101.7 kHz e)
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0): Modeline "1024x768"x60.0  276.60  1024 2608 2640 2720  768 1610 1620 1694 -hsync -vsync (101.7 kHz e)
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0): Modeline "800x600"x60.0  276.60  800 2608 2640 2720  600 1610 1620 1694 -hsync -vsync (101.7 kHz e)
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0): Modeline "640x480"x60.0  276.60  640 2608 2640 2720  480 1610 1620 1694 -hsync -vsync (101.7 kHz e)
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0): EDID for output DisplayPort-0
Dez 31 10:55:28 fedora /usr/libexec/gdm-x-session[1769]: (II) AMDGPU(0): EDID for output DisplayPort-1

I think i have to add another OutputClass for the AMD-GPU in order to have at least one display availbale on initial boot, otherwise there would not be any display and X11 would report not functional!

(update-02) ----------
Ughh, one more thing … when i run the wayland-gnome, the gnome-shell is also eating the CPU for any reason.

A later version of gnome-shell or mutter solved that issue.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.