mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 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

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®