kded, kwin and X eat all my cpu cycles

Holger Schroeder holger-kde at holgis.net
Tue Dec 23 02:51:32 GMT 2003


Hi,

in kde 3.2 beta 2, it happens often to me, that suddenly my cpu load goes up 
to 100 %, and only the X server, kded and kwin are eating the cpu.

top output:

top - 03:42:04 up  1:29,  5 users,  load average: 1.65, 1.62, 1.30
Tasks:  95 total,   2 running,  93 sleeping,   0 stopped,   0 zombie
Cpu(s):  40.1% user,  59.9% system,   0.0% nice,   0.0% idle,   0.0% IO-wait
Mem:    514580k total,   399064k used,   115516k free,    20268k buffers
Swap:   995988k total,      652k used,   995336k free,   240440k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  Command
 4942 root      20   0 52876  15m  37m R 36.2  3.1   6:24.26 /etc/X11/X vt7 
-auth /var/run/xauth/A:0-5RSO1y
 4998 holger    15   0 26960  15m  24m S 35.5  3.0   6:11.39 kdeinit: kded
 5034 holger    15   0 25480  14m  23m S 27.2  2.8   4:48.96 kdeinit: kwin
 5127 holger    16   0  1924  984 1772 R  0.7  0.2   0:00.79 top
 5040 holger    15   0 28932  17m  26m S  0.3  3.5   0:02.44 kdeinit: kicker
    1 root      16   0  1348  504 1312 S  0.0  0.1   0:04.80 init [3]
    2 root      RT   0     0    0    0 S  0.0  0.0   0:00.00 [migration/0]
    3 root      34  19     0    0    0 S  0.0  0.0   0:00.00 [ksoftirqd/0]
    4 root       5 -10     0    0    0 S  0.0  0.0   0:00.97 [events/0]
    5 root       5 -10     0    0    0 S  0.0  0.0   0:00.12 [kblockd/0]
    6 root      15   0     0    0    0 S  0.0  0.0   0:00.05 [khubd]
    7 root      25   0     0    0    0 S  0.0  0.0   0:00.00 [pdflush]
    8 root      15   0     0    0    0 S  0.0  0.0   0:00.63 [pdflush]


i could reproduce this two times by opening a konsole window, and in that one 
run 
tail -f .xsession-errors
and then open two more konsole windows and close one of them afterwards. this 
caused the cpu load, and the following message was printed 
to .xsession-errors:

wave lookup: want=440.000000 got=440.000000 length=12463
filter: fc=0.816327 fr=1.088435 st=1.000000 is=65536
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  20
  Minor opcode:  0
  Resource id:  0x22000ad
clearing filter state at:
0) +0.00000000000000000000000000000000000000
1) +0.00000000000000000000000000000000000000
2) -0.00000000000000000000000000000000000000
3) -0.00000000000000000000000000000000000000
4) +0.00000000000000000000000000000000000000
5) +0.00000000000000000000000000000000000000
6) -0.00000000000000000000000000000000000000
7) -0.00000000000000000000000000000000000000
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  20
  Minor opcode:  0
  Resource id:  0x22000ad
X Error: BadWindow (invalid Window parameter) 3
  Major opcode:  18
  Minor opcode:  0
  Resource id:  0x22000ad

only logging out of X and loggging in after that helps. this bug also happens 
at other circumstances, for example clicking on a konqueror entry in kicker, 
which switches to another virtual desktop. sometimes clicking on the close 
icon of a window seems to not work, and then after a second the window 
disappears and the cpu load goes up...

i am running gentoo linux, xfree 4.3.0, linux kernel 2.6.0-test10.

is it only me, or do other people also have the same problem?
can somebody tell me how to debug it further?

thanks, Holger




More information about the kde-core-devel mailing list