From owner-freebsd-hackers Sat Apr 26 01:56:41 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id BAA12466 for hackers-outgoing; Sat, 26 Apr 1997 01:56:41 -0700 (PDT) Received: from fcggsg07.icg.tu-graz.ac.at (fcggsg07.icg.tu-graz.ac.at [129.27.201.16]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id BAA12461 for ; Sat, 26 Apr 1997 01:56:38 -0700 (PDT) Received: from lend.tu-graz.ac.at (isdn082.tu-graz.ac.at [129.27.240.82]) by fcggsg07.icg.tu-graz.ac.at (8.8.4/8.8.4) with ESMTP id KAA23246 for ; Sat, 26 Apr 1997 10:56:27 +0200 (MDT) Received: from localhost (lend.tu-graz.ac.at [127.0.0.1]) by lend.tu-graz.ac.at (8.8.5/8.8.5) with SMTP id KAA01060 for ; Sat, 26 Apr 1997 10:53:28 +0200 (CEST) Date: Sat, 26 Apr 1997 10:53:27 +0200 (CEST) From: Martin Kammerhofer Reply-To: Martin Kammerhofer To: freebsd-hackers@FreeBSD.ORG Subject: Re: What is the absolute minimum options for a kernel? (INET required) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Actually with a few '#ifdef INET' in /usr/src/sys/i386/i386/machdep.c you *can* get rid of INET. (Email me for a patch). I was curious how much one can strip down a kernel and still run it and ended up with: # /sys/compile/BARE # minimum kernel configuration ident BARE options MFS options MFS_ROOT=1 machine "i386" cpu "I386_CPU" cpu "I486_CPU" cpu "I586_CPU" cpu "I686_CPU" maxusers 8 config kernel root on wd0 controller isa0 # Mandatory, don't remove device npx0 at isa? port "IO_NPX" irq 13 vector npxintr Obviously MFS_ROOT has to be tuned, I've set it to 1K to see >size /bare text data bss dec hex 368640 32768 20960 422368 671e0 how much fat remains. (To do anything with it you may want to add some device drivers too). BTW, the V7 kernel (1979) was 40K only.