Graphics memory (VRAM) leak in mutter-x11-frames

Bug #2018731 reported by George Salukvadze
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Mutter
Fix Released
Unknown
mutter (Ubuntu)
Fix Released
High
Unassigned

Bug Description

I'm seeing degraded performance with NVIDIA Geforce 3008 Mobile and two screens.
After launching nvidia-smi, I can clearly see that there's a memory leak in mutter-x11-frames, which uses around 10-12 GB of VRAM.
nvidia-drivers-525
Ubuntu 23.04
X11

ProblemType: Bug
DistroRelease: Ubuntu 23.04
Package: xorg 1:7.7+23ubuntu2
ProcVersionSignature: Ubuntu 6.2.0-20.20-generic 6.2.6
Uname: Linux 6.2.0-20-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.01.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 525.105.17 Tue Mar 28 18:02:59 UTC 2023
 GCC version: gcc version 12.2.0 (Ubuntu 12.2.0-17ubuntu1)
ApportVersion: 2.26.1-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: pass
CompositorRunning: None
CurrentDesktop: ubuntu:GNOME
Date: Mon May 8 14:28:13 2023
DistUpgraded: 2023-04-20 10:00:59,509 DEBUG Running PostInstallScript: '/usr/lib/ubuntu-advantage/upgrade_lts_contract.py'
DistroCodename: lunar
DistroVariant: ubuntu
DkmsStatus: nvidia/525.105.17, 6.2.0-20-generic, x86_64: installed
ExtraDebuggingInterest: Yes
GraphicsCard:
 NVIDIA Corporation GA104M [GeForce RTX 3080 Mobile / Max-Q 8GB/16GB] [10de:24dc] (rev a1) (prog-if 00 [VGA controller])
   Subsystem: Lenovo GA104M [GeForce RTX 3080 Mobile / Max-Q 8GB/16GB] [17aa:3a58]
InstallationDate: Installed on 2023-02-09 (87 days ago)
InstallationMedia: Ubuntu 22.10 "Kinetic Kudu" - Release amd64 (20221020)
MachineType: LENOVO 82N6
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-6.2.0-20-generic root=UUID=2a43fd27-b65c-4d7a-bc19-b001521b0771 ro quiet splash vt.handoff=7
SourcePackage: xorg
Symptom: display
UpgradeStatus: Upgraded to lunar on 2023-04-20 (18 days ago)
dmi.bios.date: 03/07/2023
dmi.bios.release: 1.60
dmi.bios.vendor: LENOVO
dmi.bios.version: GKCN60WW
dmi.board.asset.tag: NO Asset Tag
dmi.board.name: LNVNB161216
dmi.board.vendor: LENOVO
dmi.board.version: SDK0T76461 WIN
dmi.chassis.asset.tag: NO Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Legion 7 16ACHg6
dmi.ec.firmware.release: 1.60
dmi.modalias: dmi:bvnLENOVO:bvrGKCN60WW:bd03/07/2023:br1.60:efr1.60:svnLENOVO:pn82N6:pvrLegion716ACHg6:rvnLENOVO:rnLNVNB161216:rvrSDK0T76461WIN:cvnLENOVO:ct10:cvrLegion716ACHg6:skuLENOVO_MT_82N6_BU_idea_FM_Legion716ACHg6:
dmi.product.family: Legion 7 16ACHg6
dmi.product.name: 82N6
dmi.product.sku: LENOVO_MT_82N6_BU_idea_FM_Legion 7 16ACHg6
dmi.product.version: Legion 7 16ACHg6
dmi.sys.vendor: LENOVO
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.114-1
version.libgl1-mesa-dri: libgl1-mesa-dri 23.0.2-1ubuntu1
version.libgl1-mesa-glx: libgl1-mesa-glx 23.0.2-1ubuntu1
version.nvidia-graphics-drivers: nvidia-graphics-drivers-* N/A
version.xserver-xorg-core: xserver-xorg-core 2:21.1.7-1ubuntu3
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:19.1.0-3
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20210115-1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.17-2build1

Revision history for this message
George Salukvadze (giosal90) wrote :
Revision history for this message
Tarassov Sergey (satarasov) wrote :

Same for me, I see mutter-x11-frames VRAM usage inceases over time.
Laptop screen + external monitor used.

GTX 1650 Ti Mobile
Driver Version: 525.105.17
Ubuntu 23.04
Kernel: 6.2.0-20-generic
X11

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in mutter (Ubuntu):
status: New → Confirmed
Changed in xorg (Ubuntu):
status: New → Confirmed
Revision history for this message
Peter de Kraker (peterdekraker) wrote (last edit ):

I have 3GB of GPU RAM usage by mutter-x11-frames (and my gpu only has 8GB total)
nvidia-smi:
```
 /usr/libexec/mutter-x11-frames 3348MiB
```
Ubuntu 23.04
Kernel 6.2.0-20-generic
Nvidia 530.41.03
GTX 3070 Ti
Desktop with one 4K screen, 200% scaling.

no longer affects: xorg (Ubuntu)
Changed in mutter (Ubuntu):
importance: Undecided → High
tags: added: nvidia
tags: added: gnome-shell-leak
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Upstream thinks this should be fixed in mutter 44.1, but we're yet to confirm.

Changed in mutter:
status: Unknown → New
Revision history for this message
Mateusz Łącki (mateusz-lacki) wrote :

I have upgraded mutter to 44.1 from *-proposed repository. I have restarted my system. "GNOME version" is 44.1 in "Settings" (before restart it was 44.0). I have worked on the computer for a day after restart and this memory usage buildup does not occur. Actually, I do not see "mutter-x11-frames" listed in "nvidia-smi" at all. Previously they used up 1-2GB of VRAM out of my total 4GB.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Great, thanks. It does sound like the change in 44.1 upstream mentioned was the fix.

Changed in mutter (Ubuntu):
status: Confirmed → Fix Released
tags: added: fixed-in-mutter-44.1 fixed-upstream
Changed in mutter:
status: New → Fix Released
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.