From owner-freebsd-arch@FreeBSD.ORG Tue Jun 3 03:28:18 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 002D637B401 for ; Tue, 3 Jun 2003 03:28:17 -0700 (PDT) Received: from dire.bris.ac.uk (dire.bris.ac.uk [137.222.10.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01F1743F75 for ; Tue, 3 Jun 2003 03:28:17 -0700 (PDT) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk by dire.bris.ac.uk with SMTP-PRIV with ESMTP; Tue, 3 Jun 2003 11:28:09 +0100 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 3.16 #1) id 19N8zC-0005MC-00; Tue, 03 Jun 2003 11:25:46 +0100 Date: Tue, 3 Jun 2003 11:25:46 +0100 (BST) From: Jan Grant X-X-Sender: cmjg@mail.ilrt.bris.ac.uk To: Tim Kientzle In-Reply-To: <3EDBCDD2.1080900@acm.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: Jan Grant cc: arch cc: Dag-Erling Smorgrav Subject: Re: 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: Tue, 03 Jun 2003 10:28:18 -0000 On Mon, 2 Jun 2003, Tim Kientzle wrote: > Dag-Erling Smorgrav wrote: > > > Gordon Tetlow writes: > >>... my boot time ... went from 12 seconds with a static root to 15 > >>seconds with a dynamic root. > > > > Was /bin/sh dynamically linked? It shouldn't be. > > > Sorry, but /bin/sh calls 'getpwnam()', which means > /bin/sh should use NSS, and thus needs to be > dynamically linked. I don't think this reasoning is completely sound. A functional (but minimalist) static /bin/sh (or /sbin/sh) will still let you run /usr/local/bells-and-whistles/sh if you need ~user. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ Axioms speak louder than words.