From owner-freebsd-stable@FreeBSD.ORG Mon Nov 26 21:27:35 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D6406A2A for ; Mon, 26 Nov 2012 21:27:35 +0000 (UTC) (envelope-from b.smeelen@ose.nl) Received: from mail.ose.nl (mail.ose.nl [212.178.134.164]) by mx1.freebsd.org (Postfix) with ESMTP id 662CD8FC14 for ; Mon, 26 Nov 2012 21:27:35 +0000 (UTC) X-Footer: b3NlLm5s Received: from localhost ([127.0.0.1]) by mail.ose.nl (using TLSv1/SSLv3 with cipher AES256-SHA (256 bits)) for freebsd-stable@freebsd.org; Mon, 26 Nov 2012 22:27:32 +0100 Message-ID: <50B3DEC4.4000605@ose.nl> Date: Mon, 26 Nov 2012 22:27:32 +0100 From: Bas Smeelen User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: freebsd-stable@freebsd.org Subject: Re: Help review the FAQ References: <1353868081735-5764056.post@n5.nabble.com> <1353941396782-5764313.post@n5.nabble.com> <50B38A3F.6020001@gmail.com> <1353945307512-5764351.post@n5.nabble.com> <1353945435502-5764353.post@n5.nabble.com> <50B3D222.30209@ose.nl> <50B3DBEF.1060303@quip.cz> In-Reply-To: <50B3DBEF.1060303@quip.cz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Nov 2012 21:27:35 -0000 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) > > FreeBSD 8.3-RELEASE amd64 GENERIC > > > 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.