| Summary: | kwin_wayland memory leak | ||
|---|---|---|---|
| Product: | [Plasma] kwin | Reporter: | Evert Vorster <evorster> |
| Component: | performance | Assignee: | KWin default assignee <kwin-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | major | CC: | nate |
| Priority: | NOR | ||
| Version First Reported In: | 6.2.3 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Evert Vorster
2024-11-26 10:44:54 UTC
Digging a little deeper here, it looks like kwin_wayland has a pretty serious memory leak. Running kwin_x11 as a comparison, memory consumption stayed pretty low, less than 1Gb. When starting a new session of kwin_wayland, memory usage is initially pretty low, but then grows steadily over time. To pass the time, I was watching some youtube videos on Google-chrome, and had console open with a session of glances to monitor the memory usage of kwin_wayland. It seems to be growing in memory consumption at a rate of just less than 2Gb per minute. Are you using any 3rd-party KWin scripts, effects, or window decorations? Does it reproduce in a new clean user account on the same machine? Hi there! My KDE desktop is pretty vanilla, with no custom scripts. However, I made a new user and tested with that, and there was no memory leak, with kwin_wayland only using 460Mb after about ten minutes. I did a little browsing on google-chrome and firedragon to pass time, and of course had a console open to monitor the memory usage of kwin_wayland. I am currently back on my normal user, and right now kwin_wayland does not seem to be displaying the same behavior. It seems a bit weird, but I will monitor it for a bit, and see if this is really gone. OK, so the problem seems to be intermittent. Right now I have updated to plasma 6.2.4. Running as my normal user. I can see that kwin_wayland is growing in memory size by about 1Gb per minute. For the record, my external monitor is now plugged into the HDMI port on my laptop. Previously, when it was plugged into the USB-C laptop dock, I did not see this issue. I will do some A-B testing to make sure if this is relevant. OK, confirmed it. In one session, when the external monitor is plugged into the HDMI port of the laptop, its memory usage grows by about 1Gb/min. Unplugging it from the HDMI port of the laptop, the memory usage falls to it's usual ~400mb. Plugging the monitor into the HDMI port of the USB-C laptop dock, memory usage stays constant. Plugging it back into the HDMI port of the laptop, the memory leak starts up again. Hope this helps. ๐๐งน โ ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME. For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging. Thank you for helping us make KDE software even better for everyone! I have not seen this bug in a while. It may just have been a transient bug. |