LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 03-26-2007, 02:36 AM   #1
MrInept
Member
 
Registered: Oct 2005
Location: Melbourne, Australia
Distribution: Debian Etch 2.6.18-(custom compile for k7) with a 72 no 58 no 42 second bootup time (XP=4mins)
Posts: 52

Rep: Reputation: 15
how do i let dhclient3 run at a later runlevel with concurrency active?


Hi guys,

I followed this guide to speed up my boot time, and i got significant improvements. My latest bootchart shows 42sec boot time which I'm really happy with and people in my family might start using it cos it takes about 4 minutes to be able to run a program in XP from boot. One thing that is bothering me though is the huge amount of time wasted while my system is doing dhcp requests. I have a wireless pci card and it just isn't fast. I've run the option Concurrency=shell i'm just trying to figure out how to get dhclient3 to do whatever it has to while say gdm and xorg are loading. I'm running debian etch kernel 2.6.18 (custom compile).

How do I post the png file of my bootchart?


Thanks to all you helpful ppl,


Marc
 
Old 03-27-2007, 12:35 PM   #2
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
I don't know how it could be done within the parameters you set, but if it is a DHCP request that is taking long, why not remove the DHCP part of it, and assign a static address on the computer?

I've never played with a fast boot, but on default booting, machine with static addresses set on themselves take much less time than DHCP set addresses.

You can't post any pics here on LQ, so the way to deal with a picture is to post it on one of your machines and give a link, or put it on a free picture site, and again give a link.

Although to be honest, seeing a picture of how long your boot takes is unnecessary for us.

Peace,
JimBass
 
Old 03-27-2007, 10:05 PM   #3
MrInept
Member
 
Registered: Oct 2005
Location: Melbourne, Australia
Distribution: Debian Etch 2.6.18-(custom compile for k7) with a 72 no 58 no 42 second bootup time (XP=4mins)
Posts: 52

Original Poster
Rep: Reputation: 15
Is there any way to simply move it to a different run level though?

I've tried everything to get it to be a static ip and i just can't do it. My router does allow it because in windows xp it works a treat but i've followed the various guides regarding the ./networking/interfaces file and can't do it. Nonetheless, it could dhcp its heart away if it was doing other things at the same time.

Last edited by MrInept; 03-27-2007 at 10:08 PM.
 
Old 03-27-2007, 10:15 PM   #4
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
You don't mean a different run level. Runlevels are 1, 2, 3, 4, 5, and 6, and just categorize what programs start within their parameters. What you are looking for is the tool update-rc.d. Use the manpage.

Problem is, dhclient isn't listed specifically in the startup scripts in /etc/rcX.d. It is part of some other process, and likely can't easily be called earlier.

It is far easier to simply give the machine a static address. It will take less than 60 seconds to do, and it will work flawlessly, allowing a much faster boot.

Peace,
JimBass
 
Old 03-28-2007, 06:06 AM   #5
MrInept
Member
 
Registered: Oct 2005
Location: Melbourne, Australia
Distribution: Debian Etch 2.6.18-(custom compile for k7) with a 72 no 58 no 42 second bootup time (XP=4mins)
Posts: 52

Original Poster
Rep: Reputation: 15
Ok Jim thanks for your help i'll have a look at both.

Isn't it great how open source software brings together these little communities of really helpful ppl? Or am i still just recovering from the weekend
 
Old 03-29-2007, 07:59 AM   #6
MrInept
Member
 
Registered: Oct 2005
Location: Melbourne, Australia
Distribution: Debian Etch 2.6.18-(custom compile for k7) with a 72 no 58 no 42 second bootup time (XP=4mins)
Posts: 52

Original Poster
Rep: Reputation: 15
Hmm... thanks for the help, it seems i may have already had static ip working.

the networking script still pauses for a long time when it says

ipv6 over ipv4 tunnelling driver
Done.

Is there something here i can fiddle with? I've tried changing in /etc/modprobe.d/aliases

the line alias net-pf-10 ipv6


to


alias net-pf-10 off
alias ipv6 off


but it still comes up (as per http://beranger.org/index.php?article=1127)
 
Old 03-29-2007, 08:33 AM   #7
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 48
Did you also try the other suggestion on the page?

Quote:
In /etc/modprobe.d/blacklist, add a line
blacklist ipv6
You also can find where ipv6 may be getting called from with a slow search - something like

Code:
grep -r ipv6 /etc
(do as root or with sudo)
That will probably have a fair number of hits, but it can help you comment out the calls to ipv6.

Peace,
JimBass
 
  


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
Cannot run X, KDE, nor Gnome in runlevel 5 gtennant Suse/Novell 4 02-18-2006 10:40 AM
Postfix Concurrency Problem redwolf3 Linux - Software 1 04-13-2005 09:54 AM
qmail low concurrency problem -- SLOW! PLEASE HELP mrtwice Linux - Software 0 06-26-2003 02:41 PM
run progs at startup and sys monitoring question, runlevel restless Linux - General 3 02-10-2003 07:02 PM
Installed USB device (CDRW) can't run in runlevel 5 richlittell Linux - Newbie 2 01-18-2003 12:57 AM


All times are GMT -5. The time now is 01:33 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration