Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
alexkOffline
Post subject: Kwin memory leak  PostPosted: 19.03.2012, 01:12



Joined: 2010-10-01
Posts: 185
Location: Bay state
Status: Offline
I seem to have been suffering from this for a few months, since KDE 4.6, through many dist-upgrades, now in KDE 4.7. After a few days of uptime, suspending in between, Kwin all of a sudden jumps to massive memory usage. Happened again today, after last dist-upgrading on March 14. It appears to only happen when Desktop effects are enabled, as I have been monitoring two simultaneous logins, one with effects on and the other off. If I try to switch users, the machine becomes essentially unresponsive with massive disk activity, unless I switch (slowly ...) to a V-terminal and kill kwin/kdm. This is the memory usage I had today, as reported by "top -p 2969":
      Code:
Tasks:   1 total,   0 running,   1 sleeping,   0 stopped,   0 zombie
%Cpu(s):  2.9 us,  1.4 sy,  0.4 ni,  0.0 id, 95.3 wa,  0.1 hi,  0.1 si,  0.0 st
Kb Mem:   8089580 total,  7987880 used,   101700 free,     1000 buffers
Kb Swap: 16844116 total,  2936220 used, 13907896 free,   151128 cached

  PID USER      PR  NI  VIRT  RES  SHR S  %CPU %MEM    TIME+  COMMAND                                                   
2969  -------   20   0 7755m 5.8g  516 D   0.3 75.3  30:27.13 kwin

Statistics as reported by "top" command at that time:
      Code:
top - 18:31:02 up 2 days, 23:35,  4 users,  load average: 13.21, 6.26, 4.08
Tasks: 267 total,   2 running, 262 sleeping,   1 stopped,   2 zombie
%Cpu(s):  3.6 us,  1.5 sy,  0.2 ni, 93.5 id,  1.0 wa,  0.1 hi,  0.0 si,  0.0 st

The desktop effects that were enabled for that user were:
      Code:
$ grep -iE 'kwin4_effect_.*Enabled=true' `kde4-config --path config | cut -d":" -f1`/kwinrc | sed -e 's/kwin4_effect_//g; s/Enabled=true//g'
boxswitch
cube
cubeslide
dashboard
desktopgrid
dialogparent
fade
glide
highlightwindow
login
logout
minimizeanimation
outline
slidingpopups
startupfeedback
taskbarthumbnail
translucency
zoom

Maybe the problem is with one effect in particular but I don't know which one. This machine has Intel graphics. I did another dist upgrade today, after the problem. I have been having this through several kernel versions, I believe going back to the 3.1 series. Today, it was with kernel 3.2-9.slh.5-aptosid-amd64. I'm currently running this kernel with desktop effects off on all logins and will try the newer 3.2-11.slh.3-aptosid-amd64 kernel. I had previously tried reinstalling many KDE packages as well as Xorg.
      Code:
infobash -v3
Host/Kernel/OS  "AK1" running Linux 3.2-9.slh.5-aptosid-amd64 x86_64 [ sidux 2009-02 Αιθήρ - kde-full - (200907141427) ]
CPU Info        4x Intel Core i5-2500K @ 6144 KB cache flags( sse3 ht nx lm vmx ) clocked at [ 3301.000 MHz ]           
Videocard       Intel 2nd Generation Core Processor Family Integrated Graphics Controller     [  ]                     
Network cards   Intel 82579V Gigabit                                                                                   
                ATHEROS USB2.0 WLAN                                                                                     
Processes 275 | Uptime 2:06 | Memory 2239.6/7900.0MB | HDD WDC WD3200AAKS-0 Size 320GB (15%used) | Client Shell | Infobash v3.45
 
 View user's profile Send private message Yahoo Messenger  
Reply with quote Back to top
dexterusOffline
Post subject: RE: Kwin memory leak  PostPosted: 24.03.2012, 19:51



Joined: 2010-09-16
Posts: 16

Status: Offline
what you've described there reminds me of the problem i experienced and solved by picking xrender for compositing type instead of opengl (my wild guess is you picked opengl, although i might be wrong too Smile ). downside of that "solution" is that you won't be able to use some of the effects any more...
 
 View user's profile Send private message  
Reply with quote Back to top
alexkOffline
Post subject: RE: Kwin memory leak  PostPosted: 28.03.2012, 02:05



Joined: 2010-10-01
Posts: 185
Location: Bay state
Status: Offline
Yes, I was using OpenGL. I am still testing with both XRender and OpenGL, currently with OpenGL, with kernel 3.2-11.slh.3-aptosid-amd64 and less effects enabled.
 
 View user's profile Send private message Yahoo Messenger  
Reply with quote Back to top
alexkOffline
Post subject: RE: Kwin memory leak  PostPosted: 14.04.2012, 00:08



Joined: 2010-10-01
Posts: 185
Location: Bay state
Status: Offline
I had the exact same massive (>5 GB) memory usage by Kwin yesterday, even while only using XRender and 3 desktop effects:
      Code:
$ grep -iE 'kwin4_effect_.*Enabled=true' `kde4-config --path config | cut -d":" -f1`/kwinrc | sed -e 's/kwin4_effect_//g; s/Enabled=true//g'
dialogparent
minimizeanimation
taskbarthumbnail

So, I wonder what's causing this issue that I appear to have had since last December at least, going by the symptoms (I did not always realize the massive memory usage by Kwin). The problem only seems to happen when the computer has been suspended (to RAM) overnight for a day or two. The computer wakes fine from RAM and works quite well though a tad sluggishly until one tries to switch users, at which point it stalls out with massive disk activity for even an hour or more and KDE becomes unusable, forcing to go to a text console with Ctrl-Alt-F1. The RAM checked out fine in testing I ran last night.

My current guess is this issue is related to the Intel i915 graphics driver. I'm using kernel 3.2-11.slh.3-aptosid-amd64 and dmesg reports i915 1.6.0 20080730.
 
 View user's profile Send private message Yahoo Messenger  
Reply with quote Back to top
kenyeeOffline
Post subject: RE: Kwin memory leak  PostPosted: 14.04.2012, 15:15



Joined: 2010-09-29
Posts: 85

Status: Offline
I had the same issue (system totally unresponsive and sounded like it was swapping for a good 20min...had to ssh in to kill off kwin which had sucked up 87% of my 4GB of memory)-:
I'm running an older system w/ an ATI IGP and Athlon chip, so it's not just w/ Intel drivers that this is happening...

It's pretty funny when you kill of kwin too...you can't move windows around but the graphical environment is still up Smile
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio