Bug 204585 - Resizing windows in KDE 4.3 is slow. (nvidia 190)
Summary: Resizing windows in KDE 4.3 is slow. (nvidia 190)
Status: RESOLVED LATER
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-20 23:10 UTC by Christian
Modified: 2011-09-23 03:35 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
user processes (4.19 KB, text/plain)
2009-08-24 22:28 UTC, Christian
Details
user log of the program top (708.68 KB, text/plain)
2009-08-24 22:29 UTC, Christian
Details
log of the processes in the root account (3.79 KB, text/plain)
2009-08-24 22:29 UTC, Christian
Details
log of the program top from the root account (58.46 KB, text/plain)
2009-08-24 22:30 UTC, Christian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian 2009-08-20 23:10:49 UTC
Version:            (using KDE 4.3.0)
OS:                Linux
Installed from:    Unspecified Linux

I tried KDE 4.3 on my pc desktop, core 2 duo 2,8 ghz with 4g ram, and it's usable, but on my notebook with COre due 1,6 ghz everything is very very choppy, unusable! My notebook has a geforce 7400 card and no matter which drivers I use, it is slow slow slow

I've just migrated to Xfce to achieve speed, and the difference is huge.. also qt3 based applications run hunderd times faster..

I can't say which componente is so slow: plasma, kwin or the qt 4
Comment 1 FiNeX 2009-08-21 01:20:50 UTC
Did you try to disable desktop effects?
Comment 2 Christian 2009-08-21 08:20:38 UTC
they are disabled

I can say that the problem is related to my user session, because entering in kde with a new account (or with the root account) the things runs FAR better!

This isn't the first time it happens, see my old bug: https://bugs.kde.org/show_bug.cgi?id=191329

everything is slow beacause cpu goes at 100% very often when I try to do "simple" operations such resizing windows, browse folders, moving objects.. and I think that my nvidia card is the real guilty: with the desktop running on intel 4500hd kde is 10 times faster
Comment 3 FiNeX 2009-08-21 09:45:33 UTC
Like it were asked on bug #191329, it could be very interesting to know which exact process use many CPU (if possible).

Can you write a list of the active process on the root and on the user session?

Moreover plasma devs could be interested about the plasma config files.

Is Akonadi running too?

Many thanks!!


P.S: Addedd plasma-bugs on CC, maybe someone there could be more helpful than me :-)
Comment 4 Christian 2009-08-24 22:28:24 UTC
Created attachment 36416 [details]
user processes
Comment 5 Christian 2009-08-24 22:29:12 UTC
Created attachment 36417 [details]
user log of the program top
Comment 6 Christian 2009-08-24 22:29:48 UTC
Created attachment 36418 [details]
log of the processes in the root account
Comment 7 Christian 2009-08-24 22:30:26 UTC
Created attachment 36419 [details]
log of the program top from the root account
Comment 8 Christian 2009-08-24 22:31:34 UTC
I attached the logs of 3-4 seconds of activity of the active processes
Comment 9 Christian 2009-08-25 23:21:07 UTC
is there anyone who can tell me something?
Comment 10 Dario Andres 2009-08-25 23:27:06 UTC
Mh, looking at the top output, the only application that is taking a lot of CPU mostly all the time is Dolphin, and some times kio_thumbnail. May be some old Dolphin setting is conflicting and causing the CPU usage.

To double check this, you could try to use your KDE session without using Dolphin at all, and see if it is slow or not.
You could try to move the  ~/.kde4/share/config/dolphinrc file to another place; and restarting Dolphin.

Regards
Comment 11 Christian 2009-08-25 23:36:22 UTC
Just tried: no improvements! I tried to resize another window, like Konqueror, I don't post the top log, but this time the "X" process sucks 75% of cpu and Konqueror ~20%
Comment 12 Dario Andres 2009-08-25 23:37:32 UTC
"resize" , well, then it is probably a drivers problem.
I'm adding the KWin people just to double check this. 
Thanks
Comment 13 Christian 2009-08-25 23:42:40 UTC
do think about the nvidia driver or something related to kde? 
My suspect is that the DRI acceleration that nvidia driver provides needs some kind of privileges that my user doesn't have: this could explain because the root account runs 3-4 times faster

I tried EVERY driver nvidia have released, and the problem never changed


am I wrong?
Comment 14 Martin Flöser 2009-08-25 23:43:05 UTC
well resizing in kwin is known to be slow with compositing enabled - which isn't the case. So I think we have here a reoccurance of the old resize is slow with NVIDIA bug. There should be some information on either techbase or userbase how it could be possible to improve the situation.

But I think the best solution is to just disable the "show window content while resizing option".
Comment 15 Dario Andres 2009-08-25 23:44:18 UTC
Indeed, I found the techbase article: http://techbase.kde.org/User:Lemma/KDE4-NVIDIA
Comment 16 Christian 2009-08-25 23:52:08 UTC
in the thecbase there are solutions using older drivers, now I'm using 190.x series and I read that those tricks are unuseful now (just tried with and nothing changed)
Comment 17 Dario Andres 2009-08-25 23:55:04 UTC
Try the workaround Martin gave you.
Comment 18 Christian 2009-08-25 23:59:23 UTC
that's a porkaround!
Comment 19 Dario Andres 2009-08-26 00:03:46 UTC
At least use it to have a better experience until the issues gets fixed upstream.
Bug 169615 could be also related to this (it also mentions some nvidia cases)
Thanks
Comment 20 FiNeX 2009-08-26 00:27:29 UTC
* * * START OT * * *

> porkaround <

This is one of the most beautiful expression I've heard recently...

rotfl :-) :-) :-)

* * * END OT * * *
Comment 21 Christian 2009-09-02 22:59:33 UTC
update: I just upgraded to kde 4.3.1, the environment keep going slow

I created a new user account, with desktop effects enabled, and there's no story between that account and mine.. I can't realize what slows down everyting, it's surely a session problem
Comment 22 Dario Andres 2009-09-04 18:02:23 UTC
Try the following:
- Backup your config files under ~/.kde4/share/config.
- Remove your kwin related files from that folder (kwin configuration will revert to defaults)
- Check if that improve the situation (after restarting KDE)
If it doesn't try removing other files like kdeglobals

- Then you can trying copying back the old config files to the folder (one by one) and see if that changes anything. 

Thanks
Comment 23 Christian 2009-09-04 20:33:34 UTC
I tried deleting (renaming) the .kde4/share, the next kde start was slower, I suppose because it recreated the config files, but the environment keeps going slow..

I can't undestand!!
Comment 24 Thomas Lübking 2009-09-04 21:04:38 UTC
For clarification, please cconfirm:
You do not have this issue on the same machine and system, just with another (also unprivileged) user account?

As this is a mobile GPU, please check the performance level (PowerMizer, you might have to set 'Option "Coolbits" "1"' in the device section of your xorg.conf to see it)

Also, can you confirm you did not test with (by exception) plugged AC when things ran fast?

If it's about PowerMizer, you can look here
http://www.nvnews.net/vbulletin/showthread.php?t=118226
for a hook (there're several links posted) - unfortunately this seems to be an uneasy issue :-(
Comment 25 Christian 2009-09-07 20:11:16 UTC
powermizer isn't the problem, at the lower or at the top level 2D performances remain poor

I have other (I believe) very useful informations: I created a new account, the environment goes very well, responsive, ecc; I opened a shell with Kconsole, e typed:

"kdesu -u <my_slow_user_account> dolphin"

............ dolphin run slowwwwwwww!!!!! I tried also with konqueror, konsole, firefox! same results!! now I have two windows opened: a fast and furious dolphin window from the new account and a damn slow dolphin window of the old account!  WTF!!!!!
Comment 26 Thomas Lübking 2009-09-08 01:49:50 UTC
it's hard to say (as it's jus -A, not -Af) but apparently your slow user account has 3 running kdeinit4 processes, twice kded4 and knotify4.
If they're not from different users (as you e.g. run multiple sessions) - there's sth. wrong about this.
(the posted root ps does not show this)

-> see if this is a regular issue and get rid of them (i however do not know what could start them execpt entries in autostart and the session manager:
~/.kde/autostart
~/.kde/share/Autostart
~/.kde/share/config/session/
(check whether your system uses ~/.kde4 or ~/.kde - or invalidly both?)

as those processes are started by the startkde script, they should show up no where there.
Comment 27 Christian 2009-09-08 09:14:09 UTC
actually I have .kde4 and .kde directories... I noticed them but I suppose .kde was a refuse of an older version of Kde on my Archlinux... 

as soon as I reach home I'll try to delete that directory and you'll be informed
Comment 28 Christian 2009-09-08 20:48:36 UTC
no way... I post the processes now active:


[pix@pix-book ~]$ ps -edaf
UID        PID  PPID  C STIME TTY          TIME CMD
root         1     0  0 20:07 ?        00:00:00 init [3]  
root         2     0  0 20:07 ?        00:00:00 [kthreadd]
root         3     2  0 20:07 ?        00:00:00 [migration/0]
root         4     2  0 20:07 ?        00:00:00 [ksoftirqd/0]
root         5     2  0 20:07 ?        00:00:00 [migration/1]
root         6     2  0 20:07 ?        00:00:00 [ksoftirqd/1]
root         7     2  0 20:07 ?        00:00:00 [events/0]   
root         8     2  0 20:07 ?        00:00:00 [events/1]   
root         9     2  0 20:07 ?        00:00:00 [work_on_cpu/0]
root        10     2  0 20:07 ?        00:00:00 [work_on_cpu/1]
root        11     2  0 20:07 ?        00:00:00 [khelper]      
root       215     2  0 20:07 ?        00:00:00 [kblockd/0]    
root       216     2  0 20:07 ?        00:00:00 [kblockd/1]    
root       218     2  0 20:07 ?        00:00:00 [kacpid]       
root       219     2  0 20:07 ?        00:00:01 [kacpi_notify] 
root       299     2  0 20:07 ?        00:00:00 [cqueue]       
root       300     2  0 20:07 ?        00:00:00 [tifm]         
root       306     2  0 20:07 ?        00:00:00 [ata/0]        
root       307     2  0 20:07 ?        00:00:00 [ata/1]        
root       308     2  0 20:07 ?        00:00:00 [ata_aux]      
root       310     2  0 20:07 ?        00:00:00 [ksuspend_usbd]
root       315     2  0 20:07 ?        00:00:00 [khubd]        
root       318     2  0 20:07 ?        00:00:00 [kseriod]      
root       351     2  0 20:07 ?        00:00:00 [khpsbpkt]     
root       389     2  0 20:07 ?        00:00:00 [pdflush]      
root       390     2  0 20:07 ?        00:00:00 [pdflush]      
root       391     2  0 20:07 ?        00:00:00 [kswapd0]      
root       438     2  0 20:07 ?        00:00:00 [aio/0]        
root       439     2  0 20:07 ?        00:00:00 [aio/1]        
root       629     2  0 20:07 ?        00:00:00 [iwl3945/0]    
root       630     2  0 20:07 ?        00:00:00 [iwl3945/1]    
root       632     2  0 20:07 ?        00:00:00 [phy0]         
root       655     2  0 20:07 ?        00:00:00 [scsi_eh_0]    
root       658     2  0 20:07 ?        00:00:00 [scsi_eh_1]    
root       661     2  0 20:07 ?        00:00:00 [scsi_eh_2]    
root       664     2  0 20:07 ?        00:00:00 [scsi_eh_3]    
root       684     2  0 20:07 ?        00:00:00 [firewire_sbp2]
root       692     2  0 20:07 ?        00:00:00 [pccardd]      
root       743     2  0 20:07 ?        00:00:00 [kpsmoused]    
root       747     2  0 20:07 ?        00:00:00 [kondemand/0]  
root       748     2  0 20:07 ?        00:00:00 [kondemand/1]  
root       775     2  0 20:07 ?        00:00:00 [hid_compat]   
root       806     2  0 20:07 ?        00:00:00 [hd-audio0]    
root       834     2  0 20:07 ?        00:00:00 [kjournald]    
root       879     1  0 20:07 ?        00:00:00 /sbin/udevd --daemon
root      1480     2  0 20:07 ?        00:00:00 [reiserfs/0]        
root      1481     2  0 20:07 ?        00:00:00 [reiserfs/1]        
root      1484     1  0 20:07 ?        00:00:00 /sbin/mount.ntfs-3g /dev/sda8 /mnt/wind -o rw,noexec,nosuid,nodev,users,locale=it_IT.UTF-8,ui
root      1874     1  0 20:07 ?        00:00:00 supervising syslog-ng                                                                        
root      1875  1874  0 20:07 ?        00:00:00 /usr/sbin/syslog-ng                                                                          
root      1906     1  0 20:07 ?        00:00:00 /usr/sbin/acpid                                                                              
root      1910     1  0 20:07 ?        00:00:00 /usr/bin/kdm                                                                                 
root      1913  1910  4 20:07 tty7     00:01:48 /usr/bin/X -nolisten tcp :0 vt7 -auth /var/run/xauth/A:0-U1vpLW                              
dbus      1918     1  0 20:07 ?        00:00:03 /usr/bin/dbus-daemon --system                                                                
root      1931     1  0 20:07 tty2     00:00:00 /sbin/agetty -8 38400 tty2 linux                                                             
root      1932     1  0 20:07 tty3     00:00:00 /sbin/agetty -8 38400 tty3 linux                                                             
hal       1933     1  0 20:07 ?        00:00:00 /usr/sbin/hald                                                                               
root      1934     1  0 20:07 tty4     00:00:00 /sbin/agetty -8 38400 tty4 linux                                                             
root      1935     1  0 20:07 tty5     00:00:00 /sbin/agetty -8 38400 tty5 linux                                                             
root      1936     1  0 20:07 tty6     00:00:00 /sbin/agetty -8 38400 tty6 linux                                                             
root      1951     1  0 20:07 ?        00:00:00 /usr/sbin/console-kit-daemon                                                                 
root      1952     1  0 20:07 ?        00:00:00 /usr/bin/rpcbind                                                                             
root      2018  1933  0 20:07 ?        00:00:00 hald-runner                                                                                  
root      2019     1  0 20:07 ?        00:00:00 /usr/sbin/famd -T 0 -c /etc/fam/fam.conf                                                     
root      2024     1  0 20:07 ?        00:00:06 python -O /usr/lib/wicd/wicd-daemon.py                                                       
root      2028  2024  0 20:07 ?        00:00:02 /usr/bin/python -O /usr/lib/wicd/monitor.py                                                  
root      2038   879  0 20:07 ?        00:00:00 /sbin/udevd --daemon                                                                         
root      2068  2018  0 20:07 ?        00:00:00 hald-addon-input: Listening on /dev/input/event2 /dev/input/event0 /dev/input/event1 /dev/inp
root      2079  2018  0 20:07 ?        00:00:00 /usr/lib/hal/hald-addon-rfkill-killswitch                                                    
root      2097  2018  0 20:07 ?        00:00:00 hald-addon-storage: polling /dev/hda (every 2 sec)                                           
root      2098  2018  0 20:07 ?        00:00:00 hald-addon-storage: polling /dev/hda (every 2 sec)                                           
root      2101  2018  0 20:07 ?        00:00:00 /usr/lib/hal/hald-addon-cpufreq                                                              
hal       2102  2018  0 20:07 ?        00:00:00 hald-addon-acpi: listening on acpid socket /var/run/acpid.socket                             
root      2128   879  0 20:07 ?        00:00:00 /sbin/udevd --daemon                                                                         
root      2143     1  0 20:07 ?        00:00:00 wpa_supplicant -B -i wlan0 -c /var/lib/wicd/configurations/00195b9a8248 -D wext              
root      2167  2024  0 20:07 ?        00:00:00 [dhcpcd] <defunct>                                                                           
root      2190     1  0 20:08 ?        00:00:00 /sbin/dhcpcd wlan0                                                                           
root      3492  1910  0 20:29 ?        00:00:00 -:0                                                                                          
root      3528     1  0 20:29 ?        00:00:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session                        
root      3529     1  0 20:29 ?        00:00:00 dbus-launch --autolaunch 7a4443fed9247f4261050dbf494b134c --binary-syntax --close-stderr     
root      3709     1  0 20:33 tty1     00:00:00 /sbin/agetty -8 38400 tty1 linux                                                             
pix       3726  3492  0 20:33 ?        00:00:00 /bin/sh /usr/bin/startkde                                                                    
pix       3813     1  0 20:33 ?        00:00:00 /usr/bin/gpg-agent --daemon --pinentry-program /usr/bin/pinentry-qt4                         
pix       3816     1  0 20:33 ?        00:00:00 /usr/bin/ssh-agent -s                                                                        
pix       3827     1  0 20:33 ?        00:00:00 dbus-launch --sh-syntax --exit-with-session                                                  
pix       3828     1  0 20:33 ?        00:00:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session                        
pix       3834     1  0 20:33 ?        00:00:00 kdeinit4: kdeinit4 Running...                                                                
pix       3835  3834  0 20:33 ?        00:00:00 kdeinit4: klauncher [kdeinit] --fd=9                                                         
pix       3837     1  0 20:33 ?        00:00:00 kdeinit4: kded4 [kdeinit]                                                                    
pix       3872  3726  0 20:33 ?        00:00:00 kwrapper4 ksmserver                                                                          
pix       3873  3834  0 20:33 ?        00:00:00 kdeinit4: ksmserver [kdeinit]                                                                
pix       3875  3873  0 20:33 ?        00:00:01 kwin                                                                                         
pix       3877     1  0 20:33 ?        00:00:00 kdeinit4: kglobalaccel [kdeinit]                                                             
pix       3879     1  0 20:33 ?        00:00:05 kdeinit4: plasma-desktop [kdeinit]                                                           
pix       3881     1  0 20:33 ?        00:00:01 /usr/bin/knotify4                                                                            
pix       3885  3834  0 20:33 ?        00:00:00 /usr/bin/kwrited                                                                             
pix       3894     1  0 20:34 ?        00:00:00 kdeinit4: kaccess [kdeinit]                                                                  
pix       3900     1  0 20:34 ?        00:00:00 kdeinit4: kxkb [kdeinit]                                                                     
pix       3908     1  0 20:34 ?        00:00:00 kdeinit4: krunner [kdeinit]                                                                  
pix       3914  3834  0 20:34 ?        00:00:00 python /usr/bin/printer-applet                                                               
pix       3915  3834  0 20:34 ?        00:00:00 python -O /usr/lib/wicd/wicd-client.py                                                       
pix       3917     1  0 20:34 ?        00:00:00 kdeinit4: klipper [kdeinit]
pix       3922     1  0 20:34 ?        00:00:00 kdeinit4: kmix [kdeinit]
pix       3925     1  0 20:34 ?        00:00:00 /usr/bin/xfce4-settings-helper
pix       3931     1  0 20:34 ?        00:00:00 /usr/bin/korgac -icon korgac
pix       3936     1  0 20:34 ?        00:00:00 /usr/lib/xfconfd
pix       3938     1  0 20:34 ?        00:00:00 /usr/bin/pulseaudio --start
pix       3949  3938  0 20:34 ?        00:00:00 /usr/lib/pulse/gconf-helper
pix       3953     1  0 20:34 ?        00:00:00 /usr/lib/GConf/gconfd-2
pix       4012     1  1 20:34 ?        00:00:13 /usr/bin/dolphin -icon system-file-manager -caption Dolphin /home/pix
pix       4014  3834  0 20:34 ?        00:00:00 kdeinit4: kio_file [kdeinit] file local:/tmp/ksocket-pix/klauncherMT3835.slave-socket
pix       4353     1  0 20:43 ?        00:00:00 /usr/bin/xfrun4 --daemon
pix       4355     1  0 20:43 ?        00:00:00 /bin/sh /usr/bin/firefox
pix       4367  4355  0 20:43 ?        00:00:00 /bin/sh /home/firefox/run-mozilla.sh /home/firefox/firefox-bin
pix       4371  4367  4 20:43 ?        00:00:07 /home/firefox/firefox-bin
pix       4409     1  1 20:43 ?        00:00:01 yakuake
pix       4464  3834  0 20:44 ?        00:00:00 kdeinit4: kio_thumbnail [kdeinit] thumbnail local:/tmp/ksocket-pix/klauncherMT3835.sla
pix       4496  4409  0 20:45 pts/1    00:00:00 /bin/bash
pix       4500  4496  0 20:45 pts/1    00:00:00 ps -edaf




looking at "top -d0.5" I see that resizing dolphin window spins dolphin process to 90-100% cpu, so the rest of the environment remains with no cputime and goes slow....
Comment 29 kpoxo6op 2009-10-02 05:26:57 UTC
Some guy researched this bug:
http://blog.jasondonenfeld.com/190

He has found the reason of this bug in xorg source cod in file
./composite/compalloc.c

I would be glad to test his solution, but i don't use Gentoo and I don't know
how to copmpile xorg...

May be somebody will try that solution?
Comment 30 Christian 2009-10-02 10:49:55 UTC
that seems to be the solution!!! I can't try it out because I don't want to mess up everything untill I'll be graduated!

probably the great Finex... ;)
Comment 31 Christian 2009-10-11 21:34:42 UTC
I'm running on kde 4.3.2, drivers nvidia 185.18.36, the environment works perfectly fast! I can't say what happened, but the problem of the slowness seems to be resolved
Comment 32 lucas 2009-10-12 09:06:15 UTC
Further reports are required before this can be closed.

There has been a variety of changes made to KDE 4.3.3 and Qt 4.6 recently relating to window resizing but both of these versions are unreleased and are still under development. Unless your distribution backported these changes I have no idea what was fixed on your system so it is also not safe to close this report at this time in this regard either.
Comment 33 kpoxo6op 2009-10-15 12:42:05 UTC
(In reply to comment #32)
> Further reports are required before this can be closed.
> 
> There has been a variety of changes made to KDE 4.3.3 and Qt 4.6 recently
> relating to window resizing but both of these versions are unreleased and are
> still under development. Unless your distribution backported these changes I
> have no idea what was fixed on your system so it is also not safe to close this
> report at this time in this regard either.

Where did you get so detail info about changing in KDE 4.3.3 and Qt 4.6? I've heard about this "magic" changes since KDE 4.2 :)