From owner-freebsd-questions Mon Oct 11 20:48: 2 1999 Delivered-To: freebsd-questions@freebsd.org Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by hub.freebsd.org (Postfix) with ESMTP id 4DAFC14CC1 for ; Mon, 11 Oct 1999 20:47:53 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id NAA32913; Tue, 12 Oct 1999 13:17:34 +0930 (CST) Date: Tue, 12 Oct 1999 13:17:34 +0930 From: Greg Lehey To: Charlie Root Cc: freebsd-questions@FreeBSD.ORG Subject: Debug kernels (was: kernel config) Message-ID: <19991012131733.R78191@freebie.lemis.com> References: <199910111956.OAA00510@numfour.angelo.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <199910111956.OAA00510@numfour.angelo.edu> WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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