From owner-freebsd-current@FreeBSD.ORG Mon Nov 24 16:19:36 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 C1A0316A4CE for ; Mon, 24 Nov 2003 16:19:36 -0800 (PST) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id CEAE143FB1 for ; Mon, 24 Nov 2003 16:19:34 -0800 (PST) (envelope-from doconnor@gsoft.com.au) Received: from localhost (localhost [127.0.0.1]) by cain.gsoft.com.au (8.12.9/8.12.8) with ESMTP id hAP0JIhk052007; Tue, 25 Nov 2003 10:49:22 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-current@freebsd.org, Andrew Gallatin Date: Tue, 25 Nov 2003 10:49:18 +1030 User-Agent: KMail/1.5.3 References: <16322.26365.159173.946033@grasshopper.cs.duke.edu> In-Reply-To: <16322.26365.159173.946033@grasshopper.cs.duke.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200311251049.18227.doconnor@gsoft.com.au> X-Spam-Score: -4.4 () CARRIAGE_RETURNS,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_KMAIL X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) 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 00:19:36 -0000 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? My production systems don't spin in infinite loops spawning shell processes which die straight away. If yours do, well.. curious, but I hardly think it is of relevance to most users of FreeBSD. If it is for you then just build your world with static root. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 9A8C 569F 685A D928 5140 AE4B 319B 41F4 5D17 FDD5