From owner-freebsd-current@FreeBSD.ORG Mon Nov 24 19:05:38 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 22C8916A4CE for ; Mon, 24 Nov 2003 19:05:38 -0800 (PST) Received: from speicher.org (speicher.org [208.199.76.238]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEFEB43FE0 for ; Mon, 24 Nov 2003 19:05:36 -0800 (PST) (envelope-from geoff@speicher.org) Received: from speicher.org (localhost [127.0.0.1]) by speicher.org (8.12.10/8.12.10) with ESMTP id hAP35UDR001861 for ; Mon, 24 Nov 2003 22:05:30 -0500 (EST) (envelope-from geoff@speicher.org) Received: (from geoff@localhost) by speicher.org (8.12.10/8.12.10/Submit) id hAP35PIx001860 for freebsd-current@freebsd.org; Mon, 24 Nov 2003 22:05:25 -0500 (EST) (envelope-from geoff) Date: Mon, 24 Nov 2003 22:05:25 -0500 From: Geoff Speicher To: freebsd-current@freebsd.org Message-ID: <20031125030525.GA1768@sirius.speicher.org> References: <16322.26365.159173.946033@grasshopper.cs.duke.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16322.26365.159173.946033@grasshopper.cs.duke.edu> User-Agent: Mutt/1.4.1i 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 03:05:38 -0000 X-List-Received-Date: Tue, 25 Nov 2003 03:05:38 -0000 On Mon, Nov 24, 2003 at 03:15:57PM -0500, Andrew Gallatin wrote: > > % /usr/bin/time ./harness.sh ./sh.dynamic 100 > 1.60 real 0.21 user 1.18 sys > > % ./harness.sh ./sh.static 100 > 1.12 real 0.08 user 0.87 sys > > So.. forking a dynamic sh is roughly 40% more expensive than > forking a static copy of sh. This is embarrassing. All this noise because, for every 1,000 invocations of dynamic /bin/sh, you have to wait nearly an extra 5 seconds. Truly embarrassing, indeed. Totally unacceptable for a BETA release. We all could have collectively spawned millions of dynamic shells in the time that it has taken to compile this thread. But we didn't. Can't be all that important, can it? :) Geoff