[OpenSuse 11.1]: X generates high CPU load within KDE

Hi there,

it seems that I’m having a problem with my system configuration.
I’m using OpenSuse 11.1 and nearly everything i do within KDE results in a high CPU (50 to 80 percent) usage generated by X.

The following behaviour occures (just the most notable ones):

  • Open/Closing Yakuake (quake-style console):
    X 70% CPU usage, Yakuake 11% CPU usage

  • Scrolling within firefox
    X 68% CPU usage, Firefox 32% CPU usage

  • Tabbing within firefox
    X 61% CPU usage, Firefox 26% CPU usage

  • Scrolling within Thunderbird
    X 46% CPU usage, Thunderbird 26% CPU usage

  • The whole system seems to be slow, when clicking a Tab within Firefox it doesn’t change immediately but there is a short delay, the same occures when minimizing windows, maximizing windows, closing windows, scrolling etc…

  • When Minimizing/maximizing/Closing a window it doesn’t disappear immediately but the screen turns grey for a short time and after that the window is closed/minimized/maximized

  • After login the following screen with the status bar is shown for a long time (about 10 to 15 seconds which is nearly as long as the system needs to boot to the login screen) and most of the time the status bar doesn’t change, even though on my second screen it already shows the desktop background

Systeminformation:
Athlon X2 5000+
2 GB Ram
200 GB HDD
ATI X1300

I already installed the proprietary ATI driver:


work@workstation:~> fglrxinfo
display: :0.0  screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: Radeon X1300/X1550 Series
OpenGL version string: 2.1.8395 Release


work@workstation:~> glxinfo|grep rendering
direct rendering: Yes

  • glxgears working

work@workstation:~> free
             total       used       free     shared    buffers     cached
Mem:       2034036     868588    1165448          0      25520     440604
-/+ buffers/cache:     402464    1631572
Swap:      2096472          0    2096472


work@workstation:~> top
top - 08:55:16 up 35 min,  1 user,  load average: 0.08, 0.14, 0.22
Tasks: 118 total,   1 running, 117 sleeping,   0 stopped,   0 zombie
Cpu(s):  1.7%us,  0.2%sy,  0.0%ni, 97.9%id,  0.3%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   2034036k total,   869392k used,  1164644k free,    25616k buffers
Swap:  2096472k total,        0k used,  2096472k free,   440608k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 2666 root      20   0  730m 158m  14m S    3  8.0   4:18.36 X
 4103 work      20   0 77264  20m  15m S    1  1.1   0:05.14 yakuake
 4608 work      20   0  2416  996  768 R    1  0.0   0:00.10 top
    1 root      20   0  1008  360  308 S    0  0.0   0:00.96 init
    2 root      15  -5     0    0    0 S    0  0.0   0:00.00 kthreadd
    3 root      RT  -5     0    0    0 S    0  0.0   0:00.00 migration/0
    4 root      15  -5     0    0    0 S    0  0.0   0:00.04 ksoftirqd/0
    5 root      RT  -5     0    0    0 S    0  0.0   0:00.00 migration/1
    6 root      15  -5     0    0    0 S    0  0.0   0:00.04 ksoftirqd/1
    7 root      15  -5     0    0    0 S    0  0.0   0:00.12 events/0
    8 root      15  -5     0    0    0 S    0  0.0   0:00.24 events/1
    9 root      15  -5     0    0    0 S    0  0.0   0:00.00 khelper
   10 root      15  -5     0    0    0 S    0  0.0   0:00.00 kintegrityd/0
   11 root      15  -5     0    0    0 S    0  0.0   0:00.00 kintegrityd/1
   12 root      15  -5     0    0    0 S    0  0.0   0:00.00 kblockd/0
   13 root      15  -5     0    0    0 S    0  0.0   0:00.00 kblockd/1
   14 root      15  -5     0    0    0 S    0  0.0   0:00.00 kacpid
   15 root      15  -5     0    0    0 S    0  0.0   0:00.00 kacpi_notify
   16 root      15  -5     0    0    0 S    0  0.0   0:00.00 cqueue
   17 root      15  -5     0    0    0 S    0  0.0   0:00.00 kseriod
   18 root      15  -5     0    0    0 S    0  0.0   0:00.14 kondemand/0

I don’t know how to go on from this point, I tried to find a solution but didn’t find anything usefull by using this forum or Google :-/
Could it be that the driver for my graphic card causes this trouble? I don’t know for sure, but I think the system was faster before the installation of the driver. Even though i need it since I couldn’t get both of monitors to act as one big screen, even when Choosing “Xinerama” within Sax they were just configured as “cloned” screens.

P.S.: Sorry for the bad english, I’m trying to get better :wink:

What exactly in that ‘top’ output do you find an issue?

Nothing, it’s just the output when I’m doing nothing. I pasted it just to show that the systems seems to behave normal when it’s idle.

This is the output of top when I’m scrolling on the reply-page:


top - 11:12:35 up 27 min,  2 users,  load average: 0.47, 0.48, 0.41
Tasks: 113 total,   3 running, 110 sleeping,   0 stopped,   0 zombie
Cpu(s): 42.6%us,  8.1%sy,  0.0%ni, 49.3%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   2034036k total,   807472k used,  1226564k free,    30148k buffers
Swap:  2096472k total,        0k used,  2096472k free,   440580k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 6013 root      19  -1  687m 122m  13m R   59  6.2   1:44.16 X
 6211 root      20   0  215m  88m  23m R   40  4.5   1:50.77 firefox
 6155 root      20   0 57192  16m  13m S    1  0.8   0:01.42 kwin
 6165 root      20   0  113m  26m  20m S    1  1.3   0:05.02 plasma
 6179 root      20   0 50588 8788 7448 S    1  0.4   0:00.40 kaccess
 6308 root      20   0 76760  19m  14m S    1  1.0   0:01.36 yakuake
    1 root      20   0  1008  356  308 S    0  0.0   0:00.98 init
    2 root      15  -5     0    0    0 S    0  0.0   0:00.00 kthreadd
    3 root      RT  -5     0    0    0 S    0  0.0   0:00.00 migration/0
    4 root      15  -5     0    0    0 S    0  0.0   0:00.04 ksoftirqd/0
    5 root      RT  -5     0    0    0 S    0  0.0   0:00.00 migration/1
    6 root      15  -5     0    0    0 S    0  0.0   0:00.04 ksoftirqd/1
    7 root      15  -5     0    0    0 S    0  0.0   0:00.28 events/0
    8 root      15  -5     0    0    0 S    0  0.0   0:00.62 events/1
    9 root      15  -5     0    0    0 S    0  0.0   0:00.00 khelper
   10 root      15  -5     0    0    0 S    0  0.0   0:00.00 kintegrityd/0
   11 root      15  -5     0    0    0 S    0  0.0   0:00.00 kintegrityd/1
   12 root      15  -5     0    0    0 S    0  0.0   0:00.00 kblockd/0
   13 root      15  -5     0    0    0 S    0  0.0   0:00.00 kblockd/1
   14 root      15  -5     0    0    0 S    0  0.0   0:00.00 kacpid
   15 root      15  -5     0    0    0 S    0  0.0   0:00.00 kacpi_notify
   16 root      15  -5     0    0    0 S    0  0.0   0:00.00 cqueue
   17 root      15  -5     0    0    0 S    0  0.0   0:00.00 kseriod
   18 root      15  -5     0    0    0 S    0  0.0   0:00.16 kondemand/0
   19 root      15  -5     0    0    0 S    0  0.0   0:00.00 kondemand/1
   20 root      20   0     0    0    0 S    0  0.0   0:00.00 pdflush
   21 root      20   0     0    0    0 S    0  0.0   0:00.14 pdflush
   22 root      15  -5     0    0    0 S    0  0.0   0:00.00 kswapd0

And I think, this IS an issue :wink:

> it seems that I’m having a problem with my system configuration.
> I’m using OpenSuse 11.1 and nearly everything i do within KDE results
> in a high CPU (50 to 80 percent) usage generated by X.

ideally, wouldn’t you like it to use 100% of the CPU…but for less
time? (therefore everything would be QUICKER)

so, you don’t actually have a problem with “high CPU load”, right??

<snip>
> - The whole system seems to be slow, when clicking a Tab within Firefox
> it doesn’t change immediately but there is a short delay, the same
> occures when minimizing windows, maximizing windows, closing windows,
> scrolling etc…
>
> - When Minimizing/maximizing/Closing a window it doesn’t disappear
> immediately <snip>
> I already installed the proprietary ATI driver:

to me, all of your slowness sounds like an overworked and/or under
powered (and not enough fast video RAM) video card…

one thing you might try: switch off “desk top” effects and see if
things don’t speed up…

also, (remembering that X and the graphics card has to “draw” all
that eye candy): turn off all the sleek smooth rounded corners and
highlighted (3D) effects on your buttons, window edges, title bars,
etc etc etc etc…that is, pick a PLAIN, flat, EASY to render desktop
theme…and, see if it won’t do everything quicker…

see, with an underpowered (for the task at hand) graphic card driving
two monitors at high res and deep color you can have EITHER eye candy
or speed, but not both…

ps: your X not using 90%+ of the CPU only because it is WAITING for
the graphic card to finish its job (rendering and moving bits to the
screen) and ask for some more computing…


assistant

Hi there,

problem solved by switching to Kubuntu.