Date: Sun, 10 Dec 2006 12:45:15 -0800 From: Garrett Cooper <youshi10@u.washington.edu> To: freebsd-questions@freebsd.org Subject: Re: Advantages of trimmed kernel? Message-ID: <457C71DB.3000706@u.washington.edu> In-Reply-To: <17788.21019.357739.300962@jerusalem.litteratus.org> References: <200612100905.30430.kirk@strauser.com> <20061210155022.GA28750@owl.midgard.homeip.net> <457C4156.8010309@computer.org> <17788.21019.357739.300962@jerusalem.litteratus.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Robert Huff wrote: > Eric Schuele writes: > > >> FWIW... Its my understanding that >> - the memory saved would be negligible. >> > > How are we defining "negligible"? I know I've seen a pruned > kernel 25% smaller than GENERIC for the same release; I /think/ I've > seen one 33% smaller. Is that difference important? DammifIkno. > IF you're feeling paranoid, compile and install both. > (Assuming I'm correct in believing they install clean to separate > directories.) > > > Robert Huff > (running a custom kernel since 2.mumble) > As others have mentioned, the pluses to running a kernel without many of the trimmings is the fact that it does take less memory and less time to boot up / probe. Although this really isn't much of an issue with newer machines, due to the amount of available RAM in the machine (typically 512MB~1GB+), this does make a difference for some embedded systems and "limited resource architectures" (Pentium Pro, Pentium 2, etc), where RAM is a more of a luxury than on general purpose computers / servers. One thing that I will note though, is that compile time is also a factor for having a smaller kernel. I can recompile my kernel faster when I do source upgrades than I could with a generic kernel and all of the modules ("NO_MODULES = *" in make.conf). However, doing this has bit me in the arse a few times, so ultimately I recommend compiling / removing whatever you need with caution. My advice: heed what Lane said, but you can also trim down your kernel intelligently. You can save memory and disk space, as well as reduce recompile time in the long run by having a properly trimmed kernel. -Garrett
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?457C71DB.3000706>