Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Nov 2003 00:23:20 -0500
From:      Michael Edenfield <kutulu@kutulu.org>
To:        "boyd, rounin" <boyd@insultant.net>
Cc:        freebsd-current@freebsd.org
Subject:   Re: 40% slowdown with dynamic /bin/sh
Message-ID:  <20031126052320.GH15294@wombat.localnet>
In-Reply-To: <00a701c3b33c$f798c5e0$b9844051@insultant.net>
References:  <200311251214.23290.doconnor@gsoft.com.au> <00a701c3b33c$f798c5e0$b9844051@insultant.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--MP5ln1Rcf9Bvi+ZW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

* boyd, rounin <boyd@insultant.net> [031125 05:16]:
> i see that there some doubt about whether running lots of
> shell scripts ever happens.  what happens when you
> use make?  lots of shells get run and they run small
> (one line?) scripts.

Just to provide some real-world numbers, here's what I got out of a
buildworld:

Static /bin/sh:
  real    385m29.977s
  user    111m58.508s
  sys     93m14.450s

Dynamic /bin/sh:
  real    455m44.852s
  user    113m17.807s
  sys     103m16.509s

The dynamic /bin/sh caused just over an 18% performance hit on the make
process, everything else being equal (the rest of my / is dynamically
linked).  It may seem like a pretty large performance hit, but to my the
difference between a 6-hour and a 7-hour world build is just an extra
hour of Quake :\

--Mike


--MP5ln1Rcf9Bvi+ZW
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/xDjHCczNhKRsh48RAupFAJ0bRrGV3L98HDi0+5WC7umwkwKKHgCeLAfs
EYwQAMK/we1VT01UIZNhK24=
=9512
-----END PGP SIGNATURE-----

--MP5ln1Rcf9Bvi+ZW--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031126052320.GH15294>