You are not logged in.

#1 2009-02-22 16:30:58

leokent
Member
From: UK
Registered: 2009-02-12
Posts: 11
Website

Xorg Start Time

How long should xorg take to start after the startx command has been given? The Fedora Project have apparently got their startup time down to around 1 second (OneSecondX). I takes a good 7 seconds on my machine, is this normal? (This is without installing any window manager apart from X.)

Thanks,
Leo Kent

Offline

#2 2009-02-22 17:19:57

Lexion
Member
Registered: 2008-03-23
Posts: 510

Re: Xorg Start Time

What kind of machine do you have?  If it's old, then it is normal.


urxvtc / wmii / zsh / configs / onebluecat.net
Arch will not hold your hand

Offline

#3 2009-02-22 17:51:25

lucho
Member
Registered: 2009-02-21
Posts: 5

Re: Xorg Start Time

The machine must be extremely old to attribute such delay on the oldness only. Like say 486.

Try to run directly the X server (without startx)
if its still slow then the problem is in it.
if not, then startx does something
if its the startx, see what exactly does it do (its a shell script)
For example you can comment it line by line to find the offending part.

If its an binary executable (like the X server itself) that is causing the delay, its more complex.
You can try strace to see what system calls does it do and and does this suggest something to you.
Maybe it is waiting for some (network?) timeouts

Check the CPU usage during the delay.
If it is caused by some timeout(s) then the CPU usage should be low.

Try to isolate the problem
Hope that helps

Last edited by lucho (2009-02-22 17:53:23)

Offline

#4 2009-02-22 18:40:20

leokent
Member
From: UK
Registered: 2009-02-12
Posts: 11
Website

Re: Xorg Start Time

I have a  2.1Ghz Core2Duo with 3GB of RAM and nVidia 8400 so it's not really what you would call old.

@lucho: Thanks, I will investigate and report back.

Offline

#5 2009-02-22 18:49:14

BinkyTheClown
Member
From: The Circus
Registered: 2008-06-11
Posts: 85
Website

Re: Xorg Start Time

Did you write your hostname in /etc/hosts? Should be a line like this:

127.0.0.1               localhost.localdomain   localhost yourhostname

This is known to speed up the Xorg startup process.


Heeeeeey cat!!!

Offline

#6 2009-02-22 19:01:00

leokent
Member
From: UK
Registered: 2009-02-12
Posts: 11
Website

Re: Xorg Start Time

@Binky: I have already tried that, it did make a difference but I am still at 7 seconds when running "X".

How can I monitor what the CPU is doing when starting X, with top?

Offline

#7 2009-02-22 19:21:45

BinkyTheClown
Member
From: The Circus
Registered: 2008-06-11
Posts: 85
Website

Re: Xorg Start Time

Yes, with top. And you can also install bootchart, it generates an image of the boot process, perhaps it is useful to you.

Btw, do you use a ~/.xinitrc file? Please post it.

Last edited by BinkyTheClown (2009-02-22 19:24:06)


Heeeeeey cat!!!

Offline

Board footer

Powered by FluxBB