Re: 40% slowdown with dynamic /bin/sh

From: Clement Laforet <sheepkiller_at_cultdeadsheep.org>
Date: Tue, 25 Nov 2003 03:26:14 +0100
On Tue, 25 Nov 2003 12:14:23 +1030
"Daniel O'Connor" <doconnor_at_gsoft.com.au> wrote:

> > Try timing "cd /usr/ports/www/mozilla-devel ; make clean" with static
> > and dynamic /bin.  bsd.port.mk spawns many many many /bin/sh processes.
> 
> OK my bad, it will probably slow down the ports building.

you can use put SH=/rescue/sh in your make.conf if you think it can have an impact...

[root_at_lucifer|(501)| kde3]# ldd /bin/sh 
/bin/sh:
        libedit.so.4 => /lib/libedit.so.4 (0x28094000)
        libncurses.so.5 => /lib/libncurses.so.5 (0x280a9000)
        libc.so.5 => /lib/libc.so.5 (0x280e8000)
[root_at_lucifer|(502)| kde3]# ldd /rescue/sh
ldd: /rescue/sh: not a dynamic executable
[root_at_lucifer|(503)| kde3]# time make clean SH=/bin/sh
<snip output>
real    0m45.019s
user    0m20.657s
sys     0m18.339s
[root_at_lucifer|(504)| kde3]# time make clean SH=/rescue/sh
<snip output>
real    0m45.476s
user    0m20.892s
sys     0m18.131s
[root_at_lucifer|(505)| kde3]# uname -ar
FreeBSD lucifer.cultdeadsheep.org 5.2-BETA FreeBSD 5.2-BETA #0: Sat Nov 22 21:09:27 CET 2003     clement_at_lucifer.cultdeadsheep.org:/usr/obj/usr/src/sys/LUCIFER  i386

clem
Received on Mon Nov 24 2003 - 17:26:10 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:30 UTC