From owner-freebsd-questions Mon Oct 11 22:37:41 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 2A20214E1E for ; Mon, 11 Oct 1999 22:37:34 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id PAA33771; Tue, 12 Oct 1999 15:07:19 +0930 (CST) Date: Tue, 12 Oct 1999 15:07:18 +0930 From: Greg Lehey To: Ben Goodwin Cc: Charlie Root , freebsd-questions@FreeBSD.ORG Subject: Re: Debug kernels (was: kernel config) Message-ID: <19991012150718.V78191@freebie.lemis.com> References: <199910111956.OAA00510@numfour.angelo.edu> <19991012131733.R78191@freebie.lemis.com> <01e701bf146e$3a90cef0$6a477392@dsg.hamsterville.ultranet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: <01e701bf146e$3a90cef0$6a477392@dsg.hamsterville.ultranet.com> 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 Tuesday, 12 October 1999 at 0:57:04 -0400, Ben Goodwin wrote: > [snip] > >> 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. > > [snip] > > Hrm? From > http://www.freebsd.org/handbook/kerneldebug.html > > When the kernel has been built make a copy of it, say kernel.debug, and then > run strip -g on the original. Install the original as normal. You may also > install the unstripped kernel, but symbol table lookup time for some > programs will drastically increase, and since the whole kernel is loaded > entirely at boot time and cannot be swapped out later, several megabytes of > physical memory will be wasted. > > Who's right? :-) I am :-) The old a.out kernels loaded the entire kernel into memory. Elf kernels load only the sections which are needed, not including the symbol table. I'll fix the text in the handbook. 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