Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Dec 2012 14:45:15 -0800
From:      Kevin Oberman <kob6558@gmail.com>
To:        Johannes Totz <johannes@jo-t.de>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: How to clean up /
Message-ID:  <CAN6yY1sONUNsuhcDM48Gqd=gVkcJJAAG0rx13KgBEE_4P-r0-A@mail.gmail.com>
In-Reply-To: <k9j6si$jg4$1@ger.gmane.org>
References:  <A802184434754A128800ECE0A900127B@CMOTUM25PC> <1354239860.19647.8.camel@eva02> <2A4F276A-B95D-4D03-86F4-0A7C5A06B9A9@gsoft.com.au> <CAN6yY1uwcUJi3Y4O=gJvf-e5obkgvzV3nn8HoCF54r0KvEzc9w@mail.gmail.com> <50B8758C.2070202@dssgmbh.de> <129391C5-DBD1-4E14-9834-0CEC8713C05E@my.gd> <k9j6si$jg4$1@ger.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Dec 3, 2012 at 1:51 PM, Johannes Totz <johannes@jo-t.de> wrote:
> On 30/11/2012 10:25, Fleuriot Damien wrote:
>>
>>
>> On Nov 30, 2012, at 9:59 AM, Alfred Bartsch <bartsch@dssgmbh.de> 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
>>>> <doconnor@gsoft.com.au> wrote:
>>>>>
>>>>>
>>>>> On 30/11/2012, at 12:14, mbsd <mbsd@isgroup.com.ua> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1sONUNsuhcDM48Gqd=gVkcJJAAG0rx13KgBEE_4P-r0-A>