Slow X startup and Hammering /proc/pci

Thomas Leonard tal at
Fri Jun 2 12:28:33 PDT 2006

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:

(ignore the last two points on each graph, as that just shows when I hit
ctrl-alt-backspace to exit!)


Original: 5.99 s
With bugzilla patch: 5.07 s
With my change: 4.31 s
With both: 3.84 s

Dr Thomas Leonard
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1

More information about the xorg mailing list