* Re: Re: Re: faster boots?
@ 2002-04-05 18:08 joeja
2002-04-06 17:53 ` Alan Cox
0 siblings, 1 reply; 4+ messages in thread
From: joeja @ 2002-04-05 18:08 UTC (permalink / raw)
To: linux-kernel
Someone pointed out that I may have to much stuff built into the kernel and that I should try modularizing it. Only builing in what I need to boot and the rest as modules.
This may be true.
It is easier IMHO to configure a NetBSD kernel or FreeBSD kernel with just what you need in the system because dmesg is more helpful IHMO on those systems.
dmesg for netbsd prints stuff like
pckbc0: using irq 12 for aux slot
and in its kernel config file there will be a line something like
pckbc* irq*
or something. Thus someone wrote a nifty little perl script that can go through dmesg and comment out of the config what is not found by the generic kernel (or the kernel installed at that time). This helped reduce my netbsd kernel from 3.6M to about 2.1M and speed up the machine some.
FreeBSD is very similar to this. Only I think it tends to have more modules in the default generic kernel.
Linux on the other hand prints out all this other stuff which makes it harder IMHO to determine weather or not you need driver foo built into the kernel. Thus I know that when I build a Linux kernel there is stuff that is in it that I don't need but don't know what it is.
Also the bsd's run 'config' against the config file which actually checks to see if the config file that was edited is actually going to build and it also updates some other stuff. Although that is not 100% accurate, but a big help.
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?
Joe
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Re: Re: faster boots?
2002-04-05 18:08 Re: Re: faster boots? joeja
@ 2002-04-06 17:53 ` Alan Cox
2002-04-06 18:49 ` Mr. James W. Laferriere
2002-04-06 19:01 ` Joe
0 siblings, 2 replies; 4+ 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] 4+ messages in thread
* Re: Re: Re: faster boots?
2002-04-06 17:53 ` Alan Cox
@ 2002-04-06 18:49 ` Mr. James W. Laferriere
2002-04-06 19:01 ` Joe
1 sibling, 0 replies; 4+ messages in thread
From: Mr. James W. Laferriere @ 2002-04-06 18:49 UTC (permalink / raw)
To: Alan Cox; +Cc: joeja, linux-kernel
Hello Alan , ONLY in YOUR opinion . Not mine '.' . JimL
On Sat, 6 Apr 2002, Alan Cox wrote:
> > 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.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
+------------------------------------------------------------------+
| James W. Laferriere | System Techniques | Give me VMS |
| Network Engineer | P.O. Box 854 | Give me Linux |
| babydr@baby-dragons.com | Coudersport PA 16915 | only on AXP |
+------------------------------------------------------------------+
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: faster boots?
2002-04-06 17:53 ` Alan Cox
2002-04-06 18:49 ` Mr. James W. Laferriere
@ 2002-04-06 19:01 ` Joe
1 sibling, 0 replies; 4+ messages in thread
From: Joe @ 2002-04-06 19:01 UTC (permalink / raw)
To: Alan Cox; +Cc: linux-kernel
Thanks all,
several people had suggested this.
as it turns out one thing that was slowing my boot down was actually the
framebuffer. When the kernel boots and it switches to mode 0x317 (maybe other
modes or all did not try) it would actually take a second or two to switch to
the new mode. This is on a fast machine so I imagine that on a slower machine
it may take longer.
also it seems that ide2 probe would take long as well. maybe less than 1/2
second but it would be noticable so adding ide2=noprobe helped as well. this
may be that there is no ide2 and it has to time out. I guess the time out is
very small.
also the cdrom probe takes a little time as well...
removeing all these unnecessary drivers has speed it up some more as well.
it seems it now boots in about 1/2 the time.
Joe
> > 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] 4+ messages in thread
end of thread, other threads:[~2002-04-06 18:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-05 18:08 Re: Re: faster boots? joeja
2002-04-06 17:53 ` Alan Cox
2002-04-06 18:49 ` Mr. James W. Laferriere
2002-04-06 19:01 ` Joe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®