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
|