24.04 Wayland vs Nautilus performance problem

Bug #2062082 reported by Sam Bee
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
nautilus (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Apologies if I have misfiled this bug - this is a report of an issue affecting Wayland in Ubuntu 24.04 beta.

Using 24.04 beta logging in with Wayland. Nautilus has very significant performance issues. Doesn't happen when logging in with Xorg instead of Wayland.

Opening Nautilus windows - including normal windows navigation, and the file download location dialogue in things like Chrome - extremely slow. Takes approx. 10 seconds to process user double clicking to open folder. Attempting to drag folder across screen usually doesn't work, or takes a very long time.

Not very skilled at debugging, but programmes like Gimp, which has its own built-in folder explorer for choosing a location to save an image, do not have this problem. Ubuntu 24.04 with X does not have this problem. No performance issues have been noticed with folder navigation, stat'ing files etc. over the command line. It is only nautilus and Wayland that give me this issue, so I suspect it is not an issue with my SSD.

The following output was observed when starting nautilus over the command line:

/home/me/ $ nautilus .
** Message: 23:43:50.560: Connecting to org.freedesktop.Tracker3.Miner.Files
libEGL warning: egl: failed to create dri2 screen

After approx. 10 seconds, the folder opened on screen. I double clicked on a sub directory, and it took about 9 seconds to open.

I have attempted to show that this is not an issue with my SSD here:

/home/me/ $ date; cd workspace/; touch foo.txt; ls foo*; cd ../; date;
Wed Apr 17 11:58:16 PM BST 2024
foo.txt
Wed Apr 17 11:58:16 PM BST 2024

As you can see, no unusual slowdown was observed.

Obtaining the following setting for my bug report, I note that the 'Settings' GUI utility is among the areas affect by my very significant system slowdown. I have copied some details about my system including its graphics card in case that helps.

# System Details Report
---

## Report details
- **Date generated:** 2024-04-17 23:59:54

## Hardware Information:
- **Hardware Model:** ASUS ROG STRIX B550-F GAMING
- **Memory:** 32.0 GiB
- **Processor:** AMD Ryzen™ 7 5800X × 16
- **Graphics:** zink Vulkan 1.3(NVIDIA GeForce GTX 1050 Ti (NVIDIA_PROPRIETARY))
- **Disk Capacity:** 2.0 TB

## Software Information:
- **Firmware Version:** 2006
- **OS Name:** Ubuntu Noble Numbat (development branch)
- **OS Build:** (null)
- **OS Type:** 64-bit
- **GNOME Version:** 46
- **Windowing System:** Wayland
- **Kernel Version:** Linux 6.8.0-22-generic

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: xorg 1:7.7+23ubuntu2
ProcVersionSignature: Ubuntu 6.8.0-22.22-generic 6.8.1
Uname: Linux 6.8.0-22-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
.proc.driver.nvidia.capabilities.gpu0: Error: path was not a regular file.
.proc.driver.nvidia.capabilities.mig: Error: path was not a regular file.
.proc.driver.nvidia.gpus.0000.09.00.0: Error: path was not a regular file.
.proc.driver.nvidia.registry: Binary: ""
.proc.driver.nvidia.suspend: suspend hibernate resume
.proc.driver.nvidia.suspend_depth: default modeset uvm
.proc.driver.nvidia.version:
 NVRM version: NVIDIA UNIX x86_64 Kernel Module 545.29.06 Thu Nov 16 01:59:08 UTC 2023
 GCC version:
ApportVersion: 2.28.0-0ubuntu1
Architecture: amd64
BootLog: Error: [Errno 13] Permission denied: '/var/log/boot.log'
CasperMD5CheckResult: pass
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Wed Apr 17 23:44:47 2024
DistUpgraded: 2024-04-11 13:09:51,904 DEBUG migrateToDeb822Sources()
DistroCodename: noble
DistroVariant: ubuntu
ExtraDebuggingInterest: Yes, including running git bisection searches
GraphicsCard:
 NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] [10de:1c82] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: NVIDIA Corporation GP107 [GeForce GTX 1050 Ti] [10de:1c82]
InstallationDate: Installed on 2024-04-11 (6 days ago)
InstallationMedia: Ubuntu 23.10.1 "Mantic Minotaur" - Release amd64 (20231016.1)
MachineType: ASUS System Product Name
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-6.8.0-22-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv ro quiet splash vt.handoff=7
SourcePackage: xorg
Symptom: display
UpgradeStatus: Upgraded to noble on 2024-04-11 (6 days ago)
dmi.bios.date: 03/19/2021
dmi.bios.release: 5.17
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 2006
dmi.board.asset.tag: Default string
dmi.board.name: ROG STRIX B550-F GAMING
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: Rev X.0x
dmi.chassis.asset.tag: Default string
dmi.chassis.type: 3
dmi.chassis.vendor: Default string
dmi.chassis.version: Default string
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr2006:bd03/19/2021:br5.17:svnASUS:pnSystemProductName:pvrSystemVersion:rvnASUSTeKCOMPUTERINC.:rnROGSTRIXB550-FGAMING:rvrRevX.0x:cvnDefaultstring:ct3:cvrDefaultstring:skuSKU:
dmi.product.family: To be filled by O.E.M.
dmi.product.name: System Product Name
dmi.product.sku: SKU
dmi.product.version: System Version
dmi.sys.vendor: ASUS
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.120-2build1
version.libgl1-mesa-dri: libgl1-mesa-dri 24.0.5-1ubuntu1
version.libgl1-mesa-glx: libgl1-mesa-glx N/A
version.nvidia-graphics-drivers: nvidia-graphics-drivers-* N/A
version.xserver-xorg-core: xserver-xorg-core 2:21.1.11-2ubuntu1
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:22.0.0-1build1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20210115-1build1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.17-2build1

Revision history for this message
Sam Bee (sam-bee) wrote :
tags: added: nvidia nvidia-wayland
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thanks for the bug report.

Please try:

1. sudo rm /dev/dri/card0 # to work around bug 2060268, and then log in again. Did that solve it?

2. When the problem starts happening please open a Terminal and run:

   journalctl -b0 > journal.txt
   xlsclients > xclients.txt

   and attach the resulting text files here.

3. While the problem is happening run 'top' in a Terminal window and tell us which process (if any) is using high CPU.

affects: xorg (Ubuntu) → nautilus (Ubuntu)
Changed in nautilus (Ubuntu):
status: New → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

BTW Chrome probably still defaults to using X11 instead of Wayland, and so you likely would hit bug 1970389. That's why I mention xlsclients... It's also why we default to Xorg for Nvidia systems and recommend you use Xorg with the Nvidia proprietary driver.

P.S. Is "zink Vulkan 1.3" something you configured or was that the system default? Where did you get that information from?

Revision history for this message
Sam Bee (sam-bee) wrote :

1. I have deleted the card0 file and restarted my machine. I still experience the same slowdown using wayland, but not when logging in with x11. The effects are still evident when opening a folder with nautilus, when navigating the system settings, and when choosing a download location for a file in Chrome, for example.

2. I include the journal.txt file you requested

3. Neither gnome-shell nor any other process has been observed to use higher than 12% cpu while experiencing the issue

4. The information about my system drivers was obtained by going to the system Settings app, then System > About > System Details > Copy. The nvidia-utils-545 driver had to be installed when I reinstalled ubuntu and upgraded to 24.04 beta recently, to make the graphics work properly. I don't know what the zink Vulkan thing is - is that the name of the firmware for my graphics card?

Revision history for this message
Sam Bee (sam-bee) wrote :

2b - I also attach the xclients file requested

Changed in nautilus (Ubuntu):
status: Incomplete → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nautilus (Ubuntu):
status: New → Confirmed
Revision history for this message
Alexandre Hen (atropine07) wrote :

I had a lot of performance issues with nvidia-driver-535 and nautilus too (installed by default with 24.04 and my RTX 2080 card), but on X11.
Loading /usr/share/ directory could take 10-15 seconds.

Updating manually my drivers to nvidia-driver-550, without using ubuntu-drivers, seems to have resolved this issue for me for the moment.

# Rapport d’informations du système
---

## Détails du compte rendu
- **Date de génération :** 2024-04-28 15:43:20

## Informations liées au matériel :
- **Modèle du matériel :** ASRock X570 Taichi
- **Mémoire :** 32,0 Gio
- **Processeur :** AMD Ryzen™ 7 5800X3D × 16
- **Carte graphique :** NVIDIA GeForce RTX™ 2080
- **Capacité du disque :** 8,5 To

## Informations liées au logiciel :
- **Version du micrologiciel :** P5.01
- **Nom du système d’exploitation :** Ubuntu 24.04 LTS
- **Construction du système d’exploitation :** (null)
- **Type de système d’exploitation :** 64 bits
- **Version de GNOME :** 46
- **Système de fenêtrage :** X11
- **Version du noyau :** Linux 6.8.0-31-generic

Revision history for this message
frenchy82 (cartes) wrote :

Same here, nvidia-driver-550 on wayland with a old NVIDIA GeForce GTX 970 was the solution

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.