Help review the FAQ

Bas Smeelen b.smeelen at
Mon Nov 26 21:27:35 UTC 2012

On 11/26/12 22:15, Miroslav Lachman wrote:
> Bas Smeelen wrote:
>> On 11/26/12 16:57, Jakub Lach wrote:
> [...]
>> Thanks Miroslav Lachman for the reply with the correct sizes for GENERIC
>> kernels.
>> Change FAQ 8.3 Why is my kernel so big?
>> Nowadays kernels are compiled in /debug mode by default/. Kernels built
>> in debug mode contain many symbols that are used for debugging, thus
>> greatly increasing the size of the kernel. Note that there will be
>> little or no performance decrease from running a debug kernel, and it is
>> useful in case of a system panic.
>> However....
> I think that debug symbols are in another files (*.symbols)
> > ls -lh /boot/kernel/kernel*
> -r-xr-xr-x  1 root  wheel   12M May  8  2012 /boot/kernel/kernel
> -r-xr-xr-x  1 root  wheel   50M May  8  2012 /boot/kernel/kernel.symbols
> So a kernel alone has 12MB, with debug symbols 62MB (12+50).
> And all *.symbols files can be deleted (if more space on /boot is needed)
> I don't know how it should be mentioned in FAQ.

You are right.
 From the FAQ I understand with 'kernel so big' the contents of the 
/boot/kernel directory is being referred to as a whole?
Thus disabling (commenting) makeoptions DEBUG=-g (which is default the 
last couple of releases, since 7?) and then rebuilding and installing 
the kernel you get rid if them 'the right way'

So FAQ 8.3 is still right just changing that nowadays it's default for 
GENERIC to be build with the debug symbols.

More information about the freebsd-stable mailing list