I recently cobbled together an AMD 3950X, Aorus Master x570 and 64G of ram. I’m quite happy with it but there is a significant memory leak with gnome shell. Within a matter of hours it goes from 200mb to 1.2G of memory usage and then the system sometimes just freezes.
This is a clean install btw.
I was waiting to write this post until I could at least point to something which was causing it.
And this morning I found it – touching or moving windows. That’s it. When I boot into Ubuntu and open the System Monitor I can see the gnome-shell taking up ~200mb of memory. If I leave it alone it pretty much remains static (have only done that for an hour but it doesn’t increase ram usage in that period). If I suddenly touch a window and bring it to the foreground then gnome-shell instantly jumps anywhere from 1-10mb in memory usage. Moving Firefox around, switching workspaces etc. Just opening Gnome Maps causes it to jump 40mb. Same thing for Handbrake.
Closing the apps does not release the memory, it keeps increasing. Relaunching maps or handbrake causes gnome-shell to take even more memory.
At some point I seem to hit a threshold where gnome-shell just increases on its own by 200kb every 5 seconds – pretty soon I’m over 1G and having to restart gnome-shell before the system freezes (cursor and keyboard freezes)
Oddly, my sons Ubuntu 19.10 does not do this. I performed a clean install on that hardware as well (2700x). gnome-shell never goes over 250mb on his setup, I can launch and move anything and it generally stays at 245mb.
However, a colleague who also uses Ubuntu 19.10 has noticed the exact same behaviour on his 2990WX. He went a little further in his testing and decided to install Linux Mint and the leaking stopped. He then installed Ubuntu Mate and the leaking also stopped, he returned to Ubuntu 19.10 stock install and immediately saw gnome-shell jump over 1G within a few hours. He’s back to Mate now and staying there.
I’m currently waiting this issue out until 20.04 where I plan to stick with the LTS. However, if there is some kind of logging I can do to in order to submit a bug report I’d be eager to learn about it. Short of recording a video with OBS I’m not entirely sure what to do here (other than restarting gnome-shell every 60mins)
Edit: lots of spelling…