Slow X startup and Hammering /proc/pci

Daniel Stone daniel at freedesktop.org
Sat Jun 3 05:21:11 PDT 2006


On Fri, Jun 02, 2006 at 08:28:33PM +0100, Thomas Leonard wrote:
> On Thu, 01 Jun 2006 23:00:48 +0300, Daniel Stone wrote:
> > On Thu, Jun 01, 2006 at 08:40:42PM +0100, Thomas Leonard wrote:
> [...]
> >> I shaved 1.7 seconds off of the startup time here by editing
> >> hw/xfree86/os-support/bus/Pci.c to stop after finding as many devices as
> >> there are lines in /proc/bus/pci/devices:
> >> 
> >> if (idx < number_of_pci_devices)
> >> 	tag = pciFindNext();
> >> else
> >> 	tag = PCI_NOT_FOUND;
> >> 
> >> No idea if this is a good general solution, but it worked for me.
> > 
> > There's a better solution, which I think is still languishing in Bugzilla.
> 
> Here are four traces, showing each combination of patches:
> 
> http://www.ecs.soton.ac.uk/~tal/traces/
> 
> (ignore the last two points on each graph, as that just shows when I hit
> ctrl-alt-backspace to exit!)
> 
> Summary:
> 
> Original: 5.99 s
> With bugzilla patch: 5.07 s
> With my change: 4.31 s
> With both: 3.84 s

http://people.freedesktop.org/~daniels/xorg-pci-speedup.diff is
extremely nasty (lots of mangling between os-support/bus, and the OS
subdirs), but it does the trick.  Does it still give you the same
performance boost?

Cheers,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg/attachments/20060603/4e7e6504/attachment.pgp>


More information about the xorg mailing list