From owner-freebsd-current Fri Nov 1 0:55:31 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB09037B401 for ; Fri, 1 Nov 2002 00:55:30 -0800 (PST) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id DAED643E91 for ; Fri, 1 Nov 2002 00:55:26 -0800 (PST) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.3/8.12.3) with ESMTP id gA18tEpk058913; Fri, 1 Nov 2002 01:55:15 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Fri, 01 Nov 2002 01:54:27 -0700 (MST) Message-Id: <20021101.015427.98069662.imp@bsdimp.com> To: morganw@chemikals.org Cc: kientzle@acm.org, current@FreeBSD.ORG Subject: Re: libc size From: "M. Warner Losh" In-Reply-To: <20021031140542.W86715-100000@volatile.chemikals.org> References: <3DC17C7F.9020308@acm.org> <20021031140542.W86715-100000@volatile.chemikals.org> X-Mailer: Mew version 2.1 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message: <20021031140542.W86715-100000@volatile.chemikals.org> Wesley Morgan writes: : And of course the "answer" to that is to create a /lib. Something that I : would *never ever* want to see. Sure, a few people might throw around the : idea of an extremely light-weight set of libraries to go into /lib blah : blah. But I just don't like the idea. Why not create a minimalist C : library, build with -nostdlib and staticly link against exactly what you : need. : : I usually create a 128 or 64mb root, and the only time this gets "tight" : is when I keep too many kernels around in /boot. I seem to recall other : arguments being settled by the "disk space is extremely cheap" issue. : : Call me crazy, but FreeBSD just has this "zen" feeling to it, and making : this kind of change doesnt feel very zennish. I'm sure there are greater : minds than mine working over this issue, but thats my $0.02. Actually, NetBSD has done exactly that (created a /lib). They found that putting only the libraries necessary for boot in there that they were able to save aboue 10M on the size of /, even after one creates a few static binaries in /something-like-recover. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message