From owner-freebsd-arch@FreeBSD.ORG Mon Jun 2 23:31:16 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 33DF437B401 for ; Mon, 2 Jun 2003 23:31:16 -0700 (PDT) Received: from pop015.verizon.net (pop015pub.verizon.net [206.46.170.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5987B43FA3 for ; Mon, 2 Jun 2003 23:31:15 -0700 (PDT) (envelope-from mtm@identd.net) Received: from kokeb.ambesa.net ([138.88.0.86]) by pop015.verizon.net (InterMail vM.5.01.05.33 201-253-122-126-133-20030313) with ESMTP id <20030603063114.CBRK20810.pop015.verizon.net@kokeb.ambesa.net>; Tue, 3 Jun 2003 01:31:14 -0500 Date: Tue, 3 Jun 2003 02:31:13 -0400 From: Mike Makonnen To: Gordon Tetlow In-Reply-To: <20030602201337.GD87863@roark.gnf.org> References: <20030602171942.GA87863@roark.gnf.org> <16091.44150.539095.704531@grasshopper.cs.duke.edu> <20030602201337.GD87863@roark.gnf.org> X-Mailer: Sylpheed version 0.8.10 (GTK+ 1.2.10; i386-portbld-freebsd5.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH at pop015.verizon.net from [138.88.0.86] at Tue, 3 Jun 2003 01:31:14 -0500 Message-Id: <20030603063114.CBRK20810.pop015.verizon.net@kokeb.ambesa.net> cc: arch@freebsd.org 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 06:31:16 -0000 On Mon, 2 Jun 2003 13:13:37 -0700 Gordon Tetlow wrote: > On Mon, Jun 02, 2003 at 03:58:46PM -0400, Andrew Gallatin wrote: > > > > Wow! That's a 25% pessimization. I'm afraid that other heavily > > scripted and or fork intensive environments may fair just as poorly > > (dynamic web content, SMTP servers, etc) as the startup scripts. > > You need to realize that with the advent of rcNG that their are alot > of additional shell invocations. Also bear in mind that your dynamic > web content and SMTP servers are already going to be dynamically linked. > In fact, the thing that will be hardest hit will be the boot scripts. Gordon, Here's a patch that goes through the most often used portions of rc.d and uses absolute pathnames for commands as well as substite the shell builtin function, test instead of [ ... ]. It shaved 6 seconds off my boot of a statically linked root on an AMD K6-333. Cheers. -- Mike Makonnen | GPG-KEY: http://www.identd.net/~mtm/mtm.asc mtm@identd.net | D228 1A6F C64E 120A A1C9 A3AA DAE1 E2AF DBCC 68B9 mtm@FreeBSD.Org| FreeBSD - The Power To Serve