Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Apr 1996 11:28:32 +0200 (MET DST)
From:      grog@lemis.de (Greg Lehey)
To:        zgabor@CoDe.hu (Gabor Zahemszky)
Cc:        questions@allegro.lemis.de
Subject:   Re: Smallest kernel ?
Message-ID:  <199604300928.LAA00605@allegro.lemis.de>
In-Reply-To: <199604291208.MAA02545@CoDe.CoDe.hu> from "Gabor Zahemszky" at Apr 29, 96 12:08:15 pm

next in thread | previous in thread | raw e-mail | index | archive | help
Gabor Zahemszky writes:
>
>>
>>> Perhaps just for the fun of it, I was trying to figure out what could
>>> be the smallest kernel I could get for a diskless system.
>>> By removing most things I managed to a 544.319 bytes kernel
>>> (some 70KB are symbols), although this has FFS and no WD/FD driver.
>>> NFS instead of FFS requires 100KB more.
>>>
>>> I was wondering, is there some option (apart from gzip) which can
>>> be turned on to produce a smaller kernel ? Especially for NFS,
>>> perhaps the 100KB are for both client & server, UDP and TCP code ?
>>
>> Strip the symbols.
>
> Once, I read that striping the kernel is not a good solution,
> because some programs (who, ps, etc) cannot work after it.
> Isn't it true for FreeBSD?

You shouldn't strip all the symbols, just the debug symbols.  Use
strip -d, not strip -x.

Greg




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604300928.LAA00605>