From owner-freebsd-questions Tue Apr 30 02:36:15 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id CAA23439 for questions-outgoing; Tue, 30 Apr 1996 02:36:15 -0700 (PDT) Received: from mail.barrnet.net (mail.barrnet.net [131.119.246.7]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id CAA23434 for ; Tue, 30 Apr 1996 02:36:04 -0700 (PDT) Received: from diablo.ppp.de (diablo.ppp.de [193.141.101.34]) by mail.barrnet.net (8.7.5/MAIL-RELAY-LEN) with SMTP id CAA07696 for ; Tue, 30 Apr 1996 02:36:02 -0700 (PDT) Received: from allegro.lemis.de by diablo.ppp.de with smtp (Smail3.1.28.1 #1) id m0uEBk6-000QYJC; Tue, 30 Apr 96 11:29 MET DST From: grog@lemis.de (Greg Lehey) Organisation: LEMIS, Schellnhausen 2, 36325 Feldatal, Germany Phone: +49-6637-919123 Fax: +49-6637-919122 Received: (grog@localhost) by allegro.lemis.de (8.6.9/8.6.9) id LAA00605 for questions@FreeBSD.org; Tue, 30 Apr 1996 11:28:59 +0200 Message-Id: <199604300928.LAA00605@allegro.lemis.de> Subject: Re: Smallest kernel ? To: zgabor@CoDe.hu (Gabor Zahemszky) Date: Tue, 30 Apr 1996 11:28:32 +0200 (MET DST) Cc: questions@allegro.lemis.de In-Reply-To: <199604291208.MAA02545@CoDe.CoDe.hu> from "Gabor Zahemszky" at Apr 29, 96 12:08:15 pm X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk 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