From owner-freebsd-small Sun Jan 13 11: 4:11 2002 Delivered-To: freebsd-small@freebsd.org Received: from D00015.dialonly.kemerovo.su (www2.svzserv.kemerovo.su [213.184.65.86]) by hub.freebsd.org (Postfix) with ESMTP id D7CF337B400 for ; Sun, 13 Jan 2002 11:04:01 -0800 (PST) Received: (from eugen@localhost) by D00015.dialonly.kemerovo.su (8.11.6/8.11.6) id g0DJ36M05987 for small@freebsd.org; Mon, 14 Jan 2002 02:03:06 +0700 (KRAT) (envelope-from eugen) Date: Mon, 14 Jan 2002 02:03:06 +0700 From: Eugene Grosbein To: small@freebsd.org Subject: Small FreeBSD but not crunched Message-ID: <20020114020306.A5954@grosbein.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi! While PicoBSD is really great for tiny applications like 1.44M floppies, it's sometimes desirable to have generic but small installation. Sysinstall can fit minimal system to 200Mb HDD/8Mb RAM and system will work smoothly. Sometimes I need more. For example, using <150Mb HDD and <8Mb RAM. It is possible to install small world using /etc/make.conf's features line NO_SENDMAIL=true etc. I can make ~67Mb world with 4.5RC1 and it can be easily stripped to <50Mb by removing static libs etc. Very good. The last question is kernel size. F.e., I need HDD, sio ports and kernel level ppp for PPP-only networking system. There is not problem with 8Mb RAM but it's very hard if I have 4Mb only. Minimal kernel I could built still takes >2Mb of RAM. The system can boot to multiuser if it has some swap space but it swaps heavily even when there are only 4-5 processes running. So the question is: how can I reduce kernel (and kernel memory), are there some 'hidden' options not mentioned in LINT? Using 2.2.x is not an option when I need dummynet with WF2Q. Here is a smallest configuration I could reach. It still takes more than 2Mb for kernel memory. machine i386 cpu I686_CPU ident EP maxusers 4 options MAXMEM=4*1024 # that's for testing on developer's # machine options INET options FFS options FFS_ROOT options COMPAT_43 device isa0 # developer has "small" installation on the second hard drive device ata1 at isa? port IO_WD2 irq 15 device ata device atadisk options ATA_STATIC_ID device atkbdc0 at isa? port IO_KBD flags 0x01 device atkbd0 at atkbdc? irq 1 # try to reduce vga and syscons drivers device vga0 at isa? port ? options VGA_NO_MODE_CHANGE device sc0 at isa? options SC_NO_CUTPASTE options SC_NO_SYSMOUSE options SC_NO_FONT_LOADING options SC_NO_HISTORY options MAXCONS=2 device npx0 at nexus? port IO_NPX irq 13 device sio0 at isa? port IO_COM1 flags 0x10 irq 4 device sio1 at isa? port IO_COM2 irq 3 pseudo-device loop pseudo-device ppp 2 pseudo-device pty #EOF Eugene Grosbein To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message