Xorg eatting too many cpu cycles

I am running open suse 11.3 and keep up on maintenance. Ever since upgrading to 11.3 I find that the number of cpu cycles is being eaten for apparently nothing. In looking at the system monitor I frequently find that Xorg is using 24% and frequently more than that. What can be done to reduce the cpu cycles, or fix the problem?

Thank you

Can you please give us some information about your graphics card and what graphics driver you are using? The following command will display the required information:

/sbin/lspci -k

You may also use the ‘top’ command to show some information about your actual CPU usage.

Also, please post result of running this command in a terminal as normal user: rpm -qa | grep kernel

The results are:
kernel-source-2.6.34.7-0.5.1.noarch
patterns-openSUSE-devel_kernel-11.3-22.1.i586
kernel-devel-2.6.34.7-0.5.1.noarch
kernel-xen-devel-2.6.34.7-0.5.1.i586
kernel-desktop-devel-2.6.34.7-0.5.1.i586
kernel-syms-2.6.34.7-0.5.1.i586
kernel-pae-2.6.34.7-0.5.1.i586
kernel-pae-devel-2.6.34.7-0.5.1.i586
kernel-default-devel-2.6.34.7-0.5.1.i586
kernel-default-2.6.34.7-0.5.1.i586
kernel-firmware-20100617-2.2.noarch
nfs-kernel-server-1.2.1-7.2.i586

The results are:
00:00.0 Host bridge: nVidia Corporation nForce2 IGP2 (rev c1)
Kernel driver in use: agpgart-nvidia
00:00.1 RAM memory: nVidia Corporation nForce2 Memory Controller 1 (rev c1)
Subsystem: Micro-Star International Co., Ltd. Device 5700
00:00.2 RAM memory: nVidia Corporation nForce2 Memory Controller 4 (rev c1)
Subsystem: Micro-Star International Co., Ltd. Device 5700
00:00.3 RAM memory: nVidia Corporation nForce2 Memory Controller 3 (rev c1)
Subsystem: Micro-Star International Co., Ltd. Device 5700
00:00.4 RAM memory: nVidia Corporation nForce2 Memory Controller 2 (rev c1)
Subsystem: Micro-Star International Co., Ltd. Device 5700
00:00.5 RAM memory: nVidia Corporation nForce2 Memory Controller 5 (rev c1)
Subsystem: Micro-Star International Co., Ltd. Device 5700
00:01.0 ISA bridge: nVidia Corporation MCP2A ISA bridge (rev a3)
Subsystem: Micro-Star International Co., Ltd. Device 5700
00:01.1 SMBus: nVidia Corporation MCP2A SMBus (rev a1)
Subsystem: Micro-Star International Co., Ltd. Device 5700
Kernel driver in use: nForce2_smbus
00:02.0 USB Controller: nVidia Corporation MCP2A USB Controller (rev a1)
Subsystem: Micro-Star International Co., Ltd. Device 5700
Kernel driver in use: ohci_hcd
00:02.1 USB Controller: nVidia Corporation MCP2A USB Controller (rev a1)
Subsystem: Micro-Star International Co., Ltd. Device 5700
Kernel driver in use: ohci_hcd
00:02.2 USB Controller: nVidia Corporation MCP2A USB Controller (rev a2)
Subsystem: Micro-Star International Co., Ltd. Device 5700
Kernel driver in use: ehci_hcd
00:06.0 Multimedia audio controller: nVidia Corporation MCP2S AC’97 Audio Controller (rev a1)
Subsystem: Micro-Star International Co., Ltd. Device 0080
Kernel driver in use: Intel ICH
00:08.0 PCI bridge: nVidia Corporation MCP2A PCI Bridge (rev a3)
00:09.0 IDE interface: nVidia Corporation MCP2A IDE (rev a3)
Subsystem: Micro-Star International Co., Ltd. Device 5700
Kernel driver in use: pata_amd
00:0b.0 IDE interface: nVidia Corporation nForce2 Serial ATA Controller (rev a3)
Subsystem: Micro-Star International Co., Ltd. Device 5700
Kernel driver in use: sata_nv
00:1e.0 PCI bridge: nVidia Corporation nForce2 AGP (rev c1)
01:00.0 VGA compatible controller: ATI Technologies Inc Radeon RV250 If [Radeon 9000] (rev 01)
Subsystem: C.P. Technology Co. Ltd Device 2047
Kernel driver in use: radeon
02:07.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
Subsystem: Hauppauge computer works Inc. WinTV Series
Kernel driver in use: bttv
02:07.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
Subsystem: Hauppauge computer works Inc. WinTV Series
02:09.0 Ethernet controller: National Semiconductor Corporation DP83815 (MacPhyter) Ethernet Controller
Subsystem: Netgear FA311 / FA312 (FA311 with WoL HW)
Kernel driver in use: natsemi

And the top results are:

top - 21:03:36 up 2 days, 4:54, 3 users, load average: 0.28, 0.26, 0.21
Tasks: 156 total, 2 running, 154 sleeping, 0 stopped, 0 zombie
Cpu(s): 39.9%us, 26.3%sy, 0.0%ni, 33.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 1551444k total, 1397996k used, 153448k free, 30340k buffers
Swap: 1052220k total, 22040k used, 1030180k free, 658084k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1472 root 20 0 84152 33m 5808 S 33.9 2.2 330:44.40 /usr/bin/Xorg -br -nolisten tcp :0 vt7 -auth /var/lib/xdm/au
4069 scott 20 0 590m 180m 25m S 9.5 11.9 246:59.41 /usr/lib/firefox/firefox
3563 scott 20 0 103m 28m 17m S 6.0 1.9 118:40.52 kwin -session 10e7946f74000126125663400000033070000_12901144
500 scott 20 0 75624 22m 16m S 5.5 1.5 2:08.29 /usr/bin/hebe

You appear to be running fully updated kernel-default or -pae on a 1.5 GB system (32bit). What cpu(s), make/model/speed, and what desktop on 11.3?

BTW posting results of commands without preserving the (limited) formatting makes for difficult reading and analysis. You need to rap ALL of the command output with CODE tags. You can use the advanced editor for that, highlight the pasted output and click on the supplied icon (#).

I once had a similar problem that had to do with the Screensaver.

Disableing it solved the problem for me.

svetter88 said:

PID  USER  PR NI  VIRT  RES  SHR S %CPU %MEM     TIME+ COMMAND
1472 root  20  0 84152  33m 5808 S 33.9  2.2 330:44.40 /usr/bin/Xorg -br -nolisten tcp :0 vt7 -auth /var/lib/xdm/au
4069 scott 20  0  590m 180m  25m S  9.5 11.9 246:59.41 /usr/lib/firefox/firefox
3563 scott 20  0  103m  28m  17m S  6.0  1.9 118:40.52 kwin -session 10e7946f74000126125663400000033070000_12901144
500  scott 20  0 75624  22m  16m S  5.5  1.5   2:08.29 /usr/bin/hebe

Some things seem odd to me: When I run ‘top’ on an 11.3 system, the command for X looks like:

4055 root  20  0  201m  86m  33m S    1  2.2 619:17.55 X :0 -auth /home/vodoo/.serverauth.4035 -nolisten tcp -nolisten tcp

Yours is definitely different. And firefox is eating 11.9% of CPU. Do you run some movie content in it? And finally: what is /usr/bin/hebe ?

And firefox is eating 11.9% of CPU.

Not quite right. Firefox is eating 11.9% of the memory. Xorg is eating the most cpu at 33.9%.

Not quite right. Firefox is eating 11.9% of the memory.

Yep, I copy-pasted from the wrong column. But even 9.5% of CPU is too much for an idling firefox.

I noticed that the OP has:

01:00.0 VGA compatible controller: ATI Technologies Inc Radeon RV250 If [Radeon 9000] (rev 01)
Subsystem: C.P. Technology Co. Ltd Device 2047
Kernel driver in use: radeon

In principle: radeon should be the right driver. Can you run the tests suggested in Radeon - openSUSE?

Perhaps you can find some hints in one of the numerous threads about your video card:

ATI 9000 RV250
About Ati Radeon not working on opensuse 11.2 and compiz

to name just two. And finally, if your PC is a desktop: Can you temporarily insert another video card in place of the ATI card and see what happens?

Yes, I keep the system current. And yes a 32 bit system with 1.5Gb ram. The CPU is an AMD Semperon 2600+

Sorry about the formatting…

By the way, don’t know if it matters but I am using an HP monitor, a f1905 screen with a resolution of 1280x1024.

I can give that a try.

It is a desktop and will see about putting in a different video card and disabling the on board one.

Any reason why you are not running kernel-desktop, as it doesn’t appear to be installed (normally by default)?

There is another thread here that you may find of interest: latest Xorg needs less resources (CPU)

Although I don’t encounter the problem described here this information might be really helpful in the future. Thank You.

Best regards,
Greg