From owner-freebsd-arch@FreeBSD.ORG Mon Jun 2 10:19:52 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 528E637B404 for ; Mon, 2 Jun 2003 10:19:52 -0700 (PDT) Received: from ns1.gnf.org (ns1.gnf.org [63.196.132.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9587843FAF for ; Mon, 2 Jun 2003 10:19:48 -0700 (PDT) (envelope-from gtetlow@gnf.org) Received: from EXCHCLUSTER01.lj.gnf.org (exch01.lj.gnf.org [172.25.10.19]) by ns1.gnf.org (8.12.8p1/8.12.8) with ESMTP id h52HJltF091986 for ; Mon, 2 Jun 2003 10:19:47 -0700 (PDT) (envelope-from gtetlow@gnf.org) Received: from roark.gnf.org ([172.25.24.15]) by EXCHCLUSTER01.lj.gnf.org with Microsoft SMTPSVC(5.0.2195.5329); Mon, 2 Jun 2003 10:19:43 -0700 Received: from roark.gnf.org (localhost [127.0.0.1]) by roark.gnf.org (8.12.9/8.12.9) with ESMTP id h52HJhjX018462; Mon, 2 Jun 2003 10:19:43 -0700 (PDT) (envelope-from gtetlow@gnf.org) Received: (from gtetlow@localhost) by roark.gnf.org (8.12.9/8.12.9/Submit) id h52HJgXx018461; Mon, 2 Jun 2003 10:19:42 -0700 (PDT) (envelope-from gtetlow) Date: Mon, 2 Jun 2003 10:19:42 -0700 From: Gordon Tetlow To: arch@FreeBSD.org Message-ID: <20030602171942.GA87863@roark.gnf.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/ke75lzkNdJ8e8mR" Content-Disposition: inline User-Agent: Mutt/1.4i X-Habeas-SWE-1: winter into spring X-Habeas-SWE-2: brightly anticipated X-Habeas-SWE-3: like Habeas SWE (tm) X-Habeas-SWE-4: Copyright 2002 Habeas (tm) X-Habeas-SWE-5: Sender Warranted Email (SWE) (tm). The sender of this X-Habeas-SWE-6: email in exchange for a license for this Habeas X-Habeas-SWE-7: warrant mark warrants that this is a Habeas Compliant X-Habeas-SWE-8: Message (HCM) and not spam. Please report use of this X-Habeas-SWE-9: mark in spam to . X-OriginalArrivalTime: 02 Jun 2003 17:19:43.0381 (UTC) FILETIME=[2859C450:01C3292B] cc: Tim Kientzle Subject: Making a dynamically-linked root X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jun 2003 17:19:52 -0000 --/ke75lzkNdJ8e8mR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I'm planning on making a dynamically-linked root partition by 5.2. To that end, I'm planning on doing to the following: Integrate Tim Kientzle's /rescue patches into the tree Create /lib and populate with all the libs needed to support dynamically linked binaries in /bin and /sbin Have a big (probably NO_DYNAMIC_ROOT) knob to switch from static to dynamic. There will be a performance hit associated with this. I did a quick measurement at boot and my boot time (from invocation of /etc/rc to the login prompt) went from 12 seconds with a static root to 15 seconds with a dynamic root. I have yet to perform a worldstone on it. The reason to do this is two-fold. One is to give better support for PAM and NSS in the base system. The second is to save some disk space. Currently (on my x86 box), /bin and /sbin are 32 MB. With a dynamically linked root (and some pruning of some binaries), the /bin, /lib, and /sbin come out to 6.1 MB. This should be great for people with 2.x and 3.x era root partitions that are only about 50 MB. My preliminary patches are at http://people.freebsd.org/~gordon/patches/dynamic.patch.small They are a bit rough, but I'm working on finishing up the work and integrating it after 5.1 is released. -gordon --/ke75lzkNdJ8e8mR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+24cuRu2t9DV9ZfsRAiQfAKDDJ8wPIaBEGiACn+ZmuNYVMkrLYQCeOrPX 5aL7ZVISUxOKNmIeJ4qWCjM= =r6oJ -----END PGP SIGNATURE----- --/ke75lzkNdJ8e8mR--