15:09 Venemo: jadahl: it looks like gnome-shell uses an excessive amount of VRAM. is this a known bug, or should I open a new issue about it?
15:11 Venemo: jadahl: around 700 MB, which is pretty significant on older GPUs that don't have a ton of VRAM
15:14 emersion: do you have a lot of non-GPU-accelerated clients running?
15:15 emersion: the compositor is responsible for uploading buffers to the GPU for these clients
15:19 Venemo: emersion: it doesn't matter, it's the same even with nothing else running other than the desktop
15:21 emersion: 700 MB doesn't seem *too* crazy. as a reference, sway (a minmal compositor) uses 250MB with a few shm clients
15:22 emersion: mutter probably needs to keep more buffers around for all of the fancy effects, views and widgets
15:22 Venemo: the issue is that it uses up 30-50% of all available VRAM on older GPUs, not leaving much for games
15:22 emersion: (the shell runs in the same process)
15:25 Venemo: at the moment I don't know if mutter alone is to blame or if it's due to missing modifiers support and/or poor choice of tiling formats in Mesa
15:27 emersion: if mutter uses triple buffering, that would also increase VRAM usage
15:28 Venemo: well, I'd like to understand what's happening and see if there is something we can do about it
17:07 karolherbst: Venemo: maybe it's mostly gtk4 using accelerated UI for everything and creating a lot of GL or Vk contexts is also allocating a lot of VRAAM?
17:08 karolherbst: "nvtop" might be able to tell as well
17:10 Venemo: karolherbst: I had thought that gnome-shell doesn't use gtk4
17:10 Venemo: or gtk at all
17:10 karolherbst: well other apps part of gnome might
17:10 karolherbst: like gnome-software running in the background also uses VRAM
17:11 karolherbst: anyway, nvtop might help
17:12 Venemo: but there are no apps in the background, just the shell
17:12 Venemo: if there were umr would tell me
17:42 emersion: the shell doesn't use gtk
18:59 jadahl: Venemo: there should be one gl texture per shm client, and 2 to 4 fullscreen textures for each screen, and things like text glyph cache, some cached flattened widgets etc, but shouldn't be much more than that I think
19:00 jadahl: not sure what vram measurements tools there are to debug things
19:03 jadahl: unfortunately here intel_gpu_top says gnome-shell uses 0 in memory
19:04 zmike: nvtop?
19:09 jadahl: that one does show indeed show almost 700
19:10 jadahl: seems it shows memory owned by clients too though, not sure
19:11 jadahl: opening some windows (vulkan client) makes the memory increase, then closing them makes it go down.
19:11 jadahl: we don't create any additional textures for client windows
19:11 jadahl: unless its shm clients
20:42 Venemo: jadahl: interesting. I used umr for that on an amd gpu. there is an option to dig up more info on it if you're interested
20:44 emersion: i'd ne interested in learning how to dig into this too
20:49 Venemo: launch the compositor with the AMD_DEBUG=extra_md / RADV_DEBUG=extra_md environment variable (the former for radeonsi, the latter for radv). then you're going to need the latest version of umr from git: https://gitlab.freedesktop.org/tomstdenis/umr because it got some recent bug fixes for parsing the info from the kernel. launch it with sudo umr --gui -> then on the GUI click on the tab corresponding to your GPU, click memory use and there is
20:49 Venemo: going to be a tree map with info on each BO
20:50 emersion: nice, will try when I'm back from XDC
20:50 Venemo: we can take a look at it together at XDC
20:50 emersion: tgat would be great! unfortunately except my laptop is not
20:50 emersion: amd
20:51 Venemo: well, then I can show it to you on my laptop
20:51 emersion: ... early enter, sorry
20:51 emersion: yeah, sounds like that would be useful :)
20:52 Venemo: I haven't digged into it more than just looking at the overall vram amount used. it seems to depend on the screen resolution as well. when only a single display is plugged in and set to 1080p the default use goes down to around 300 MiB
20:52 jadahl: Venemo: unfortunately I don't have any amd hw
20:52 Venemo: jadahl: are you coming to XDC?
20:53 jadahl: no :/
20:54 Venemo: ah. I would have offered to just give you a gpu
20:54 emersion: lol
20:54 jadahl: heh, well, too bad :/
21:33 Ermine: have fun at XDC!