From owner-freebsd-current@FreeBSD.ORG Mon Nov 24 18:08:31 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 20D3E16A4CE for ; Mon, 24 Nov 2003 18:08:31 -0800 (PST) Received: from ussenterprise.ufp.org (ussenterprise.ufp.org [208.185.30.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 006BC43FF2 for ; Mon, 24 Nov 2003 18:08:30 -0800 (PST) (envelope-from bicknell@ussenterprise.ufp.org) Received: from ussenterprise.ufp.org (bicknell@localhost [127.0.0.1]) by ussenterprise.ufp.org (8.12.9/8.12.9) with ESMTP id hAP28TeC014980 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 24 Nov 2003 21:08:29 -0500 (EST) Received: (from bicknell@localhost) by ussenterprise.ufp.org (8.12.9/8.12.9/Submit) id hAP28TBQ014979 for freebsd-current@freebsd.org; Mon, 24 Nov 2003 21:08:29 -0500 (EST) Date: Mon, 24 Nov 2003 21:08:29 -0500 From: Leo Bicknell To: freebsd-current@freebsd.org Message-ID: <20031125020829.GA13783@ussenterprise.ufp.org> Mail-Followup-To: freebsd-current@freebsd.org References: <200311250106.hAP16qNp018512@realtime.exit.com> <200311251212.59933.doconnor@gsoft.com.au> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yrj/dFKFPuw6o+aM" Content-Disposition: inline In-Reply-To: <200311251212.59933.doconnor@gsoft.com.au> Organization: United Federation of Planets X-PGP-Key: http://www.ufp.org/~bicknell/ 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 02:08:31 -0000 X-List-Received-Date: Tue, 25 Nov 2003 02:08:31 -0000 --yrj/dFKFPuw6o+aM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In a message written on Tue, Nov 25, 2003 at 12:12:59PM +1030, Daniel O'Con= nor wrote: > If you have a file, web, mail, database, etc server it's predominant=20 > application is already dynamically linked. It just occured to me what bothers me about this line of thinking, since several people have brought it up. When I run kwrite, or Mozilla, or any number of other dynamic apps they are relatively long lived. My database loads (eg, pays the dynamic link penalty) once at startup. By contrast /bin/sh is run often. Process accounting can tell the story: % lastcomm | wc -l 47806 % lastcomm | sed -e 's/ .*.//' | sort | uniq -c | sort -nr | head 25281 sendmail 4094 sh 2987 perl 2846 inetd 1704 procmail 1640 httpd 1221 cron 814 date 732 postgres 648 rateup Looks like sh is the 2nd most frequently executed command on my system. It is 8.5% of all executed programs on this particular system. I think slowing down 8.5% of all the programs the system runs is important. I don't suggest I am representative, but for all those with process accounting turned on you have the commands above, check it out. > If you are deploying FreeBSD on servers you should build your own release= =20 > anyway (which is hardly an onerous task). What? Did you read what you wrote? It was a stand alone paragraph, I didn't take it out of context. People who use FreeBSD on servers should build their own release? That's so nutz I don't know where to start to attack it. I think I'll leave it to the third point from www.freebsd.org: ] FreeBSD makes an ideal Internet or Intranet server. It provides robust ] network services under the heaviest loads and uses memory efficiently to ] maintain good response times for thousands of simultaneous user ] processes. Visit our gallery for examples of FreeBSD powered ] applications and services. --=20 Leo Bicknell - bicknell@ufp.org - CCIE 3440 PGP keys at http://www.ufp.org/~bicknell/ Read TMBG List - tmbg-list-request@tmbg.org, www.tmbg.org --yrj/dFKFPuw6o+aM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE/wrmdNh6mMG5yMTYRAkPLAJ95/LYY6b1XYKVgtUMO5XTBO9JqYwCeLnTD nBeSN/gUto/vwSyke2Hw+1s= =Vf1o -----END PGP SIGNATURE----- --yrj/dFKFPuw6o+aM--