*BSD News Article 73788


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!news.kei.com!news.mathworks.com!uunet!in2.uu.net!zdc!zdc-e!szdc-e!news
From: "John S. Dyson" <toor@dyson.iquest.net>
Newsgroups: comp.os.linux.networking,comp.unix.bsd.freebsd.misc
Subject: Re: TCP latency
Date: Mon, 15 Jul 1996 21:59:28 -0500
Organization: John S. Dyson's home machine
Lines: 33
Message-ID: <31EB0590.167EB0E7@dyson.iquest.net>
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>
NNTP-Posting-Host: dyson.iquest.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 3.0b5aGold (X11; I; FreeBSD 2.2-CURRENT i386)
Xref: euryale.cc.adfa.oz.au comp.os.linux.networking:45330 comp.unix.bsd.freebsd.misc:23670

Sean Eric Fagan wrote:
> 
> The mmap latency is surprisingly better in FreeBSD than linux.  I am pretty
> impressed with that.
> 
I am suprised by that also.

> 
> Even with FreeBSD's rewritten pipe interface, it's still twice as slow as
> Linux.  That's interesting.  The TCP numbers (for localhost!) are close
> enough that I don't think it matters much.
>
Our new pipe code mostly improved the pipe bandwidth, but still also
improved the latency.
 
> >Host                 OS Pipe  TCP  File   Mmap  Bcopy  Bcopy  Mem   Mem
> >                                  reread reread (libc) (hand) read write
> >--------- ------------- ---- ---- ------ ------ ------ ------ ---- -----
> >plm        Linux 1.3.99   24  8.1   25.4   41.7     26     25   49    46
> >plm.xs4al FreeBSD 2.2-C   25  9.0   27.9   39.6     26     25   49    45
>
There is new code in FreeBSD that I committed just a few days ago that
is perhaps a few percent faster yet, so not precisely sure about the
version against this test being run (I *think* that I have committed
it.) :-).

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.

John