Bug 162273 - Huge X memory leak with desktop effects enabled (Nvidia)
Summary: Huge X memory leak with desktop effects enabled (Nvidia)
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-18 20:41 UTC by Luciano Leveroni
Modified: 2008-06-06 13:55 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luciano Leveroni 2008-05-18 20:41:34 UTC
Version:            (using Devel)
Installed from:    Compiled sources
OS:                Linux

Since a few months ago, I noticed Desktop Effects performance improved a lot, but also a huge memory leak appeared. If I enable desktop effects X memory usage (RES) starts growing quite fast. After a few hours, X memory is up to 350MB!! I have 876mb of ram and this huge usage make the desktop too slow up to a point where I'm forced to restart X. If I disable desktop effects X usages drops to around 50MB and does not grow anymore.

Some background data:
-Running Gentoo AMD64 (quite updated) on a AMD64 Athlon 3000+.
-Using KDE trunk SVN (KDE Gentoo overlay) from a couple of days ago. (Qt 4.4.0 from Gentoo official)
-Xorg 7.2
-Nvidia binary driver 169.12
-VGA Geforce 6150 (onboard on ASUS motherboard)

Hope this issue gets tackled before the 4.1 release.

Thanks for your time. If you want me to provide more information just tell me.
Comment 1 Nick Shaforostoff 2008-05-20 00:28:36 UTC
same here on debian, but only 90 mb after 2 hours (512 mb ram). leaks only when 'effects' switch is enabled, even if all effects plugins are turned off.

kde-window-manager               4:4.0.72-1 (may 1st)
xserver-xorg-core                2:1.4.1~git20080507-1
xserver-xorg                     1:7.3+10
xserver-xorg-video-intel         2:2.3.1-1
Comment 2 Nick Shaforostoff 2008-05-20 00:30:03 UTC
oh, and when i switch effects off, memory usage doesn't drop, but just stops to grow.
Comment 3 cedric 2008-05-21 00:07:03 UTC
I plugged some memory leaks, could you please retry and tell me if you always see it ?
Comment 4 Matthew Woehlke 2008-05-22 03:51:41 UTC
hmm... my X has grown to 1 GB alloc, 507 "memory" since this morning; I *don't* have composite enabled for kwin, so that's not the cause if I'm seeing the same thing. But I'm also running a whole bunch of stuff so it's hard to say if it's leaking or not.

Note that both the OP and I are using the same nvidia "blob" (same version); I have to wonder if that's the source of the leak.

/me should try to close windows some time and look again :-)
Comment 5 Luciano Leveroni 2008-05-22 05:00:26 UTC
I've recompile current trunk a few hours ago an I think memory usage has indeed decrease.
I've been using Kwin with desktop effects for a few hours and current memory usage is about 125MB (It was in fact at around 60-70MB when I enabled the effects and after a like half a hour but it suddenly grow to 125MB don't know why). I would say that is still quite high but compared to the insanely 350MB is quite acceptable.
I would report if starts growing again.

Thanks :-)
Comment 6 Kelvie Wong 2008-05-22 19:13:25 UTC
Hrm.. I have a very similar setup (except I use Xorg 7.3, server version 1.4.0.90) and KWin compiled from yesterday afternoon -- it's been behaving _very_ well with respect to memory usage: 54M res, 37M shared after the entire day (about 33 mins of cpu time).
Comment 7 Matthew Woehlke 2008-05-22 22:08:02 UTC
Hmm... my X is still eating medium-to-large three digits, but the VM size is down under 1 GB, so it may well be that I just have that many pixmaps in the server ;-). Luciano, if it seems fixed to you and no one else can confirm that there is still uncontrolled growth, maybe we can close this? (And reopen if it shows up again...)
Comment 8 Luciano Leveroni 2008-05-26 02:48:12 UTC
Hmm.. My X usage is still quite high but I really don't know if it's related to desktop effects... I think it doesn't, so you can close this for now.

Thanks.
Comment 9 Nick Shaforostoff 2008-05-28 23:02:41 UTC
works like a charm on intel after upgrade to KDE 4.1beta (xorg 68mb, kwin 18mb)
Comment 10 Lubos Lunak 2008-06-06 13:55:24 UTC
Fixed by cedric.