LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-11-2011, 09:56 PM   #1
David2010
Member
 
Registered: May 2009
Posts: 255

Rep: Reputation: 23
Make linux boot faster?


Ok I have a fully customized gentoo linux box set up and its wicked fast.

Opera starts up on a cold start in 4 seconds and 2 seconds on a warm startup.

Gimp starts up in 7 seconds no matter what.

All the other programs start up in less than a second or two.

The only problem is... The startup time could be better...

It takes a little over a minute to startup all the way to the login manager.

It was a couple minutes but I tweaked it a little bit so now its just one minute.

I know one minute may not seem like much time but I live my life in a hurry so startup time does mean something to me.

The "Loading Modules" phase takes 20 seconds but I am under the impression that can't be fixed as I compiled the kernel using genkernel.

The DHCP for my wireless takes 8 seconds. I might be able to use a static IP but honestly I am not sure how to do so... :-/

The other 32 seconds are used during the general bootup starting up necessary services and other things.

The computer has a single core CPU.

Is there anything else I could do to decrease the boot time?

-------------------------------------------------------------

A little off topic but is a 4 GB installation large for a linux distro with just a few handful of small programs and fluxbox as a window manager?

Last edited by David2010; 03-11-2011 at 09:58 PM.
 
Old 03-12-2011, 12:57 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
How about your services? Do you have a lot being started up in init 5? Look at your chkconfig and turn off the ones you really don't need, that will help a lot.

Josh
 
Old 03-12-2011, 01:05 AM   #3
comp_brad1136
Member
 
Registered: Nov 2004
Location: SW Missouri, USA
Distribution: Debian 6 "Squeeze"
Posts: 55

Rep: Reputation: 7
according to du -h -c / I'm using 6.6gig
I'm running debian squeeze, I have many of the games and themes installed for the kids, I have both the 32 and 64 bit wine, i have kde-base, xfce, openoffice, and quite a bit of others. This is my primary computer. So. to answer your question, if you want to put a fairly basic (but still usable) graphical system on 4gb, you should have plenty.

for your extra 32 seconds, I would look to dmeg and the init boot logs for your distro. common causes are unneeded daemons, and hangups looking for a configuration file that's not there.
 
Old 03-12-2011, 02:48 AM   #4
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
Hi David2010

Quote:
The DHCP for my wireless takes 8 seconds. I might be able to use a static IP but honestly I am not sure how to do so... :-/
That is fairly simple...
have a look at this page:
http://www.yolinux.com/TUTORIALS/Lin...etworking.html

The rest means indeed turning off what you do not need. And, yes, if you machine looks for stuff that is'nt there, that takes time to...
Maybe some tips can be found here:
http://www.ibm.com/developerworks/li...ry/l-boot.html

Luck

Thor
PS :
Quote:
A little off topic but is a 4 GB installation large for a linux distro with just a few handful of small programs and fluxbox as a window manager?
Not in my book. The rest is convenient...besides, 4Gb of what? Hard drive? RAM? Where will you find anything smaller anyway?? LOL

Last edited by ButterflyMelissa; 03-12-2011 at 03:42 AM.
 
Old 03-12-2011, 05:02 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Makes me wonder how much one gains (provided devices and network re-initialize properly after) from suspension slash hibernation instead of shutting down...
 
Old 03-12-2011, 05:30 AM   #6
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
@ unSpawn

Quote:
Makes me wonder how much one gains (provided devices and network re-initialize properly after) from suspension slash hibernation instead of shutting down...
nothing, I just turn the system on and let it running...I dont even allow it to fall asleep

but hey, that's just me...
 
Old 03-12-2011, 12:34 PM   #7
David2010
Member
 
Registered: May 2009
Posts: 255

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by corp769 View Post
How about your services? Do you have a lot being started up in init 5? Look at your chkconfig and turn off the ones you really don't need, that will help a lot.

Josh
According to "rc-update show" I am starting the following at bootup:

Code:
               acpid |      default                  
           alsasound | boot                          
            bootmisc | boot                          
             checkfs | boot                          
           checkroot | boot                          
               clock | boot                          
         consolefont | boot                          
                hald |      default                  
            hostname | boot                          
             keymaps | boot                          
               local |      default nonetwork        
          localmount | boot                          
             modules | boot                          
              net.lo | boot                          
            netmount |      default                  
             preload |      default                  
           rmnologin | boot                          
      udev-postmount |      default                  
             urandom | boot                          
                 xdm |      default
I am under the assumption that I need most if not all of those.
 
Old 03-12-2011, 12:38 PM   #8
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Quote:
Originally Posted by David2010 View Post
According to "rc-update show" I am starting the following at bootup:

I am under the assumption that I need most if not all of those.
Yeah, you are good there man. Usually, that's the first place I point to. Sometimes I see the most useless services being on sometimes....
 
Old 03-12-2011, 12:39 PM   #9
David2010
Member
 
Registered: May 2009
Posts: 255

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by linusr@flanders View Post
@ unSpawn



nothing, I just turn the system on and let it running...I dont even allow it to fall asleep

but hey, that's just me...
Ok so now I have a static IP and that cuts off a good 7 seconds so thats progress.

Normally I would just keep the computer turned on for a good portion of the time however this is a laptop and it obviously can't be running all the time.
 
Old 03-12-2011, 12:40 PM   #10
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Quote:
Originally Posted by David2010 View Post
Ok so now I have a static IP and that cuts off a good 7 seconds so thats progress.

Normally I would just keep the computer turned on for a good portion of the time however this is a laptop and it obviously can't be running all the time.
My laptop has been on for over three days now, and running without a hitch. I have a cooler pad though....
 
Old 03-12-2011, 12:45 PM   #11
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
My laptop has been on for over three days now,
Why?

Kind regards
 
Old 03-12-2011, 12:56 PM   #12
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Quote:
Originally Posted by repo View Post
Why?

Kind regards
Because I was downloading something the other day and had to go into work, and besides that, I mainly use my laptop for everything, including managing my network, my server, and everything else. It is pretty much my command and control center of my house. Plus I have all of my personal documents on it, so when I do pack it up, I have everything I need. It's just how I do everything really man...
 
Old 03-12-2011, 01:15 PM   #13
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,766
Blog Entries: 23

Rep: Reputation: 411Reputation: 411Reputation: 411Reputation: 411Reputation: 411
@ David2010

Quote:
Ok so now I have a static IP and that cuts off a good 7 seconds so thats progress.
Cool! That means you have cut 7 seconds...look at the array of services you've got up and running. Need all of them? What can you strip? For example, avahi. From their site

Quote:
Avahi is a system which facilitates service discovery on a local network via the mDNS/DNS-SD protocol suite. This enables you to plug your laptop or computer into a network and instantly be able to view other people who you can chat with, find printers to print to or find files being shared.
( avahi.org )

Is that a service you need? I can imagine that it pokes quite a lot into the computer's recource...I for one do not even have it running...

O, and I timed my boot, it's about twenty seconds or so intil I can log on. I dunnow if that's fast/slow/reasonable but I'm fine with it...

Thor

PS : keeping systems up and running is kinda how "the family" does things, my mom had hers running for over a week flat, only to reboot every so once in a while, she did'nt run Linux, of course. But all in all, Linux is supposed to have longer uptimes, it's the way it was meant to exist, I guess...

Last edited by ButterflyMelissa; 03-12-2011 at 01:19 PM.
 
Old 03-12-2011, 01:34 PM   #14
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
You could install bootchart for performance analysis and visualization of the GNU/Linux boot process.
http://www.bootchart.org/

Kind regards
 
Old 03-12-2011, 02:22 PM   #15
revinary
LQ Newbie
 
Registered: Mar 2011
Posts: 12

Rep: Reputation: 1
Hi David2010,

I would recommend you to build a custom kernel that fits your system. Sure it is a bit of a hassle the first time but hey: you're running gentoo - you're supposed to run a custom kernel

You'd be surprised how much you can kick out of those vanilla kernels when you know your specs -

I'm pretty sure that would noticeability decrease boot-time.

So long,

rev
 
  


Reply



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
LXer: Linux 2.6.30 Gets Faster Boot - but is Fedora Faster? LXer Syndicated Linux News 0 06-11-2009 04:40 AM
Trying to make debian boot faster. stormrider_may Debian 13 03-08-2006 01:51 PM
how to make linux boot faster suneel Linux - Newbie 13 03-08-2006 09:11 AM
How can I make linux faster? Superdude Linux - General 7 08-23-2004 08:34 PM
How can i make my mandrake boot faster? Braveheart1980 Linux - General 5 02-11-2004 03:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:39 PM.

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