From owner-freebsd-stable@FreeBSD.ORG Fri Nov 30 09:00:07 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 1B21BD80 for ; Fri, 30 Nov 2012 09:00:07 +0000 (UTC) (envelope-from bartsch@dssgmbh.de) Received: from dss.incore.de (dss.incore.de [195.145.1.138]) by mx1.freebsd.org (Postfix) with ESMTP id C34B98FC13 for ; Fri, 30 Nov 2012 09:00:06 +0000 (UTC) Received: from inetmail.dmz (inetmail.dmz [10.3.0.3]) by dss.incore.de (Postfix) with ESMTP id D1F965CE78; Fri, 30 Nov 2012 09:59:58 +0100 (CET) X-Virus-Scanned: amavisd-new at incore.de Received: from dss.incore.de ([10.3.0.3]) by inetmail.dmz (inetmail.dmz [10.3.0.3]) (amavisd-new, port 10024) with LMTP id fpTIthNEMRnM; Fri, 30 Nov 2012 09:59:57 +0100 (CET) Received: from mail.incore (fwintern.dmz [10.0.0.253]) by dss.incore.de (Postfix) with ESMTP id AFDA85C77E; Fri, 30 Nov 2012 09:59:57 +0100 (CET) Received: from pcadmin.incore (pcadmin.incore [192.168.0.140]) by mail.incore (Postfix) with ESMTPSA id A4B7E5083F; Fri, 30 Nov 2012 09:59:57 +0100 (CET) Message-ID: <50B8758C.2070202@dssgmbh.de> Date: Fri, 30 Nov 2012 09:59:56 +0100 From: Alfred Bartsch User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:7.0.1) Gecko/20111007 Thunderbird/7.0.1 MIME-Version: 1.0 To: Kevin Oberman Subject: Re: How to clean up / References: <1354239860.19647.8.camel@eva02> <2A4F276A-B95D-4D03-86F4-0A7C5A06B9A9@gsoft.com.au> In-Reply-To: X-Enigmail-Version: undefined Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: freebsd-stable@freebsd.org 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: Fri, 30 Nov 2012 09:00:07 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 30.11.2012 08:16, schrieb Kevin Oberman: > On Thu, Nov 29, 2012 at 8:46 PM, Daniel O'Connor > wrote: >> >> On 30/11/2012, at 12:14, mbsd wrote: >>> Ξ ~ → du -sh /boot/kernel 59M kernel >>> >>> Try to recompile your kernel without debug. >> >> Or delete /boot/kernel/*.symbols. You may suppress the installation of the *.symbols files by inserting the following statement into /etc/make.conf: # prevent installation of "*.symbols" in /boot/kernel INSTALL_NODEBUG= yes >> >> It would be Really Nice (tm) if they could be put into /usr >> instead since there is virtually no benefit to them being in / >> (since they are only used for debugging). > > I have long wondered why the kernel debug symbols were moved into > /kernel. The only thing I can come up with was the desire to > retain symbols for kernel.old, which the old system deleted. I'm > not sure, but I think the change was made when the symbols files > were added for all of the modules. I'd meed to dig back in the > archived to track down the change. > > In any case, it's hardly difficult to come up with a scheme for > keeping symbols for the current and old kernels and modules in /var > or /usr and keep / from exceeding a gig on an amd64 system. (No, > it's not there today, but it's disturbingly close.). > > Moving the Linux emulation shadow root out of root would also > help. In our environment we keep the *.symbols files for debugging purpose, but do not build all available modules. This saves lots of space in / and building time. The needed modules are defined in /etc/make.conf: ... MODULES_OVERRIDE opensolaris MODULES_OVERRIDE+= zfs etc. If we need another module, we simply add it to this list. "make buildkernel && make installkernel" installs it into /boot/kernel, including .symbols file. Thus our / file system is about 30% filled (amd64 / 1G) - -- Regards Alfred Bartsch Data-Service GmbH -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlC4dYwACgkQ5QGe2JdVf3gEugCgjldOFRoLphT/cxAtMm8ulwiD sUEAn1kkVjPb3FxyvRs50CKkiaqkd0pI =zyQq -----END PGP SIGNATURE-----