Thanks a ton! I've ran the commands you mentioned. The number of threads
(grep Threads /proc/`pidof gnome-shell`/status) and the value stayed
constant at 23.

However, the /proc/maps shows something much more interesting. The
number of lines of the maps file slowly increases over time; after just
8 minutes of uptime it hits 2221 and counting. By further grepping I
noticed that it's only the `/dev/dri/card0` lines that are being added
up:

1. watch "cat /proc/2666/maps|grep -v -i card0|wc -l": this shows a relatively 
constant number around 1140
2. watch "cat /proc/2666/maps|grep -i card0|wc -l": starts at around 100, but 
after ~9 minutes of uptime it shows 1301 and the number slowly increases.

Regarding the integrated GPU: since it's a VM, Linux doesn't access M3
GPU chip directly. Linux is running in UTM, which is using QEMU under
the hood. QEMU/UTM uses an Emulated Display Card named "virtio-gpu-gl-
pci" with GPU acceleration, however unfortunately I do not know the
exact details.

I've tried to switch to the "virtio-gpu-pci" Emulated Display Card which
doesn't offer GPU acceleration, forcing Linux to use the software
rendering. That actually fixes this issue: the number of `card0` lines
in the /proc/maps file doesn't increase but rather stays at around 3;
and the memory consumption shown via htop does not increase.

When I boot up Ubuntu 25.04 with kernel 6.14.0-29 and "virtio-gpu-gl-
pci", the number of `/dev/dri/card0` lines in the /proc/maps file
generally stays in the range of 40..60.

Sounds like newer kernel triggers some kind of a bug, but I'm not sure
whether it's in gnome-shell, the kernel, QEMU or UTM :-D

-- 
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-shell in Ubuntu.
https://bugs.launchpad.net/bugs/2122654

Title:
  gnome-shell 49~rc leaks virtual memory on arm64

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2122654/+subscriptions


-- 
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to