LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-12-2011, 07:00 AM   #1
ravi_chobey
Member
 
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180

Rep: Reputation: 30
Thumbs up Booting linux faster


Hi Everybody,

I am having a printer server which is booting in 100 seconds and i want to reduce the boot time to within the range of 20-30 seconds.How can i do it?

The kernel size is around 1 MB and it is having a jffs2 filesystem.The device drivers for wireless LAN and bluetooth are loaded as soon as the system boots.

Please give me your valuable suggestions to optimize the boot time of my printer server.

Thanks,
Ravi Chobey
 
Old 10-12-2011, 08:09 AM   #2
magiknight
Member
 
Registered: Oct 2003
Posts: 37

Rep: Reputation: 4
Quote:
Originally Posted by ravi_chobey View Post
Hi Everybody,

I am having a printer server which is booting in 100 seconds and i want to reduce the boot time to within the range of 20-30 seconds.How can i do it?

The kernel size is around 1 MB and it is having a jffs2 filesystem.The device drivers for wireless LAN and bluetooth are loaded as soon as the system boots.

Please give me your valuable suggestions to optimize the boot time of my printer server.

Thanks,
Ravi Chobey
Hey Rav,
How many services are you running that aren't needed? What I mean is, is your box functioning as a NTP server, DHCP server, ftp server... you don't need any of these. Disabling as many services as you can with keeping the functionality you wish to have.

You may also want to remove anything that updates ldconfig or font matrix's.

Also if you wish to play around with threads.. you can add "&" to some of the processes to allow a quicker boot. But be careful not to start a process that depends on another process that is not finished loading.
 
Old 10-12-2011, 08:22 AM   #3
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,640
Blog Entries: 4

Rep: Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933
Display the startup messages (i.e. turning off any graphic splash screen) and observe them as they whiz by. Notice when they pause, because you probably have some kind of timeout happening.

You also need to distinguish between "the time it takes the kernel to initialize," and "the time that it takes for (user-land...) subsystems to be ready for use."

You will learn what you need to know by watching.

I have a system that boots in six seconds flat.

Last edited by sundialsvcs; 10-12-2011 at 08:29 AM.
 
Old 10-12-2011, 10:12 AM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Generic recommendations for all distros:

1) Disable startup services that you don't need. Or keep only those that you do need.

2) If you use lilo, use the 'compact' option in lilo.conf.

3) Compile a custom kernel. You should do this last, because it has the least effect on boot time, I would estimate only a few seconds.
 
Old 10-12-2011, 04:45 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,973

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
I agree that you can create a distro as the best choice as H_TeXMeX_H suggests.

Might look at something like xpud that has been setup a bit for fast boot and see if you can use it as a base if you don't want to do a complete from scratch.


100 seconds seems long.

Can a text based distro work like some old floppy type distro?

Might look at suse studio and make a just enough to test.
 
Old 10-24-2011, 06:30 AM   #6
ravi_chobey
Member
 
Registered: Sep 2007
Location: Bangalore,India
Distribution: Fedora,Mandriva,Debian
Posts: 180

Original Poster
Rep: Reputation: 30
Thanks for your support. I will check it after stopping the unnecessary services and try to use a tool called "kernel profiler".
 
  


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 get faster booting in my system? info2india Linux - Newbie 1 07-27-2011 08:11 AM
LXer: Linux 2.6.30 Gets Faster Boot - but is Fedora Faster? LXer Syndicated Linux News 0 06-11-2009 04:40 AM
LXer: Parallelize Applications for Faster Linux Booting LXer Syndicated Linux News 0 06-17-2008 06:40 PM
LXer: Parallelize Application for Faster Linux Booting LXer Syndicated Linux News 0 03-13-2007 01:31 PM
How to make booting faster? tuxuser19 Debian 7 10-15-2005 04:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:00 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