From owner-freebsd-current@FreeBSD.ORG Tue Nov 25 21:53: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 431A116A4CE for ; Tue, 25 Nov 2003 21:53:36 -0800 (PST) Received: from tx2.oucs.ox.ac.uk (tx2.oucs.ox.ac.uk [163.1.2.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id BABD743FA3 for ; Tue, 25 Nov 2003 21:53:34 -0800 (PST) (envelope-from colin.percival@wadham.ox.ac.uk) Received: from scan2.oucs.ox.ac.uk ([163.1.2.162] helo=localhost) by tx2.oucs.ox.ac.uk with esmtp (Exim 4.20) id 1AOscH-0007pa-MG for freebsd-current@freebsd.org; Wed, 26 Nov 2003 05:53:33 +0000 Received: from rx2.oucs.ox.ac.uk ([163.1.2.161]) by localhost (scan2.oucs.ox.ac.uk [163.1.2.162]) (amavisd-new, port 25) with ESMTP id 29670-09 for ; Wed, 26 Nov 2003 05:53:33 +0000 (GMT) Received: from gateway.wadham.ox.ac.uk ([163.1.161.253]) by rx2.oucs.ox.ac.uk with smtp (Exim 4.20) id 1AOscH-0007pX-8s for freebsd-current@freebsd.org; Wed, 26 Nov 2003 05:53:33 +0000 Received: (qmail 1719 invoked by uid 0); 26 Nov 2003 05:53:33 -0000 Received: from colin.percival@wadham.ox.ac.uk by gateway by uid 71 with qmail-scanner-1.16 (sweep: 2.14/3.71. spamassassin: 2.53. Clear:. Processed in 1.498479 secs); 26 Nov 2003 05:53:33 -0000 X-Qmail-Scanner-Mail-From: colin.percival@wadham.ox.ac.uk via gateway X-Qmail-Scanner: 1.16 (Clear:. Processed in 1.498479 secs) Received: from dhcp1131.wadham.ox.ac.uk (HELO piii600.wadham.ox.ac.uk) (163.1.161.131) by gateway.wadham.ox.ac.uk with SMTP; 26 Nov 2003 05:53:32 -0000 Message-Id: <5.0.2.1.1.20031126054607.02e7f148@popserver.sfu.ca> X-Sender: cperciva@popserver.sfu.ca X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Wed, 26 Nov 2003 05:53:30 +0000 To: Michael Edenfield , "boyd, rounin" From: Colin Percival In-Reply-To: <20031126052320.GH15294@wombat.localnet> References: <00a701c3b33c$f798c5e0$b9844051@insultant.net> <200311251214.23290.doconnor@gsoft.com.au> <00a701c3b33c$f798c5e0$b9844051@insultant.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed cc: freebsd-current@freebsd.org 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: Wed, 26 Nov 2003 05:53:36 -0000 At 00:23 26/11/2003 -0500, Michael Edenfield wrote: >Static /bin/sh: > real 385m29.977s > user 111m58.508s > sys 93m14.450s > >Dynamic /bin/sh: > real 455m44.852s > user 113m17.807s > sys 103m16.509s Given that user+sys << real in both cases, it looks like you're running out of memory; it's not surprising that dynamic linking has an increased cost in such circumstances, since reading the diverse files into memory will take longer than reading a single static binary. I doubt many systems will experience this sort of performance delta. Colin Percival