Xwayland: GPU memory leak
Now when Nvidia got better wayland support I have starting using it more. Someone on the Nvidia developer forums noticed that Xwayland GPU memory usage keeps growing.
I investigated this and came to the conclusion that opening and closing X11 programs makes the Xwayland GPU memory usage grow. Either it's a memory leak or something does not release memory as it should. It's quite possible it's an Nvidia bug but I thought I'd report it here as well.
Xwayland is now using 650Mb GPU memory after 2 days uptime on my system. When I first booted it used ~85Mb GPU memory with the same apps that's currently running right now. I have mostly been starting games (proton) during this time and not so many X11 programs.
To reclaim the memory, it's possible to kill xwayland but then of course all running X11 programs will also be killed. I've also tried to only close all running X11 programs but that does not release the memory held by Xwayland.
Xwayland 24.1 Nvidia driver 555.52.04