[WAYLAND][NVIDIA] GPU memory leak with NVIDIA proprietary drivers
Affected version
Linux 5.15.10 (Arch Linux)
Mutter 41.2
NVIDIA 495.46 (GTX 1060)
Wayland only is affected with NVIDIA proprietary drivers.
Bug summary
Gnome is constantly allocating resources on GPU without freeing them.
Steps to reproduce
Start GNOME with Wayland session and NVIDIA proprietary drivers
What happened
The 256 Mio B.A.R. GPU memory chunk is constantly filled and never freed until I stop the session.
I can see on vulkaninfo
output GPU memory usage on 3rd memory increases every time I check memory usage.
memoryHeaps[2]: size = 257949696 (0x0f600000) (246.00 MiB) budget = 111345664 (0x06a30000) (106.19 MiB) usage = 146604032 (0x08bd0000) (139.81 MiB) flags: count = 1 MEMORY_HEAP_DEVICE_LOCAL_BIT
When memory is full I can't start any Vulkan program even vulkaninfo
or vkcube
(segmentation fault).
My kernel log is full of allocation errors such as:
[drm:__nv_drm_gem_nvkms_map [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to map NvKmsKapiMemory 0x00000000c30cf4a4
What did you expect to happen
No memory leak
Relevant logs, screenshots, screencasts etc.
gnome-shell[1075]: Window manager warning: Failed to write cursors buffer data: Cannot allocate memory
It seems to be related to hardware cursor.