40% slowdown with dynamic /bin/sh

Clement Laforet sheepkiller at cultdeadsheep.org
Mon Nov 24 18:26:10 PST 2003

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 
        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


More information about the freebsd-current mailing list