Date: Tue, 12 Oct 1999 13:17:34 +0930 From: Greg Lehey <grog@lemis.com> To: Charlie Root <root@numfour.angelo.edu> Cc: freebsd-questions@FreeBSD.ORG Subject: Debug kernels (was: kernel config) Message-ID: <19991012131733.R78191@freebie.lemis.com> In-Reply-To: <199910111956.OAA00510@numfour.angelo.edu> References: <199910111956.OAA00510@numfour.angelo.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Monday, 11 October 1999 at 14:56:15 -0500, Charlie Root wrote: > Can someone tell me why this config file compiles to a 7.6 MB kernel? > The generic kernel from the install is only 2.3 MB. I have the Lehey > book and have been through the handbook at FreeBSD.org on kernel config. OK. If you have the Third Edition, look at page 361. In the Second Edition, it's pages 272/273. It tells you to use the -g option, explains what it does, and tells you what to do if you don't have enough space. What it doesn't do is tell you to strip the kernel if you don't have space for the debug kernel in the root file system. To do this, just before 'make install', do: # cp kernel kernel.debug (save the debug version in case you have problems) # strip -g kernel (remove the debug symbols) In FreeBSD 4.0, this won't be necessary. 'make install' will do these steps automatically, and if you want to install the debug version you'll need to say 'make install.debug'. I recommend to keep the debug symbols because in the unlikely event of a panic, you'll need this information to analyse the problem. Debug kernels are no slower than normal kernels; they just contain more information about the sources. Greg -- When replying to this message, please copy the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991012131733.R78191>