Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 04-03-10, 04:26 PM   #25
Flyser
Registered User
 
Join Date: Mar 2009
Posts: 7
Default Re: [195.30] Possible Video Memory Leak (KDE4) (slows down over time)

confirmed. same problem here ...
Flyser is offline   Reply With Quote
Old 04-03-10, 06:58 PM   #26
Sean_W
Registered User
 
Sean_W's Avatar
 
Join Date: Jun 2007
Posts: 2,423
Default Re: [195.30] Possible Video Memory Leak (KDE4) (slows down over time)

Yep. This happens over time, in fact only a short time, maybe 15-20 minutes and seems to be worse when more applications are open.
Sean_W is offline   Reply With Quote
Old 04-03-10, 07:21 PM   #27
klonky
Registered User
 
Join Date: Aug 2008
Posts: 7
Default Re: [195.30] Possible Video Memory Leak (KDE4) (slows down over time)

Only seems to happen whenever desktop effects are enabled, though.

I disabled desktop effects, and now KDE doesn't lag down (at least not after some 20 hours of use).
klonky is offline   Reply With Quote
Old 04-03-10, 07:33 PM   #28
siyuan
Registered User
 
Join Date: Dec 2008
Location: New Zealand
Posts: 6
Default Re: [195.30] Possible Video Memory Leak (KDE4) (slows down over time)

For me, this slow down happens right from logging in if I have a dual monitor setup. I have a Dell XPS M1330 laptop running at 1280x800 plus a Dell 24" monitor at 1920x1200. It's so painfully slow that any animation, such as panel hide/unhide, Yakuake hide/unhide, rendering newly popped up windows, even scrolling in browser (Firefox/Chrome/Konqueror are all the same) is painfully slow. The problem is less apparent with a smaller resolution, eg. 1280x800 or 1280x800 + 1280x1024. Anything higher than that becomes slow.

I'm running Arch Linux using 195.36.15 driver, KDE 4.4.2.
siyuan is offline   Reply With Quote
Old 04-07-10, 01:08 PM   #29
AaronP
NVIDIA Corporation
 
AaronP's Avatar
 
Join Date: Mar 2005
Posts: 2,487
Default Re: [195.30] Possible Video Memory Leak (KDE4) (slows down over time)

I took a look at this with a debug memory tracker enabled, and it does look like memory is leaking while KDE is running (I'm using version 4:4.4.2-0ubuntu6). However, the driver reports that all of the leaked memory is caused by CreatePixmap requests. Indeed, looking at xrestop, the pixmap allocation count for kwin jumps up every time the window focus changes. You can easily reproduce this by opening two xterms, settings kwin to "focus follows mouse", and then rapidly moving the mouse from one window to the other.

I'll enable some Plasma widgets to see if those also cause problems. So far, all signs point to bugs in KDE.
AaronP is offline   Reply With Quote
Old 04-08-10, 02:50 AM   #30
Flyser
Registered User
 
Join Date: Mar 2009
Posts: 7
Default Re: [195.30] Possible Video Memory Leak (KDE4) (slows down over time)

Just because Kwin is the only application that triggers this bug, it does not mean its a kwin bug, right?
Flyser is offline   Reply With Quote
Old 04-08-10, 10:13 AM   #31
AaronP
NVIDIA Corporation
 
AaronP's Avatar
 
Join Date: Mar 2005
Posts: 2,487
Default Re: [195.30] Possible Video Memory Leak (KDE4) (slows down over time)

Quote:
Originally Posted by Flyser View Post
Just because Kwin is the only application that triggers this bug, it does not mean its a kwin bug, right?
No. Kwin is allocating pixmaps and then not freeing them, which is a bug in kwin. There may still be other bugs somewhere else, of course.
AaronP is offline   Reply With Quote
Old 04-11-10, 04:16 PM   #32
Flyser
Registered User
 
Join Date: Mar 2009
Posts: 7
Default Re: [195.30] Possible Video Memory Leak (KDE4) (slows down over time)

Is there an kwin bug report for this issue?
Flyser is offline   Reply With Quote

Old 04-12-10, 03:54 AM   #33
drhirsch
Registered User
 
Join Date: Jul 2005
Posts: 61
Default Re: [195.30] Possible Video Memory Leak (KDE4) (slows down over time)

I was able to reproduce the behaviour described by aaron, but it may be unrelated to the slowness described at first.

But: If I switch to the linux console and back, which resolves the slowness issue, the number of pixmaps doesn't change. And after a while the pixmaps are freed again, maybe some garbage collection? It doesn't seem so simple :-(
drhirsch is offline   Reply With Quote
Old 04-12-10, 08:30 AM   #34
AaronP
NVIDIA Corporation
 
AaronP's Avatar
 
Join Date: Mar 2005
Posts: 2,487
Default Re: [195.30] Possible Video Memory Leak (KDE4) (slows down over time)

Switching VTs forces all the pixmaps out of video memory, freeing it up for more new pixmaps.
AaronP is offline   Reply With Quote
Old 04-12-10, 02:51 PM   #35
mgraesslin
Registered User
 
Join Date: Apr 2010
Posts: 1
Default Re: [195.30] Possible Video Memory Leak (KDE4) (slows down over time)

Quote:
Originally Posted by AaronP View Post
Indeed, looking at xrestop, the pixmap allocation count for kwin jumps up every time the window focus changes. You can easily reproduce this by opening two xterms, settings kwin to "focus follows mouse", and then rapidly moving the mouse from one window to the other.

I'll enable some Plasma widgets to see if those also cause problems. So far, all signs point to bugs in KDE.
Thanks for providing such a good testcase and investigating the issue. Yes this is KDE Bug #234187 - an issue in KWin's default window decoration. The leaking cannot be reproduced with other window decorations. So I recommend users experiencing this issue to switch to another decoration till the issue is fixed.
mgraesslin is offline   Reply With Quote
Old 04-12-10, 06:33 PM   #36
majlo
Registered User
 
Join Date: Jun 2009
Posts: 13
Default Re: [195.30] Possible Video Memory Leak (KDE4) (slows down over time)

Some workaround maybe disable "Enable animations" in System settings -> Appearance -> Windows -> Window Decoration (Oxygen) tab.

Anymore slowdowns for my after that...
majlo is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:54 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.