From owner-freebsd-stable@FreeBSD.ORG Mon Dec 3 21:51:38 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 035A0C3 for ; Mon, 3 Dec 2012 21:51:38 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) by mx1.freebsd.org (Postfix) with ESMTP id A69828FC12 for ; Mon, 3 Dec 2012 21:51:36 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TfdvV-00051X-Ja for freebsd-stable@freebsd.org; Mon, 03 Dec 2012 22:51:45 +0100 Received: from 93-97-10-126.zone5.bethere.co.uk ([93.97.10.126]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Dec 2012 22:51:45 +0100 Received: from johannes by 93-97-10-126.zone5.bethere.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 03 Dec 2012 22:51:45 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Johannes Totz Subject: Re: How to clean up / Date: Mon, 03 Dec 2012 21:51:16 +0000 Lines: 49 Message-ID: References: <1354239860.19647.8.camel@eva02> <2A4F276A-B95D-4D03-86F4-0A7C5A06B9A9@gsoft.com.au> <50B8758C.2070202@dssgmbh.de> <129391C5-DBD1-4E14-9834-0CEC8713C05E@my.gd> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 93-97-10-126.zone5.bethere.co.uk User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/17.0 Thunderbird/17.0 In-Reply-To: <129391C5-DBD1-4E14-9834-0CEC8713C05E@my.gd> 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, 03 Dec 2012 21:51:38 -0000 On 30/11/2012 10:25, Fleuriot Damien wrote: > > On Nov 30, 2012, at 9:59 AM, Alfred Bartsch wrote: > >> -----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 > > > In addition to the previous advice you've received regarding symbol files, you may also want to only compile and install the kernel modules you actually use. > There's also the side benefit of the kernel being that much faster to rebuild. > > Get the list with "kldstat". > > Here for example, we only build a very few of them: > $ kldstat > Id Refs Address Size Name > 1 19 0xffffffff80100000 b0eec0 kernel > 2 1 0xffffffff80c0f000 bca8 geom_label.ko > 3 1 0xffffffff80c1b000 1350 mfi_linux.ko > 4 4 0xffffffff80c1d000 47958 linux.ko > 5 1 0xffffffff80e12000 40c3 linprocfs.ko > 6 1 0xffffffff80e17000 a14 linsysfs.ko > > > This yields a very lightweight kernel folder, even when retaining the debug symbols: > $ du -hs > 46M . > > This is what you want in /etc/rc.conf : > MODULES_OVERRIDE=geom/geom_label if_lagg if_vlan linprocfs linsysfs linux mfi/mfi_linux This should be in /etc/make.conf?