From owner-freebsd-stable@FreeBSD.ORG Fri Nov 30 10:25: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 D03F6499 for ; Fri, 30 Nov 2012 10:25:17 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by mx1.freebsd.org (Postfix) with ESMTP id 54AA18FC13 for ; Fri, 30 Nov 2012 10:25:16 +0000 (UTC) Received: by mail-wi0-f180.google.com with SMTP id hj13so129251wib.13 for ; Fri, 30 Nov 2012 02:25:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=jgBoU7woLunJX9C/w8c2tOeJkGXR4bzdbrvo12rpQ7E=; b=b0HZ/M6qv1bFu/iZ4Nc9yqkzD9ONYsIxPr6Jvv9Fb4FgAzJi0F39R26/HzjllE4/gS +ftV3eGd/EyTniYau7BHsko5mkeBcmxZ8XFugDIGnLZ6MSz5hSxp826d2vyIAuWHwMiT vEoA29TiU34oFHZjWZPi+PV64ZheHI167FFnBzOPPrExOMCgPPvk8P4kB9oiyWB4HQBj Ycq/JfkVAPMXbt0I496VVmE7jBo0x/6Ffp3VDosqe/xoNOZeoRKA4GltTR9eFUGkfoIA QBnu/lxruhVVW91aUUkyjiGAdeY/mxQefryAzednQBLrpm4Y4veaiykHn1umUo3p61Zg SRSA== Received: by 10.180.80.201 with SMTP id t9mr1247473wix.0.1354271115580; Fri, 30 Nov 2012 02:25:15 -0800 (PST) Received: from dfleuriot-at-hi-media.com ([83.167.62.196]) by mx.google.com with ESMTPS id y3sm14667654wix.6.2012.11.30.02.25.13 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 30 Nov 2012 02:25:14 -0800 (PST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: How to clean up / From: Fleuriot Damien In-Reply-To: <50B8758C.2070202@dssgmbh.de> Date: Fri, 30 Nov 2012 11:25:13 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <129391C5-DBD1-4E14-9834-0CEC8713C05E@my.gd> References: <1354239860.19647.8.camel@eva02> <2A4F276A-B95D-4D03-86F4-0A7C5A06B9A9@gsoft.com.au> <50B8758C.2070202@dssgmbh.de> To: Alfred Bartsch X-Mailer: Apple Mail (2.1499) X-Gm-Message-State: ALoCoQnZjCT0hdROqvD7T4/8KOgGHObCSZ2n3SK5pcO92NaTo6WfMXOVw7/tnW2lJ0U+rePGn3aG 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 10:25:17 -0000 On Nov 30, 2012, at 9:59 AM, Alfred Bartsch wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 >=20 > Am 30.11.2012 08:16, schrieb Kevin Oberman: >> On Thu, Nov 29, 2012 at 8:46 PM, Daniel O'Connor >> wrote: >>>=20 >>> On 30/11/2012, at 12:14, mbsd wrote: >>>> =CE=9E ~ =E2=86=92 du -sh /boot/kernel 59M kernel >>>>=20 >>>> Try to recompile your kernel without debug. >>>=20 >>> Or delete /boot/kernel/*.symbols. >=20 > You may suppress the installation of the *.symbols files by inserting > the following statement into /etc/make.conf: >=20 > # prevent installation of "*.symbols" in /boot/kernel > INSTALL_NODEBUG=3D 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=3Dgeom/geom_label if_lagg if_vlan linprocfs linsysfs = linux mfi/mfi_linux