linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* faster boots?
@ 2002-04-04 23:54 joeja
  2002-04-05  0:21 ` Alan Cox
                   ` (6 more replies)
  0 siblings, 7 replies; 77+ messages in thread
From: joeja @ 2002-04-04 23:54 UTC (permalink / raw)
  To: linux-kernel

Hello, 
    Is there some way of making the linux kernel boot faster?  

    While I know that many people here probably don't reboot there machines often, I live in CA where my electrictiy is still high and see no reason to keep a machine on that is not in use (i.e. while I sleep or am at work).  
  
    I tested freebsd on an old P133Mhz/32Meg ram and it booted faster with the GENERIC kernel than linux did on a AMD 1200Mhz/512Meg ram, which seemed odd.  Linux on that same P133 box also took longer than FreeBSD to boot.  

    If I have a machine that does not change from day to day hardware wise why when I boot the thing do I need to probe the hardware again and again each time?  Would passing more options on the command line help like all the addresses and IRQ's of known hardware?
    Wouldn't it make sense to store this data on the files system? Certainly if something like grub or lilo can figure out how to access a file on the drive the kernel could check for a 'defaults' file or something to get the default irq's, hardware, interrupts, etc from.  Then the kernel could probe these first and if the probe fails proble elsewhere for the device.

  Or is there another way of speeding up the linux kernel boot process?

Joe











^ permalink raw reply	[flat|nested] 77+ messages in thread
* Re: Re: faster boots?
@ 2002-04-05  2:10 joeja
  2002-04-05  7:44 ` Helge Hafting
  0 siblings, 1 reply; 77+ messages in thread
From: joeja @ 2002-04-05  2:10 UTC (permalink / raw)
  To: Alan Cox; +Cc: linux-kernel

Think pre init scripts....

no apache was install on this machine, no iptables scripts, etc.

I'm actually talking about the time from where Linux spits out all this crap about probing irq's, ide drive found with dma etc.  That kind of stuff.  

I'm not sure if there is an issue because I use the Linux framebuffer and all those printk() are taking to much time to print? To much scrolling or  redraw?  Is there any way to turn all that off (without commenting that code out)?

It would be nice to test if that is an issue.  FreeBSD does not seem to spit out all that crap.  It is more like 1 or 2 lines a device not this 30 lines of irq mapping and 4 lines of thank you to so and so and foo for the code of blah....   

If the video card is old and slow, could all this extra stuff that scrolls up the screen be causing the issue?  If so is there a way of turning this off?    


Joe

On Fri, 5 Apr 2002 01:21:17 +0100 (BST) Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:

>     Is there some way of making the linux kernel boot faster?  

#1: Start less crap at boot time. Obvious but thats frequently most of
    the issue.

For Red Hat if your hardware set up is constant then rpm -e kudzu will do
no harm and avoid the grovelling through the box looking for new toys.

Longer term swsuspend means you can bang alt-sysrq-Z and suspend to disk
without BIOS support

^ permalink raw reply	[flat|nested] 77+ messages in thread
* Re: faster boots?
@ 2002-04-05  8:00 willy tarreau
  2002-04-05 13:06 ` Bill Davidsen
  0 siblings, 1 reply; 77+ messages in thread
From: willy tarreau @ 2002-04-05  8:00 UTC (permalink / raw)
  To: alan; +Cc: linux-kernel

> Ditto. Especially if it spun them down again
> when idle for a while.


I had a patch for this in my 2.2 kernel tree,
originally from wingel@ctrl-c.liu.se, but I
didn't have time to port it to 2.4. I've been
using it happily for about 2 years on the NFS
server which is too close to my bedroom. The
only annoying side of the problem is that when
you incidentelly do an NFS access and the disks
are down, you have to wait a few minutes before
they spin up, especially with raid. I once
failed a CD burning session from the NFS server
because doing something else simultaneously
woke other disks up, which hung the NFS server
until they were ready.

But it's definitely interesting, and missing
in 2.4 IMHO.

If you want to try it for your 2.2 tree, I
can send you the patch.

Cheers,
Willy


___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

^ permalink raw reply	[flat|nested] 77+ messages in thread
[parent not found: <3CACEF18.CE742314@zip.com.au.suse.lists.linux.kernel>]
* RE: faster boots?
@ 2002-04-05 18:23 Torrey Hoffman
  0 siblings, 0 replies; 77+ messages in thread
From: Torrey Hoffman @ 2002-04-05 18:23 UTC (permalink / raw)
  To: Eric W. Biederman, Alan Cox; +Cc: linux-kernel

[... cc's trimmed, I guess everyone is on the list... ]

I also would like to speed up boots.  On the systems I'm 
responsible for (set top boxes hooked up to television 
sets) the slowest part of the boot is mounting the five reiser 
filesystems.  I'm using the busybox init and the "boot scripts" 
are actually a single compiled program.

Could mounting filesystems be parallelized effectively?

Three of the five filesystems on are mounted read-only, so I 
don't know what reiserfs is doing at mount that takes so long.
It used to be faster when we were using 2.2.19 with the reiser
3.5 patches...  

Does ext3 mount faster?

Torrey Hoffman
thoffman@arnor.net
torrey.hoffman@myrio.com



^ permalink raw reply	[flat|nested] 77+ messages in thread
* Re: Re: Re: faster boots?
@ 2002-04-06 17:53 Alan Cox
  2002-04-06 19:01 ` Joe
  0 siblings, 1 reply; 77+ messages in thread
From: Alan Cox @ 2002-04-06 17:53 UTC (permalink / raw)
  To: joeja; +Cc: linux-kernel

> So what is the best way in Linux to figure out what you can remove from the 
> kernel to make it smaller and boot hopefully faster on low end machines?

Say "M" to everything that isnt your root file system or directly dependant
on it. The whole "build a custom kernel" thing is mostly a red herring.

^ permalink raw reply	[flat|nested] 77+ messages in thread
[parent not found: <Pine.LNX.4.33.0204051403200.7124-100000@mhw.ULib.IUPUI.Edu >]

end of thread, other threads:[~2002-04-15 13:35 UTC | newest]

Thread overview: 77+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-04 23:54 faster boots? joeja
2002-04-05  0:21 ` Alan Cox
2002-04-05  1:00   ` Jeremy Jackson
2002-04-05  0:26 ` Andrew Morton
2002-04-05  2:18   ` Richard Gooch
2002-04-05  2:51     ` Andrew Morton
2002-04-05  3:00       ` Benjamin LaHaise
2002-04-05  3:21         ` Alan Cox
2002-04-05  5:38           ` Richard Gooch
2002-04-05 12:49             ` Alan Cox
2002-04-05 16:33               ` Richard Gooch
2002-04-05 23:02               ` Itai Nahshon
2002-04-05 23:07                 ` Benjamin LaHaise
2002-04-06  0:07                   ` Itai Nahshon
2002-04-06  0:29                     ` Benjamin LaHaise
2002-04-07 14:42                     ` Pavel Machek
2002-04-08  0:48                       ` Itai Nahshon
2002-04-08  0:57                         ` Richard Gooch
2002-04-08  1:14                           ` Andrew Morton
2002-04-08  4:17                             ` Andre Hedrick
2002-04-08  9:57                             ` Pavel Machek
2002-04-08 16:43                               ` Jamie Lokier
2002-04-08 16:48                                 ` Benjamin LaHaise
2002-04-08 21:09                                   ` Pavel Machek
2002-04-09  0:56                                   ` Jamie Lokier
2002-04-09 22:22                                     ` Pavel Machek
2002-04-12 10:44                                       ` Jamie Lokier
2002-04-12 11:42                                         ` Pavel Machek
2002-04-12 14:29                                           ` Jamie Lokier
2002-04-14 19:40                                             ` Pavel Machek
2002-04-15 13:34                                             ` Philipp Matthias Hahn
2002-04-08 17:08                             ` Mark Mielke
2002-04-08 17:49                               ` Rene Rebe
2002-04-08 18:02                                 ` G . Sumner Hayes
2002-04-08  6:02                           ` Oliver Neukum
2002-04-08 17:06                             ` Richard Gooch
2002-04-08 16:13                               ` Martin Dalecki
2002-04-08 15:16                           ` Bill Davidsen
2002-04-08 17:32                             ` Richard Gooch
2002-04-08 18:31                               ` Bill Davidsen
2002-04-08 18:40                                 ` David Lang
2002-04-08 18:56                                   ` Richard B. Johnson
2002-04-08 19:06                                     ` David Lang
2002-04-08 19:27                                       ` Richard B. Johnson
2002-04-08  8:03                         ` Helge Hafting
2002-04-08 12:38                           ` Rogier Wolff
2002-04-08 14:41                           ` Bill Davidsen
2002-04-08  9:55                         ` Pavel Machek
2002-04-08 12:15                         ` Rogier Wolff
2002-04-08 12:09                     ` Rogier Wolff
2002-04-05  6:14           ` Eric W. Biederman
2002-04-05 12:45             ` Alan Cox
2002-04-05 13:04         ` Bill Davidsen
2002-04-05 21:33           ` Benjamin LaHaise
2002-04-05  5:26       ` Richard Gooch
2002-04-05  7:45   ` dean gaudet
2002-04-05 18:43     ` Jeremy Jackson
2002-04-05  0:44 ` Piotr Esden-Tempski
2002-04-05 13:37   ` Mauricio Nuñez
2002-04-05  1:11 ` Ross Vandegrift
2002-04-05  1:55 ` Bernd Eckenfels
2002-04-05 12:56 ` Bill Davidsen
2002-04-10  1:20   ` Mike Touloumtzis
2002-04-05 19:08 ` Mark H. Wood
2002-04-05  2:10 joeja
2002-04-05  7:44 ` Helge Hafting
2002-04-05 12:13   ` Thomas 'Dent' Mirlacher
2002-04-05 15:14   ` Luigi Genoni
2002-04-05  8:00 willy tarreau
2002-04-05 13:06 ` Bill Davidsen
2002-04-05 13:21   ` willy tarreau
2002-04-05 15:29     ` Bill Davidsen
2002-04-05 16:20       ` willy tarreau
2002-04-05 23:10     ` Itai Nahshon
     [not found] <3CACEF18.CE742314@zip.com.au.suse.lists.linux.kernel>
     [not found] ` <Pine.LNX.4.33.0204042330270.10358-100000@twinlark.arctic.org.suse.lists.linux.kernel>
2002-04-05  8:41   ` Andi Kleen
2002-04-05 18:23 Torrey Hoffman
2002-04-06 17:53 Re: " Alan Cox
2002-04-06 19:01 ` Joe
     [not found] <Pine.LNX.4.33.0204051403200.7124-100000@mhw.ULib.IUPUI.Edu >
2002-04-07 20:10 ` Stevie O

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).