*BSD News Article 73886


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!lll-winken.llnl.gov!uwm.edu!spool.mu.edu!howland.reston.ans.net!EU.net!main.Germany.EU.net!fu-berlin.de!news.th-darmstadt.de!uni-erlangen.de!lrz-muenchen.de!news
From: Andi Kleen <andi@mlm.extern.lrz-muenchen.de>
Newsgroups: comp.os.linux.networking,comp.unix.bsd.freebsd.misc
Subject: Re: TCP latency
Date: 16 Jul 1996 11:05:24 +0200
Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
Lines: 39
Sender: andi@frob.mlm.extern.lrz-muenchen.de
Distribution: world
Message-ID: <m2zq50r2jv.fsf@frob.mlm.extern.lrz-muenchen.de>
References: <4paedl$4bm@engnews2.Eng.Sun.COM>
	<31E80933.41C67EA6@dyson.iquest.net> <4saf55$dl5@verdi.nethelp.no>
	<87k9w6g6u4.fsf@localhost.xs4all.nl> <DuLJ8v.819@kithrup.com>
	<31EB0590.167EB0E7@dyson.iquest.net>
NNTP-Posting-Host: frob.mlm.extern.lrz-muenchen.de
X-Newsreader: Gnus v5.2.34/Emacs 19.31
Xref: euryale.cc.adfa.oz.au comp.os.linux.networking:45388 comp.unix.bsd.freebsd.misc:23717

"John S. Dyson" <toor@dyson.iquest.net> writes:
> The results don't show a significant (micro-level) performance difference
> in general between the OSes.  The most suprising results are the shell
> fork/exec results.

Maybe that's because Linux uses bash as /bin/sh. FreeBSD uses a smaller
shell (some ash derivate I think) as /bin/sh. It would be interesting to
retest with ash as /bin/sh in Linux. 

It seems also that /bin/sh is statically linked on FreeBSD:

[FreeBSD 2.2 box:]

$ ldd /bin/sh 
ldd: /bin/sh: not a dynamic executable
$ size /bin/sh
text    data    bss     dec     hex
266240  12288   30136   308664  4b5b8
[ with C library linked in]


[ Redhat 3.0.3 Linux Kernel 2.0.1 box:]

% ldd /bin/sh
        libtermcap.so.2 => /lib/libtermcap.so.2.0.5
        libc.so.5 => /lib/libc.so.5.2.18
% size /bin/sh
text    data    bss     dec     hex     filename
222864  73931   4824    301619  49a33   /bin/sh
[that's without C library]

Given this facts I don't think the shell exec/fork results are
surprising. I think both FreeBSD and Linux are very good systems.

-Andi