From owner-freebsd-performance@FreeBSD.ORG Fri Oct 16 12:29:31 2009 Return-Path: Delivered-To: freebsd-performance@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87C291065692 for ; Fri, 16 Oct 2009 12:29:31 +0000 (UTC) (envelope-from leccine@gmail.com) Received: from mail-fx0-f210.google.com (mail-fx0-f210.google.com [209.85.220.210]) by mx1.freebsd.org (Postfix) with ESMTP id BF0218FC21 for ; Fri, 16 Oct 2009 12:29:30 +0000 (UTC) Received: by fxm6 with SMTP id 6so2289107fxm.43 for ; Fri, 16 Oct 2009 05:29:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=TRTLpVoduer90gE8D2J5Sb1JVWR+nT377Oodw0HLlRA=; b=cdHlhWnechOTMJLsN3J8bjpYA3UTGG893HdVjuRRkATZ6sl5lOBNue1ggtmHKceF++ 9VIT+C0ckH9e6a4clqWRNrEVGT1ATNKKVK3iaf3PfExubbmO3ILroJnQxpcq/6kofTPb I0CXufAqA6lnmq1wTquM9Ufgh5N+bAawRm/80= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=QYpJRQXmclSPNppPJOSU9F+vV2hYBvF3PW0CSwmgPB4nU1McI1L0O02juzLkApEahB S40w/ERtfNAL5MTLPH8IEib9Wnku/EOPmxOQuQ4MwbDfIM6s9/E3NU5hu6VO2FWgoAUN ZUJpK4G/s+C6yROYlDWDEfZjlGjHcCnk4Mcbo= MIME-Version: 1.0 Received: by 10.204.24.69 with SMTP id u5mr1274713bkb.1.1255696169408; Fri, 16 Oct 2009 05:29:29 -0700 (PDT) In-Reply-To: <001301ca4e23$b96e35b0$3322c10a@china.huawei.com> References: <78DB4AE8EF5F4A1EBD3992D7404B2725@china.huawei.com> <4831593800614E6796A45F20BA4B818E@china.huawei.com> <001301ca4e23$b96e35b0$3322c10a@china.huawei.com> Date: Fri, 16 Oct 2009 13:29:29 +0100 Message-ID: From: =?ISO-8859-1?B?SXN0duFu?= To: Steve Dong Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Hongtao Yin , freebsd-performance@freebsd.org Subject: Re: Comparison of FreeBSD/Linux TCP Throughput performance X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Oct 2009 12:29:31 -0000 Thanks! Regards, Istvan 2009/10/16 Steve Dong > Here are graphs from the netpipe test results with 8.0 RC1 > > > Thanks, > Steve > > > > -----Original Message----- > From: owner-freebsd-performance@freebsd.org > [mailto:owner-freebsd-performance@freebsd.org] On Behalf Of Hongtao Yin > Sent: Thursday, October 15, 2009 8:52 PM > To: 'Istv=A8=A2n' > Cc: freebsd-performance@freebsd.org > Subject: RE: Comparison of FreeBSD/Linux TCP Throughput performance > > Istvan, > > > > I ran newer FreeBSD code 8.0 RC1 this time. By using NetPIPE, we collecte= d > test data and the result shows that FreeBSD TCP performance is worse than > Linux. I got troubles to plot using gnuplot, so here I am attaching the r= aw > data files. > > The netpipe commands are as follows: > > PC2: #NPtcp > > PC1: #NPtcp =A8Ch 192.168.1.20 > > > > Regards, > > Hongtao > > > > > > > > _____ > > From: Istv=A8=A2n [mailto:leccine@gmail.com] > Sent: 2009=C4=EA10=D4=C215=C8=D5 5:13 > To: Hongtao Yin > Cc: freebsd-performance@freebsd.org > Subject: Re: Comparison of FreeBSD/Linux TCP Throughput performance > > > > use netpipe TCP pls. > > > > And graph it. > > > > Thanks in advance, > > Istvan > > On Thu, Oct 15, 2009 at 2:42 AM, Hongtao Yin wrote: > > Hi, > > > > I compared TCP performance between FreeBSD and Linux by running test tool= s > Netperf and Iperf with Intel NIC. > > The kernels are full version and default values are used in the testing > except TCP Congestion Control algorithm set to Reno. > > >From the test results we can see Linux TCP performance in throughput is > better than FreeBSD. The worst case (send msg size 128) shows that FreeBS= D > throughput is only 43% of Linux's. > > > > I like to get some feedback if anyone did similar comparison test, or kno= ws > any issues with kernels or drivers. Thanks lot. > > > > FreeBSD and Linux Sysctl captures are attached for reference. > > > > Regards, > > Hongtao > > > > > > > > Test Environments: > > PC: Dell Precision T3400 (same 4 PCs) > > CPU: Intel Core 2 Duo CPU E4600@2.4Ghz > > FreeBSD: V7.1 (full version) (TCP CC: newReno) > > Linux: V2.6.31.1 (full version) (TCP CC: Reno) > > Ethernet card: Intel Pro/1000 PWLA8492 MT Dual Port Server Adapter > (Gigabit) > chip 82546EB (only one port used for each PC) > > Switch: Netgear ProSafe 8 port Gigabit Switch (model GS108) > > Iperf: V2.0.4 > > Netperf: V2.4.4 > > > > Setup: > > > > > > ---------- > > | switch | > > ---------- > > ---------------------| | | |-------------------- > > | | | | > > | --------| |-------- | > > | | | | > > | | | | > > -------------- -------------- -------------- -------------- > > | PC1 | | PC2 | | PC3 | | PC4 | > > | FreeBSD | | FreeBSD | | Linux | | Linux | > > |192.168.1.10| |192.168.1.20| |192.168.1.30| |192.168.1.40| > > -------------- -------------- -------------- -------------- > > > > > > > > > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D > > Netperf Test Results > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D > > > > TCP Throughput Test > > ------------------- > > > > PC2/4: #netserver -p 22113 > > PC1/3: #netperf -H 192.168.1.20 -p 22113 -l 10 > > > > Recv Send Send Elapsed > Throughput > > Socket Socket Message Time > 10^6 bits/sec > > Size Size Size Sec. > > bytes bytes bytes > > FreeBSD: 65536 32768 32768 10.34 > 598.11 > > Linux: 87380 16384 16384 10.04 > 779.02 > > > > > > PC1/3: #netperf -t TCP_STREAM -H 192.168.1.20 -p 22113 -- -m > 64/128/256/512/1024/2048/4096 > > > > Recv Send Send Elapsed > Throughput > > Socket Socket Message Time > 10^6 bits/sec > > Size Size Size Sec. > > bytes bytes bytes > > FreeBSD: 65536 32768 64 10.19 > 417.10 > > 65536 32768 128 10.35 > 336.63 > > 65536 32768 256 10.36 > 576.99 > > 65536 32768 512 10.35 > 569.79 > > 65536 32768 1024 10.35 > 553.70 > > 65536 32768 2048 10.35 > 584.20 > > 65536 32768 4096 10.35 > 602.45 > > > > Linux: 87380 16384 64 10.03 > 778.21 > > 87380 16384 128 10.03 > 779.72 > > 87380 16384 256 10.04 > 780.16 > > 87380 16384 512 10.03 > 776.85 > > 87380 16384 1024 10.04 > 777.52 > > 87380 16384 2048 10.04 > 777.83 > > 87380 16384 4096 10.03 > 780.17 > > > > > > > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D > > Iperf Test Results > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D > > > > Bandwidth Test > > -------------- > > > > PC2/4: #iperf -s > > PC1/3: #iperf -c 192.168.1.20 > > > > Interval Transfer Bandwidth > > sec MBytes Mbits/sec > > FreeBSD: 0.0-10.3 740 600 > > Linux: 0.0-10.0 972 815 > > > > > > PC1/3: #iperf -c 192.168.1.20 -d > > > > Interval Transfer Bandwidth > > sec MBytes Mbits/sec > > FreeBSD: 0.0-10.0 402 337 > > 0.0-10.0 404 338 > > > > Linux: 0.0-10.0 926 776 > > 0.0-10.0 44.1 36.9 > > > > > > Parallel Test > > ------------- > > > > PC2/4: #iperf -s > > PC1/3: #iperf -c 192.168.1.20 -P 2 > > > > Interval Transfer Bandwidth > > sec MBytes Mbits/sec > > FreeBSD: 0.0-10.3 370 300 > > 0.0-10.3 370 300 > > SUM: 0.0-10.3 739 600 > > > > Linux: 0.0-10.0 479 402 > > 0.0-10.0 473 396 > > SUM: 0.0-10.0 952 797 > > > > > > > > > _______________________________________________ > freebsd-performance@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-performance > To unsubscribe, send any mail to > "freebsd-performance-unsubscribe@freebsd.org" > > > > > -- > the sun shines for all > > --=20 the sun shines for all