From owner-freebsd-current@FreeBSD.ORG Mon Nov 24 17:25:53 2003 Return-Path: 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 6BC2816A4CE for ; Mon, 24 Nov 2003 17:25:53 -0800 (PST) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5DF2243FE0 for ; Mon, 24 Nov 2003 17:25:52 -0800 (PST) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.9p2/8.12.9) with ESMTP id hAP1Pdlg027934; Mon, 24 Nov 2003 18:25:39 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Mon, 24 Nov 2003 18:25:21 -0700 (MST) Message-Id: <20031124.182521.58437627.imp@bsdimp.com> To: dnelson@allantgroup.com From: "M. Warner Losh" In-Reply-To: <20031125012208.GD46761@dan.emsphone.com> References: <16322.26365.159173.946033@grasshopper.cs.duke.edu> <200311251049.18227.doconnor@gsoft.com.au> <20031125012208.GD46761@dan.emsphone.com> X-Mailer: Mew version 2.1 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-current@freebsd.org cc: gallatin@cs.duke.edu Subject: Re: 40% slowdown with dynamic /bin/sh X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Nov 2003 01:25:53 -0000 In message: <20031125012208.GD46761@dan.emsphone.com> Dan Nelson writes: : In the last episode (Nov 25), Daniel O'Connor said: : > On Tuesday 25 November 2003 06:45, Andrew Gallatin wrote: : > > So.. forking a dynamic sh is roughly 40% more expensive than : > > forking a static copy of sh. This is embarrassing. : > > : > > I propose that we at least make /bin/sh static. (and not add a : > > /sbin/sh; if we must have a dynamic sh, import pdksh, or put a : > > dynamically linked sh in /usr/bin/sh). : > > : > > I'd greatly prefer that the the dynamic root default be backed out : > > until a substantial amount of this performance can be recovered. : > : > What _REAL WORLD_ task does this slow down? : : Try timing "cd /usr/ports/www/mozilla-devel ; make clean" with static : and dynamic /bin. bsd.port.mk spawns many many many /bin/sh processes. Maybe you could try it with both and tell us the actual difference in wall time? Warner