You are not logged in.

#1 2010-07-19 09:58:59

Laserpithium
Member
Registered: 2010-03-28
Posts: 25

What happens during the "Waiting for UDev uevents to be processed"?

Hello dear archers,

I have arch installed on my laptop, working great, I really love it.
Only one thing bother me and I would like to solve it: at boot time, the system waits for about 15s on the stage "Waiting for UDev uevents to be processed".

Is it normal? What is it doing exactly during this stage: loading modules?
I try to see in my logs but I can't find anything related to this. How can I know if there is not some kind of issue which make him takes so long ? How can I improve this ?

Offline

#2 2010-07-19 10:19:15

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: What happens during the "Waiting for UDev uevents to be processed"?

15s is really long. It's <5s here.

> Is it normal?
Does it bother you that much to invest an hour or more to investigate and _maybe_ get the thing booting 10s faster?

> What is it doing exactly during this stage: loading modules?
Processing udev rules I think.

Last edited by karol (2010-07-19 10:24:44)

Offline

#3 2010-07-19 10:31:14

Laserpithium
Member
Registered: 2010-03-28
Posts: 25

Re: What happens during the "Waiting for UDev uevents to be processed"?

karol wrote:

Does it bother you that much to invest an hour or more to investigate and _maybe_ get the thing booting 10s faster?

Yes ! big_smile
I am definitely ready to play a few hours with the distro to save a 10s boot. Not really for the improved boot time, but for playing with the distro.

Offline

#4 2010-07-19 10:37:26

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: What happens during the "Waiting for UDev uevents to be processed"?

Post the output of

ls /etc/X11/xorg.conf.d/

http://wiki.archlinux.org/index.php/Udev#Introduction
I think the more stuff you have, the longer it will take to configure.

Last edited by karol (2010-07-19 10:39:15)

Offline

#5 2010-07-19 10:45:12

Laserpithium
Member
Registered: 2010-03-28
Posts: 25

Re: What happens during the "Waiting for UDev uevents to be processed"?

ls /etc/X11/xorg.conf.d/
10-evdev.conf  10-quirks.conf  10-synaptics.conf

But are you sure this is related to X ? Because that happens at the beginning of the boot process (not yet in run-level 3), far before any X related stuff unless I am mistaking.

Offline

#6 2010-07-19 10:51:51

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: What happens during the "Waiting for UDev uevents to be processed"?

> But are you sure this is related to X ?
You mean the 'X11' part? We keep all those .conf files in one place, and it so happens to be an X11 subfolder. Yours is certainly not overcrowded.

Offline

#7 2010-07-19 11:33:34

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: What happens during the "Waiting for UDev uevents to be processed"?

Read /etc/rc.sysinit, look for references to uevents, find out what the related udevadm commands do.

Offline

#8 2010-07-19 11:45:26

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: What happens during the "Waiting for UDev uevents to be processed"?

Google 'bootchart', maybe this will help you speed things up.

Offline

#9 2010-07-19 13:42:00

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: What happens during the "Waiting for UDev uevents to be processed"?

Funny, how the most obvious hasn't been mentioned yet.....or maybe the OP already has done this.

Have you backgrounded all the DAEMONS in your rc.conf?

That's the most easiest way of speeding up your boot time. The only thing that I don't background is syslog-ng

Last edited by Inxsible (2010-07-19 13:42:50)


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#10 2010-07-19 14:13:59

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: What happens during the "Waiting for UDev uevents to be processed"?

OP wrote about 15s _udev_: about 15s on the stage "Waiting for UDev uevents to be processed".

Offline

#11 2010-07-19 14:21:03

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: What happens during the "Waiting for UDev uevents to be processed"?

Karol: How could the contents of /etc/X11/xorg.conf.d/ possibly be related to how long udev events takes to process?

Laserphitium: I've had a similar problem when using a Samsung DVD burner in combination with IDE HDD's, but it took 40+ seconds. What kind of HW setup do you have?

Inxsible: That wouldn't really help much with this particular problem since the Daemons run after Udev has finished processing.

Offline

#12 2010-07-19 14:27:03

bobdob
Member
Registered: 2008-06-13
Posts: 138

Re: What happens during the "Waiting for UDev uevents to be processed"?

I had a problem before with udev taking a long time if I had a cd/dvd in my dvd drive. It doesn't happen anymore, but it might be something related to that.

Offline

#13 2010-07-19 14:33:54

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: What happens during the "Waiting for UDev uevents to be processed"?

@ Ashren
udev is for setting the devices - like /dev/dsp, right?
I honestly don't know whether evdev & automounting are for X only. I should have checked it first but I'm lazy and stupid so I said what I said.
Sorry.
I'll finish my coffee and go to bed.

Offline

#14 2010-07-19 16:06:37

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: What happens during the "Waiting for UDev uevents to be processed"?

karol wrote:

OP wrote about 15s _udev_: about 15s on the stage "Waiting for UDev uevents to be processed".

Ashren wrote:

Inxsible: That wouldn't really help much with this particular problem since the Daemons run after Udev has finished processing.

If you can eliminate, say, 12 seconds by backgrouning all of your daemons, then that's a 12 second faster boot, so Udev's long startup wouldn't really matter. tongue Not really a solution, but it would help until you are actually able to solve it.

Offline

#15 2010-07-19 16:47:57

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: What happens during the "Waiting for UDev uevents to be processed"?

Two shots in the dark:
- Does your laptop have an Optiarc optical drive?
- Do you have a large external HDD plugged in at boot?

Offline

#16 2010-07-20 08:34:18

Laserpithium
Member
Registered: 2010-03-28
Posts: 25

Re: What happens during the "Waiting for UDev uevents to be processed"?

Thank you for all your answers.

Well, according to the man page and rc.sysinit, udevadm command in the rc.sysinit script does:

/sbin/udevadm settle
/sbin/udevadm control --property=STARTUP=

I assume this is the settle command which takes time.
But how can I list the uevents in the queue the udevadm settle command is waiting for ? If possible, with the delay of treatment of each of these uevents during the boot...
I have nothing related to this in my logs.

Regarding my hardware, I have one toshiba laptop P300-220 with two internal hard drives (and many partitions on them). But no external drive.

Last edited by Laserpithium (2010-07-20 08:35:36)

Offline

#17 2010-07-20 08:36:24

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: What happens during the "Waiting for UDev uevents to be processed"?

I've heard about a re-wirte that executes those things in parallel so it takes only 0.5 second - but the code is not open atm.

Edit: Some fresh things going on with the udev package: http://bugs.archlinux.org/task/20107

Last edited by karol (2010-07-20 08:41:26)

Offline

Board footer

Powered by FluxBB