Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Oct 1999 15:07:18 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Ben Goodwin <ben@hamsterville.ultranet.com>
Cc:        Charlie Root <root@numfour.angelo.edu>, freebsd-questions@FreeBSD.ORG
Subject:   Re: Debug kernels (was: kernel config)
Message-ID:  <19991012150718.V78191@freebie.lemis.com>
In-Reply-To: <01e701bf146e$3a90cef0$6a477392@dsg.hamsterville.ultranet.com>
References:  <199910111956.OAA00510@numfour.angelo.edu> <19991012131733.R78191@freebie.lemis.com> <01e701bf146e$3a90cef0$6a477392@dsg.hamsterville.ultranet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991012150718.V78191>