47GB RAM usage from kwin_wayland after wake up

Hi there.
I am having a very high memory usage after sleeping and waking my system up. I have 64GB ram and when the system wakes up I see a very high ram usage. In htop, kwin_wayland seems to be using around 75% CPU and 75% RAM (47GB).


image

I’ve Fedora 41 as OS, KDE as desktop environment, sddm as display manager, nvidia as gpu and I have proprietary drivers installed.

Sleep feature is basically unusable at the moment. I get OOM and full system freeze issues if I start something that use some RAM like a browser, VSCode, or a virtual machine after waking up. It basically consumes all available ram and I am guessing high cpu usage is caused by garbage collector.

I’m having a very similar issue on Kubuntu 25.04 (high RAM usage) except for I don’t have the same CPU usage issue. Curiously, the high RAM usage doesn’t appear to affect me using my computer and it just casually idles in the 90% range. Occasionally it resets back down and climbs back up slowly but I don’t really notice. The only problem it’s been causing me is inability to hibernate (since swap isn’t big enough) but normal sleep seems to work fine.

This Arch Wiki post may or may not be related: Memory Leak with Wayland? / Newbie Corner / Arch Linux Forums

And the relevant bug: 496469 – Memory leaks and instabilities with different GPUs driving multi-monitor setups when a screen wakes / is added

With some communication happening with Nvidia driver developers.

1 Like