LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...

Notices

Reply
 
LinkBack Search this Thread
Old 05-08-2005, 03:10 PM   #16
davecs
Member
 
Registered: Feb 2003
Location: Dagenham, Essex, Britain
Distribution: PCLinuxOS
Posts: 485

Rep: Reputation: 30

Quote:
Originally posted by eNightmare
What exactly does hotplug do, and what am I missing if I disable this feature.
What hotplug does (in Gentoo it's called coldplug) is to detect your hardware and cause a number of modules to be loaded. Modules are part of the kernel, but instead of being compiled in, they can be loaded to a running kernel or not as need be. This means that the kernel takes less memory, because on a general purpose distro, loads of modules have to be available to cover a range of hardware that the system may encounter. In Gentoo, Hotplug then controls the reaction to things you might plug in AFTER the system has booted (USB keys, etc). When you stop Hotplug in other system, these functions still work. So Hotplug comes in two sections, if you like, which is why Gentoo calls one of them Coldplug!

The consequence of disabling Hotplug is that you have to tell your distro which modules to load. otherwise some of your hardware won't work.

In Gentoo there is a file at /etc/modules.autoload.d/kernel-2.6, and in PCLinuxOS and Mandrake/Mandriva it is at /etc/modprobe.preload. This lists the modules that the system must load. Other distros will have to have a similar file, you'll have to find it. How do you find out what modules you need?

Well you open a terminal AS ROOT, and issue the command: "lsmod"

What you get, is a list of modules loaded by hotplug. Before stopping Hotplug, you need to copy these module names, IN REVERSE ORDER, to the file I mentioned above. Only the module name, nothing else. Modules which have a further list of modules further along their line, do not need to be added specifically, as loading any of the modules in the list will cause them to load anyway, but there is no harm in you keeping them in. You may even notice some that clearly refer to hardware you don't have (eg with sata in the name) as Hotplug does tend to go too far. You could try leaving those out.

To actually stop hotplug running in Mandr*** or PCLinuxOS, you have to run the M/P Control Centre > System > Configure System Services then you just find Hotplug in the list and uncheck it so it doesn't start on the next boot. In Gentoo you have to run this line from a console as root:

Code:
rc-update del coldplug boot
If you are using another distro, you'll have to find out for yourself how to stop hotplug at startup. But of course, once you know what modules are needed, why waste time whilst a program searches them out every time you boot?

Last edited by davecs; 05-08-2005 at 03:14 PM.
 
Old 05-16-2005, 12:28 AM   #17
Yerp
Member
 
Registered: Jun 2004
Distribution: Turtle Kevux 0.8.8
Posts: 129

Rep: Reputation: 15
An embedded floppy distro.
 
Old 05-16-2005, 12:31 AM   #18
kesara
Member
 
Registered: Dec 2004
Location: Colombo, Sri Lanka
Distribution: Arch Linux, Gentoo Linux, Ubuntu, Debian
Posts: 116

Rep: Reputation: 15
Quote:
Originally posted by Yerp
An embedded floppy distro.
Can't be...
Floppy distros are slow on boot..
 
Old 05-16-2005, 06:34 PM   #19
eNightmare
Member
 
Registered: Jan 2005
Location: Richmond, Ky
Distribution: ArchLinux
Posts: 51

Rep: Reputation: 15
I have found arch to be the quickest so far.
 
Old 05-19-2005, 12:19 AM   #20
CoffeeMonster
Member
 
Registered: Mar 2005
Location: Eh?
Distribution: ME
Posts: 44

Rep: Reputation: 15
Gentoo or *BSD, since fbsd has screwed it up with the beastie menu. Out of *BSD, NetBSD is probably the fastest.
 
Old 05-22-2005, 07:54 PM   #21
eNightmare
Member
 
Registered: Jan 2005
Location: Richmond, Ky
Distribution: ArchLinux
Posts: 51

Rep: Reputation: 15
actually I have found Gentoo to be slower to boot up...
 
Old 05-22-2005, 08:51 PM   #22
CoffeeMonster
Member
 
Registered: Mar 2005
Location: Eh?
Distribution: ME
Posts: 44

Rep: Reputation: 15
If you dont add any additonial services, Gentoo is faster than Arch, even if Gentoo is crap.
 
Old 05-22-2005, 09:03 PM   #23
slackMeUp
Member
 
Registered: Nov 2003
Distribution: Slack-where?
Posts: 654

Rep: Reputation: 30
I once timed my old slack 9.1 box to under 16 seconds from power on to command line.

But there is one thing I'd like to point out for this thread.

We are running LINUX here! Who cares about boot times when you don't need to reboot (often) in the first place.

Currently my slack 10.1 desktop takes an annoying amount of time to boot... but I don't care, its uptime is 47 days.
 
Old 05-22-2005, 09:15 PM   #24
gbhil
Member
 
Registered: Jan 2005
Location: /dev/input/chair0
Distribution: Slackware, Gentoo, Vector, Roll-your-own-with-GNU binutils
Posts: 174

Rep: Reputation: 30
Gentoo's init was not designed to be fast. It was designed for ease of use. It's more than fast enough, but it won't ever boot as fast as some other distros. When I play around with rolling my own linux, I steal Gentoo's init model and config files because it is so easy to administer.

With no hotplug, no ldconfig, a slim kernel and heavy script hacking I can get Slackware to boot from lilo to login prompt on a laptop in about 15-20 seconds, and created a run level to use it while I'm on battery. The lead developer on a well known Slack based distro project got it to boot at a timed 16 seconds. Any distro that uses BSD style init should be able to achieve these times if you're willing to play around with and re-write rc.* files.
 
Old 05-23-2005, 04:56 AM   #25
CoffeeMonster
Member
 
Registered: Mar 2005
Location: Eh?
Distribution: ME
Posts: 44

Rep: Reputation: 15
Im a huge fan of the Gentoo Init scripts, very easy to use. Only decent thing I can say about it.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multi-boot Distributions svinka Linux - Newbie 3 01-12-2005 06:23 PM
Fastest way to boot linux. unholy Linux - Distributions 5 05-30-2004 10:33 AM
What was your fastest boot time? DAChristen29 Linux - Distributions 8 05-13-2004 05:21 PM
boot loader start more distributions grendel-IT Linux - Software 7 03-15-2004 09:32 AM
Dual boot two Linux distributions uttamsaxena Linux - General 7 08-13-2002 02:46 AM


All times are GMT -5. The time now is 12:48 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
Open Source Consulting | Domain Registration