LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-01-2006, 09:18 PM   #1
djeikyb
Member
 
Registered: Nov 2005
Location: California
Distribution: ubuntu 10
Posts: 162

Rep: Reputation: 33
udev increases boot time by 2m:12s


Problem: My computer boots in 3m:9s, 2m:12s of which is spent by udev initialising itself or whatever it does. This is absolutely ridiculous. How do I fix it?

I don't even know why udev is being used. Before I changed to the 2.6 line of kernels, devfs was used, and I thought devfs was merely deprecated with 2.6. I've tried and tried to get devfs back, but no such luck. Otoh, the little I've been able to understand of what I've read about udev makes me think udev is a better system, and that it would be more desirable to get udev working properly instead of going back to devfs.

Experience level: I've been a linux user for several years now, but am still mostly a semi-competent curious newbie who likes to rtfm.

Caveats: My linux box is a wreck, and has been since January (the withdrawal symptoms still haven't dissipated). I'm forced to use this winbox for anything more productive than timing udev. This means any screen output you want to see has to be captured by camera and uploaded via my dial-up connection. I've got the time if you've got the time.
 
Old 05-02-2006, 05:46 AM   #2
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
1st question - what version of udev are you running?

do you have some wierd hardware that might be causing this.... and did you compile the kernel yourself.......
 
Old 05-02-2006, 07:02 AM   #3
ledow
Member
 
Registered: Apr 2005
Location: UK
Distribution: Slackware 13.0
Posts: 241

Rep: Reputation: 34
It might also be an idea to turn on loggin (in /etc/udev/udev.conf) and see what is taking a long time to load.
 
Old 05-02-2006, 08:34 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
And as an aside, if you are now at 2.6.13 or later you can't go back to devfs. As of that release, it is not only deprecated, but gone.
Well, the code was still there, but ...

Forget it, it's gone. Get udev working.
 
Old 05-02-2006, 12:08 PM   #5
djeikyb
Member
 
Registered: Nov 2005
Location: California
Distribution: ubuntu 10
Posts: 162

Original Poster
Rep: Reputation: 33
According to udevinfo, I'm using 0.26. Should I upgrade to 0.91 (latest)?

According to /etc/udev/udev.conf, logging is enabled. Where is the log kept? "slocate udev" doesn't turn up anything that looks like a log, and nothing jumped out at me in /var/log/.

Re-reading through some udev information, I'm seeing all kinds of stuff about udev rule files and what not. Excuse the probably stupid question, but do I need to make one? I assumed an unoptimised setup would be in place by default (err, just not this inefficient..). If so, then any links to friendly guides to setting up udev that you guys have offhand would be appreciated (just in case I miss them when googling).

syg00-- You have saved my sanity. I would've sworn I used devfs when I first switched, back in 2.6.9 era. Now I'm at 2.6.15 .

satinet-- I don't think I have any wierd hardware. Just the K8n4-e deluxe mainboard, athlon 64 processor, and an Radeon x300 gfx card. Technical specs are linked to in my sig.
 
Old 05-02-2006, 01:40 PM   #6
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
ok i was just thinking that some hardware can cause hangs.

yes definately upgrade udev. 0.26 is a very early version.

however, i would upgrade to 0.64 as this is the latest version that's in "slackware current". meaning it's well testing and working with slackware.

it still might be a kernel option or something......
 
Old 05-02-2006, 01:41 PM   #7
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
I cut my udev time to near nothingness by recompiling the kernel with as much builtin as possible. Since hotplug has less modules it needs to try, it takes less time.
 
Old 05-02-2006, 01:49 PM   #8
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
you can also update hotplug..
 
Old 05-02-2006, 04:19 PM   #9
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 15
Posts: 546

Rep: Reputation: 43
If your problem is just your box boots faster try this
http://piterpunk.info02.com.br/extra/
Ciao
 
Old 05-02-2006, 07:44 PM   #10
liquidtenmilion
Member
 
Registered: May 2004
Location: South Carolina
Distribution: Slackware 11.0
Posts: 606

Rep: Reputation: 32
As of the more recent udev releases, hotplug isn't even used anymore.

026 is a VERY early release(Infact kernels 2.6.16+ require 071 or higher, and even they are fairly old). Slackware is ancient in it's support for udev.

I know that using Udev 090 on my slackware 10.0 box with a self built 2.6.16 kernel, my boot time is significantly faster than when on 2.4 using hotplug.

I used these instructions: http://piterpunk.info02.com.br/extra/

However, your udev being THAT slow is probably due to a hardware problem(or possibly a configuration error, but hardware error seems more likely)
 
Old 05-02-2006, 11:53 PM   #11
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,651

Rep: Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772Reputation: 1772
the udev in -current has been upgraded to 0.71 to conform the minimum requirement for 2.6.16.9 kernel. I'm using Piter Punk's udev (0.90) and it worked here
 
Old 05-03-2006, 03:35 AM   #12
satinet
Senior Member
 
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50
i might use this.

do you just uninstall hotplug??
 
Old 05-03-2006, 06:27 AM   #13
ledow
Member
 
Registered: Apr 2005
Location: UK
Distribution: Slackware 13.0
Posts: 241

Rep: Reputation: 34
Just a small notice:

The version of udev you report comes from Slackware 10.0, released in Jun 2004. That's quite old for a Slackware system and I would advise you that if the command:

cat /etc/slackware-version

reports 10.0, you should update incrementally to 10.1, 10.2 etc. FIRST before jumping straight in with a high-numbered version of udev. The chances are that your problems stem not just from the version of udev but associated libraries, kernel modules, etc. that are trying to load. Upgrading incrementally will ensure that all libraries etc. are in line with each other.

Additionally, there are likely to be severe security issues with software that old unless you've been updating it regularly (even 10.0 is still having security fixes released for it as evidenced by it's changelog: http://download.mirror.ac.uk/sites/f...ChangeLog.txt).

However, your sig seems to indicate that this computer is slowly being left to rot, which will make EVERYTHING on it ten times harder. This is like complaining that your computer is slow to boot up when you're still running Windows 98.

Personally, I'd wipe it and start afresh with either Slackware 10.2 (if you want a guaranteed working system) or Slackware-current (if you want the thing to work and have the VERY latest version of everything). Or wait for Slackware 11.0. Wiping and restarting is going to be a lot easier than trying to slowly upgrade this machine until things start to work properly again.

Last edited by ledow; 05-03-2006 at 06:30 AM.
 
Old 05-03-2006, 12:17 PM   #14
djeikyb
Member
 
Registered: Nov 2005
Location: California
Distribution: ubuntu 10
Posts: 162

Original Poster
Rep: Reputation: 33
Oops. And the memories all come back. I used to have Slack 10, then I upgraded all my hardware, downloaded Slack 10.2, used the sata.i kernel without installing 10.2, forgot I didn't upgrade, started personalising whatever latest (stable) kernel I could get my hands on, and everything broke.

I'll be back in an hour or so after I install 10.2..
 
Old 05-03-2006, 01:32 PM   #15
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Correct me if I'm wrong but I think you would still need hotplug working for udev to work? I did try once to turn off hotplug but udev wouldn't load alsa drivers...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to have udev start at boot RVDowning Mandriva 9 06-09-2010 01:51 PM
udev boot error alma Linux - Newbie 3 11-27-2005 10:51 AM
udev takes long time to create /dev/usbhd symlink Yalla-One Slackware 4 04-04-2005 03:27 AM
2.6.10 boot stopping at udev.... edM Slackware 7 02-23-2005 02:13 PM
memory used increases anikj Linux - General 3 11-05-2003 02:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration