Slow X startup and Hammering /proc/pci

Thomas Leonard tal at ecs.soton.ac.uk
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:

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


-- 
Dr Thomas Leonard		http://rox.sourceforge.net
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1





More information about the xorg mailing list