Bug 8234

Summary: 100% CPU after running 15 hours
Product: xorg Reporter: Péter Szabó <pts>
Component: Server/DDX/XorgAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED INVALID QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: high    
Version: 6.9.0   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Péter Szabó 2006-09-12 02:00:04 UTC
The Xorg process runs at 100% CPU soon after I relogin or exit from the screen
saver after 15 hours of idle time. It keeps running at 100% CPU for several
hours. This slows down my system terribly. This has never happened to XFree86 4.x.

Finding a solution with Google seems hopless. Some people claim that it is the
nVidia driver's fault, some claim it is the ATI driver, others claim that it is
due to the GLX extension or assigning a negative nice value to the Xorg process.
None of these claims is true -- I don't have nVidia, I don't have ATI, I have
GLX disabled, my Xorg process runs at nice level 0, and x.org still eats 100% CPU.

I have been experiencing the problem for at least 12 months on at least 3
machines (with very different hardware, different 6.x versions of X.org. I only
describe one the machines in this bug report). I hope it gets fixed soon.

I use Debian Sarge, Linux ptsszszi 2.6.17.6-skas3-v9-pre9 #3 SMP Mon Jul 24
22:40:58 CEST 2006 i686 GNU/Linux

Here is my xorg.conf:

Section "Files"
	#FontPath	"unix/:7100"			# local font server
	# if the local font server has problems, we can fall back on these
	FontPath	"/usr/share/fonts/X11/misc"
	FontPath	"/usr/lib/X11/fonts/misc"
	FontPath	"/usr/share/fonts/X11/cyrillic"
	FontPath	"/usr/lib/X11/fonts/cyrillic"
	FontPath	"/usr/lib/X11/fonts/75dpi/:unscaled"
	FontPath	"/usr/lib/X11/fonts/100dpi/:unscaled"
	FontPath	"/usr/share/fonts/X11/Type1"
	FontPath	"/usr/lib/X11/fonts/Type1"
	FontPath	"/usr/share/fonts/X11/CID"
	FontPath	"/usr/lib/X11/fonts/CID"
	FontPath	"/usr/lib/X11/fonts/Speedo"
	FontPath	"/usr/share/fonts/X11/100dpi"
	FontPath	"/usr/lib/X11/fonts/100dpi"
	FontPath	"/usr/share/fonts/X11/75dpi"
	FontPath	"/usr/lib/X11/fonts/75dpi"
EndSection

Section "Module"
	Load	"bitmap"
	Load	"dbe"
	Load	"ddc"
# !! ?? Both these issues were appaerntly related to x.org's Composite
#   (I was using it to have transparency and shadows).
#   I have Disabled it and now both these problems disappeared.
# vvv might be responsible for excessive CPU use...
# It happens periodically - the load average on my machine shoots up,
# stays high for ten or so minutes, and then gradually drops off again.
# This occurs on every machine I've got that is running Xorg. Two of them
# have ATI cards, but the third has an nVidia card.
# -- The new scheduler doesn't seem to play nicely with X running
#    at a nice value of -10. So, re-nice X to 0, and see if that fixes your
#    problem. Search the archives for a method to change the nice value
#    permanently.
#    SUXX: nice level is 0, this is not the reason
# Dat: libglu1-mesa package with the libglu-xorg package... don't ask me why the
first one was installed.
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=381069
# vvv SUXX: doesn't solve the problem
#	Load	"dri"
	Load	"extmod"
	Load	"freetype"
# vvv try disabling this
#	Load	"glx"
	Load	"int10"
	Load	"record"
	Load	"type1"
# vvv and this
#	Load	"vbe"
EndSection

# vvv doesn't fix...
#Section "Extensions"
# Option "Composite" "true"
#EndSection

Section "InputDevice"
	Identifier	"Generic Keyboard"
	Driver		"keyboard"
	Option		"CoreKeyboard"
	Option		"XkbRules"	"xfree86"
	Option		"XkbModel"	"pc105"
	Option		"XkbLayout"	"hu"
EndSection

Section "InputDevice"
	Identifier	"Configured Mouse"
	Driver		"mouse"
	Option		"CorePointer"
	Option		"Device"		"/dev/input/mice"
	Option		"Protocol"		"ImPS/2"
	Option		"ZAxisMapping"		"4 5"
EndSection

Section "Device"
	Identifier	"Generic Video Card"
	Driver		"i810"
EndSection

Section "Monitor"
	Identifier	"Generic Monitor"
	HorizSync	28-50
	VertRefresh	43-75
	Option		"DPMS"
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Device		"Generic Video Card"
	Monitor		"Generic Monitor"
	DefaultDepth	24
	SubSection "Display"
		Depth		1
		Modes		"1280x1024"
	EndSubSection
	SubSection "Display"
		Depth		4
		Modes		"1280x1024"
	EndSubSection
	SubSection "Display"
		Depth		8
		Modes		"1280x1024"
	EndSubSection
	SubSection "Display"
		Depth		15
		Modes		"1280x1024"
	EndSubSection
	SubSection "Display"
		Depth		16
		Modes		"1280x1024"
	EndSubSection
	SubSection "Display"
		Depth		24
		Modes		"1280x1024"
	EndSubSection
EndSection

Section "ServerLayout"
	Identifier	"Default Layout"
	Screen		"Default Screen"
	InputDevice	"Generic Keyboard"
	InputDevice	"Configured Mouse"
EndSection

Section "DRI"
	Mode	0666
EndSection
Comment 1 Daniel Stone 2007-02-27 01:33:31 UTC
Sorry about the phenomenal bug spam, guys.  Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Comment 2 Adam Jackson 2018-06-11 18:48:16 UTC
Twelve year old report with no profile data, closing.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.