*BSD News Article 73735


Return to BSD News archive

Newsgroups: comp.os.linux.networking,comp.unix.bsd.freebsd.misc
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!nntp.coast.net!news.kei.com!news.texas.net!news.sprintlink.net!news-fw-6.sprintlink.net!server1.nw.ixe.net!server1.adam.ixe.net!wirehub!news.euro.net!xs4all!plm.xs4all.nl!plm
From: Peter Mutsaers <plm@xs4all.nl>
Subject: Re: TCP latency
X-Newsreader: Gnus v5.2.26/Emacs 19.31
Sender: plm@localhost.xs4all.nl
Organization: My Unorganized Home
Lines: 47
Message-ID: <87k9w6g6u4.fsf@localhost.xs4all.nl>
References: <4paedl$4bm@engnews2.Eng.Sun.COM>
	<31E106AF.41C67EA6@dyson.iquest.net> <4rvmtf$ven@linux.cs.Helsinki.FI>
	<31E3D9E2.41C67EA6@dyson.iquest.net> <4s5bl2$qpg@linux.cs.Helsinki.FI>
	<31E664EB.167EB0E7@inuxs.att.com> <4s67sk$oa9@fido.asd.sgi.com>
	<31E6B8AB.3E6C@indy.celebration.net> <4s7j2r$blf@fido.asd.sgi.com>
	<31E7BD6F.167EB0E7@dyson.iquest.net> <4s8sau$jsh@fido.asd.sgi.com>
	<31E80933.41C67EA6@dyson.iquest.net> <4saf55$dl5@verdi.nethelp.no>
Date: Sun, 14 Jul 1996 16:03:47 GMT
Xref: euryale.cc.adfa.oz.au comp.os.linux.networking:45206 comp.unix.bsd.freebsd.misc:23572

I just measured lmbench on my machine with both FreeBSD and Linux
(both current). It is a P90 with 48M.


                    L M B E N C H  1 . 0   S U M M A R Y
                    ------------------------------------

            Processor, Processes - times in microseconds
            --------------------------------------------
Host                 OS  Mhz    Null    Null  Simple /bin/sh Mmap 2-proc 8-proc
                             Syscall Process Process Process  lat  ctxsw  ctxsw
--------- ------------- ---- ------- ------- ------- ------- ---- ------ ------
plm        Linux 1.3.99   90       4    2.1K   11.5K     53K  404     14     19
plm.xs4al FreeBSD 2.2-C   90      15    2.9K   13.6K     23K  102     37     45

            *Local* Communication latencies in microseconds
            -----------------------------------------------
Host                 OS  Pipe       UDP    RPC/     TCP    RPC/
                                            UDP             TCP
--------- ------------- ------- ------- ------- ------- -------
plm        Linux 1.3.99      51     260     624     400     786
plm.xs4al FreeBSD 2.2-C     108     344     622     409     784

            *Local* Communication bandwidths in megabytes/second
            ----------------------------------------------------
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

	    Memory latencies in nanoseconds
            (WARNING - may not be correct, check graphs)
            --------------------------------------------
Host                 OS   Mhz  L1 $   L2 $    Main mem    TLB    Guesses
--------- -------------   ---  ----   ----    --------    ---    -------
plm        Linux 1.3.99    90    11    243         426    918
plm.xs4al FreeBSD 2.2-C    89    11    204         428    925


Most things don't differ much. Only a /bin/sh process and mmap lat. is
much faster on FreeBSD, while some communication latencies and context
switches are fater on Linux.

Note however that FreeBSD currently is built with gcc 2.6.3; soon this
will be 2.7.2, which has some better optimizations. I'll repeat the
test again, then.
-- 
______________________________________________________________________
Peter Mutsaers       |  Abcoude (Utrecht), |     "Memento Mori"
plm@xs4all.nl        |  the Netherlands    |