[Bug 584919] New: Xorg uses 99% cpu after short period of inactivity on T61 laptop with KDE 4.4
http://bugzilla.novell.com/show_bug.cgi?id=584919 http://bugzilla.novell.com/show_bug.cgi?id=584919#c0 Summary: Xorg uses 99% cpu after short period of inactivity on T61 laptop with KDE 4.4 Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: x86 OS/Version: openSUSE 11.2 Status: NEW Severity: Major Priority: P5 - None Component: X.Org AssignedTo: bnc-team-xorg-bugs@forge.provo.novell.com ReportedBy: mtgibbs@yahoo.com QAContact: xorg-maintainer-bugs@forge.provo.novell.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.2 SUSE/5.0.342.0-2.1 (KHTML, like Gecko) Chrome/5.0.342.0 Safari/533.2 I moved to KDE 4.4 (have the latest packages from KKFD) and after I unplug and then plug in the laptop Xorg will start using 99% CPU after the system is idle for a couple of minutes. The CPU usage seems to be normal when the system is not idle. If I log out and log back the problem goes away until I switch to battery and back to AC power. This is a T61 with Intel graphics. Reproducible: Always Steps to Reproduce: 1. Log in to KDE 2. Unplug AC power 3. Plug in AC power 4. Start top and let the system sit for a couple of minutes. Actual Results: Xorg will use 99% CPU. Expected Results: Xorg uses minimal CPU. Tasks: 218 total, 2 running, 216 sleeping, 0 stopped, 0 zombie Cpu(s): 5.3%us, 50.0%sy, 0.0%ni, 44.2%id, 0.0%wa, 0.0%hi, 0.5%si, 0.0%st Mem: 4027148k total, 3816748k used, 210400k free, 140k buffers Swap: 4192956k total, 9432k used, 4183524k free, 2452312k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 20494 root 20 0 563m 157m 44m R 99 4.0 9:27.81 X 701 root 15 -5 0 0 0 S 11 0.0 52:55.97 phy0 10693 root 15 -5 0 0 0 S 0 0.0 1:41.11 events/1 22109 mtgibbs 20 0 147m 37m 19m S 0 1.0 1:33.09 chrome 23850 root 15 -5 0 0 0 S 0 0.0 0:00.21 usb-storage 24038 mtgibbs 20 0 2352 1064 768 R 0 0.0 0:03.69 top 1 root 20 0 1940 604 568 S 0 0.0 0:03.00 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.01 migration/0 4 root 15 -5 0 0 0 S 0 0.0 1:16.40 ksoftirqd/0 5 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/0 9 root 15 -5 0 0 0 S 0 0.0 0:00.90 events/0 11 root 15 -5 0 0 0 S 0 0.0 0:00.00 khelper 12 root 15 -5 0 0 0 S 0 0.0 0:00.00 netns 13 root 15 -5 0 0 0 S 0 0.0 0:00.00 async/mgr 14 root 15 -5 0 0 0 S 0 0.0 0:00.00 kintegrityd/0 16 root 15 -5 0 0 0 S 0 0.0 0:00.13 kblockd/0 18 root 15 -5 0 0 0 S 0 0.0 1:13.95 kacpid 19 root 15 -5 0 0 0 S 0 0.0 10:37.78 kacpi_notify -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c1
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c2
--- Comment #2 from Matthew Gibbs
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c3
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c4
--- Comment #4 from Matthew Gibbs
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c5
Stefan Dirsch
I noticed that there are a bunch of KDE updates on the servers but I won't update until I get the okay from someone here that it won't affect the troubleshooting process.
I don't see how this should be related to KDE, so please go ahead. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c6
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c7
--- Comment #7 from Ulrich Derenthal
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c8
--- Comment #8 from Ulrich Derenthal
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c9
M. W.
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c10
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c11
Tom Sneddon
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c12
--- Comment #12 from Tom Sneddon
Thinkpad Z60t with Intel mobile 915 GM. openSUSE 11.2 with KDE 4.2 from factory repositories.
100% cpu usage after some idle time has been solved by adding repository http://download.opensuse.org/repositories/X11:/XOrg:/11.2/openSUSE_11.2/ and installing xorg-x11-driver-input 7.4-41.1-i586 and xorg-x11-driver-video 7.4-87.93-1-i586
The cpu usage problem has come back again. I don't know why it didn't happen for several hours after updating the xorg drivers. There must have been some other factor that I had altered. I'm back to trying to figure this thing out again. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c13
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c14
Will Stephenson
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c15
--- Comment #15 from Will Stephenson
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c16
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c17
--- Comment #17 from Will Stephenson
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c18
--- Comment #18 from Will Stephenson
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c19
--- Comment #19 from Will Stephenson
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c20
--- Comment #20 from Will Stephenson
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c21
--- Comment #21 from Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c22
--- Comment #22 from Will Stephenson
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c23
Vincent Petry
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c24
--- Comment #24 from Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c25
--- Comment #25 from Will Stephenson
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c26
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c27
--- Comment #27 from Holger Macht
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c28
Holger Macht
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c29
--- Comment #29 from Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c30
--- Comment #30 from Holger Macht
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c31
--- Comment #31 from Holger Macht
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c32
--- Comment #32 from Egbert Eich
Created an attachment (id=356167) --> (http://bugzilla.novell.com/attachment.cgi?id=356167) [details] Testtool
With the new xorg-x11-server package, you only get the timeout once and it is never fired again. I'm using the attached test.c to verify it. With the Milestone 5 package, the timeout is fired multiple times, but with the disadvantage that the CPU goes mad ;-) With the package containing the above fix, there's only one single timeout which never repeats.
Holger, thanks for your test case. My factory test box is grossly outdated as i found out so i'm in the process of updating it. You are saying that you only get the alarm once - this reads to me you don't ever get any other alarm even after a reset. This is strange as how I read the code the trigger gets readded to a counter every time the alarm is re-set. I need to check this more deeply once my box is updated. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c33
--- Comment #33 from Egbert Eich
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c34
--- Comment #34 from Egbert Eich
Ok, the trigger didn't get readded to the counter when the alarm was changed. I've made a change and created a new package in home:eeich:XOrg:X11 package xorg-x11-server. The test program works as it did without the patch.
Of course the 100% busy cycles on the cpu are no longer. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c35
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c38
--- Comment #38 from Will Stephenson
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c39
--- Comment #39 from Egbert Eich
Egbert, please clarify, I understood the header change === the api change, and you were saying it shouldn't be a problem to backport for 11.2.
X.Org as shipped with 11.2 has the structure SyncAlarm defined in syncstr.h which is part of the xextproto package which we ship with xorg-x11-proto-devel. However the part of the header where this structure is defined is protected by: #ifdef _SYNC_SERVER . #endif this used to be defined in the server, an X library or user space program should never define this. To overcome the necessity to touch a proto package when a server internal structure changes the parts wrapped by above #ifdef are now (xserver 1.8) moved to a header contained in the server. The proto package has been updated as well. Thus there isn't really any client api change. Only the fact that a client visible X header historically contained some server internal structures. Thus doing this for 11.2 will not introduce any change to any API outside the server. Still the requirement to modify this header will require the proto package to be updated and in turn *all* packages depending on X headers will start to rebuild. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c40
matthias sweertvaegher
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c41
--- Comment #41 from Matthew Gibbs
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c42
--- Comment #42 from Stefan Dirsch
I tried upgrading Xorg to the one in the X11:Xorg repository for 11.2 and when I rebooted I only got the fbdev driver; not the intel driver. Is there still a problem with the intel driver?
Most likely KMS is not active. KMS wasn't active on 11.2 kernel by default. If KMS is not available X falls back to fbdev driver. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c43
--- Comment #43 from Matthew Gibbs
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c44
--- Comment #44 from Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c45
Markus K
Still the requirement to modify this header will require the proto package to be updated and in turn *all* packages depending on X headers will start to rebuild.
So? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c46
Sven Burmeister
(In reply to comment #39)
Still the requirement to modify this header will require the proto package to be updated and in turn *all* packages depending on X headers will start to rebuild.
So?
They are reluctant to fix this issue because it would cause too many updates, if I understand correctly. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=584919
http://bugzilla.novell.com/show_bug.cgi?id=584919#c47
--- Comment #47 from Markus K
https://bugzilla.novell.com/show_bug.cgi?id=584919
https://bugzilla.novell.com/show_bug.cgi?id=584919#c48
Andrey Karepin
https://bugzilla.novell.com/show_bug.cgi?id=584919
https://bugzilla.novell.com/show_bug.cgi?id=584919#c49
Stefan Dirsch
participants (1)
-
bugzilla_noreply@novell.com