From owner-freebsd-small Fri Jun 30 9:11:58 2000 Delivered-To: freebsd-small@freebsd.org Received: from info.iet.unipi.it (info.iet.unipi.it [131.114.9.184]) by hub.freebsd.org (Postfix) with ESMTP id D1FE637B986 for ; Fri, 30 Jun 2000 09:11:54 -0700 (PDT) (envelope-from luigi@info.iet.unipi.it) Received: (from luigi@localhost) by info.iet.unipi.it (8.9.3/8.9.3) id SAA51979; Fri, 30 Jun 2000 18:12:54 +0200 (CEST) (envelope-from luigi) From: Luigi Rizzo Message-Id: <200006301612.SAA51979@info.iet.unipi.it> Subject: Re: Optimise for space -Os In-Reply-To: <200006301604.KAA42085@harmony.village.org> from Warner Losh at "Jun 30, 2000 10:04:53 am" To: Warner Losh Date: Fri, 30 Jun 2000 18:12:54 +0200 (CEST) Cc: Doug White , Roger Hardiman , small@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-small@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > In message <200006301558.RAA51887@info.iet.unipi.it> Luigi Rizzo writes: > : mumble... this is not my figure. I think it is more in the range of 70KB > : when you remove the forth stuff from the loader and the associated > : config files. > > Right now /boot/loader is 159k, plus another 7k for the loader.conf > file and 5k for theloader.4th file and 12k for the loader.help file > and 25k for the support.4th, so that's more like 208k. But I don't > know how PicoBSD does this in 4.x. On 3.4 (and the same is in 4.x i think) i removed the forth stuff from the loader, and then you don't need all the config files, just a 3-4 line thing (same as Greg did) to load kernel mfsroot and then boot. So i have > ls -l /boot/loader -r-xr-xr-x 1 root wheel 131072 Dec 30 1999 /boot/loader > (cd /usr/src/release/picobsd/build; ls -l /loader ) -rwxr-xr-x 1 root luigi 53754 Jun 14 17:37 loader (with the second one being used in the picobsd disk). Assuming the 20% bloat in 4.0 there you are with 70KB (and i suppose some of the size increase in 4.x is due to more functionalities put into the forth stuff). cheers luigi -----------------------------------+------------------------------------- Luigi RIZZO, luigi@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL/FAX: +39-050-568.533/522 . via Diotisalvi 2, 56126 PISA (Italy) Mobile +39-347-0373137 -----------------------------------+------------------------------------- > Warner > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-small" in the body of the message