From owner-freebsd-stable@FreeBSD.ORG Mon Dec 3 22:45:17 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 3EBC9237 for ; Mon, 3 Dec 2012 22:45:17 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id BA62A8FC08 for ; Mon, 3 Dec 2012 22:45:16 +0000 (UTC) Received: by mail-ee0-f54.google.com with SMTP id c13so2332190eek.13 for ; Mon, 03 Dec 2012 14:45:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=84bYCbOWTZfrht8BsC65cN9/GV4hn0/eNcrkVqhO1m8=; b=oqAVAXz6Wf86YdF4MAwX8VyKZcezgC7/ZQ+7seo7ec0jH8jBj60Abu0gaEBsb4KG6H foPGXgwssYXa5zLHvL6QGD6RK+BMqqNh7e06ETEwLcB+XdTTBcvjsdihr1KIYQm8X5+P C4kOQLmitVQL3WaFXuTq8qGlMrrnK7kgua0XV7xJdDWXRVY4dpftKmCgggBUIqvhIYs5 q7xlukG8Z95CyIm/0o94gCI26c5BOuhcF0OzYTNDx/bVHiFD+O9zAvhZNsfP0ZjMfU0y MPbvNwN/SSxjun/YklhtvaRiYIapi9HWt+r3bjCpXwpW2i4jp92LZr2c3hS8J+28nC44 LkEA== MIME-Version: 1.0 Received: by 10.14.194.199 with SMTP id m47mr22679854een.11.1354574715563; Mon, 03 Dec 2012 14:45:15 -0800 (PST) Received: by 10.223.170.193 with HTTP; Mon, 3 Dec 2012 14:45:15 -0800 (PST) In-Reply-To: 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> Date: Mon, 3 Dec 2012 14:45:15 -0800 Message-ID: Subject: Re: How to clean up / From: Kevin Oberman To: Johannes Totz Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Mon, 03 Dec 2012 22:45:17 -0000 On Mon, Dec 3, 2012 at 1:51 PM, Johannes Totz wrote: > 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: >>>>>> >>>>>> =C3=8E=C5=BE ~ =C3=A2=E2=80=A0=E2=80=99 du -sh /boot/kernel 59M ke= rnel >>>>>> >>>>>> 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=3D yes >> >> >> >> In addition to the previous advice you've received regarding symbol file= s, >> 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=3Dgeom/geom_label if_lagg if_vlan linprocfs linsysfs li= nux >> mfi/mfi_linux > > > This should be in /etc/make.conf? thiat woruld work, but it would be better to put it into /etc/src.conf. make.conf will define the variable for any make(1) operation while src.conf is only used for building/installing the world and kernel. (I'll admit that a namespace collision is very unlikely here, but I think it is just good practice to use src.conf for defining things only relevant to the OS.) --=20 R. Kevin Oberman, Network Engineer E-mail: kob6558@gmail.com