From nobody@FreeBSD.org  Wed Dec  9 08:53:16 2009
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id AEFF31065672
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  9 Dec 2009 08:53:16 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 9DEE68FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  9 Dec 2009 08:53:16 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id nB98rGcJ070441
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 9 Dec 2009 08:53:16 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id nB98rGAU070440;
	Wed, 9 Dec 2009 08:53:16 GMT
	(envelope-from nobody)
Message-Id: <200912090853.nB98rGAU070440@www.freebsd.org>
Date: Wed, 9 Dec 2009 08:53:16 GMT
From: Karl Hakkinen <karl@khakkinen.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Network Performance has decreased by 30%
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         141314
>Category:       kern
>Synopsis:       Network Performance has decreased by 30% [regression]
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    andre
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 09 09:00:07 UTC 2009
>Closed-Date:    
>Last-Modified:  Thu Aug 12 18:20:04 UTC 2010
>Originator:     Karl Hakkinen
>Release:        8.0
>Organization:
Nafet
>Environment:
FreeBSD theta.khakkinen.local 8.0-RELEASE FreeBSD 8.0-RELEASE #1: Sun Dec  6 23:52:44 EST 2009     karlh@theta.khakkinen.local:/usr/obj/usr/src/sys/Theta  i386
>Description:
Since installing FreeBSD 8.0 My network performance has dramatically decreased. Before I did the upgrade, I tested my network speed. After installing 8.0 (Clean install), I redid the test. The results were:

FreeBSD 7.2: 504.41 KB/s
FreeBSD 8.0: 273.17 KB/s

When I retested, the results were the same. I have also talked to other people who have upgraded to 8.0 and they say they have noticed the same problem. One of my friends who did it, noted these results on his Gigabit network:

FreeBSD 7.2: 112.5MB/s 
FreeBSD 8.0: 62.5MB/s

He is running the AMD64 version. We both tested using TTCP.
>How-To-Repeat:
Seems to be the simple act of installing FreeBSD 8.0 causes the issue.
>Fix:
The only slight patch that I found was to set the following sysctls:

net.isr.direct=0
kern.random.sys.harvest.ethernet=0
kern.random.sys.harvest.interrupt=0

It seemed to work for a few minutes, then the performance dropped to new lowers (Averaging 110 KB/s).

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-i386->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Dec 14 02:34:39 UTC 2009 
Responsible-Changed-Why:  
This does not sound i386-specific. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=141314 

From: "Eduardo Schoedler" <eschoedler@viavale.com.br>
To: <bug-followup@FreeBSD.org>,
	<karl@khakkinen.com>
Cc:  
Subject: Re: kern/141314: Network Performance has decreased by 30% [regression]
Date: Fri, 12 Feb 2010 17:14:54 -0200

 Hello.
 
 First of all, sorry my bad english.
 I work in an small ISP in Brazil.
 This thread worried us a little bit, because we are going in production an
 Freebsd 8.0-RELEASE.
 
 We have stressed our brand new Dell servers (R210 and R410) with Freebsd
 7.2-RELEASE and 8.0-RELEASE.
 None of them showed the problem.
 
 Here are the results of our tests (2-way tests):
 
 7.2  i386 [R410] x 8.0 amd64 [R210]: Iperf = 931M |  98586,46K
 8.0 amd64 [R210] x 7.2  i386 [R410]: Iperf = 931M | 114023,54K
 
 8.0 amd64 [R410] x 8.0 amd64 [R210]: Iperf = 931M |  99752,64K
 8.0 amd64 [R210] x 8.0 amd64 [R410]: Iperf = 931M | 114088,72K
 
 
 Best Regards,
 
 --
 Eduardo Schoedler
 
Responsible-Changed-From-To: freebsd-net->andre 
Responsible-Changed-By: andre 
Responsible-Changed-When: Tue Aug 10 22:13:52 UTC 2010 
Responsible-Changed-Why:  
Take over. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=141314 

From: Andre Oppermann <oppermann@networx.ch>
To: karl@khakkinen.com
Cc: eschoedler@viavale.com.br, net@freebsd.org, bug-followup@freebsd.org
Subject: Re: kern/141314: Network Performance has decreased by 30% [regression]
Date: Thu, 12 Aug 2010 14:29:21 +0200

 Karl,
 
 What is the RTT (ping time) between your test servers?
 
 Please try again with the following sysctl disabled:
   sysctl net.inet.tcp.inflight.enable=0
 
 -- 
 Andre

From: "Steven Hartland" <killing@multiplay.co.uk>
To: "Andre Oppermann" <oppermann@networx.ch>,
	<karl@khakkinen.com>
Cc: <bug-followup@freebsd.org>,
	<eschoedler@viavale.com.br>,
	<net@freebsd.org>
Subject: Re: kern/141314: Network Performance has decreased by 30%[regression]
Date: Thu, 12 Aug 2010 14:04:02 +0100

 Also if you have a large kern.ipc.maxsockbuf set try removing it
 we experienced a significant slow down when moving from 7 to 8 with
 large values for kern.ipc.maxsockbuf.
 
     Regards
     Steve
 ----- Original Message ----- 
 From: "Andre Oppermann" <oppermann@networx.ch>
 
 
 > Karl,
 > 
 > What is the RTT (ping time) between your test servers?
 > 
 > Please try again with the following sysctl disabled:
 >  sysctl net.inet.tcp.inflight.enable=0
 
 
 ================================================
 This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 
 
 In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337
 or return the E.mail to postmaster@multiplay.co.uk.
 

From: Andre Oppermann <oppermann@networx.ch>
To: Steven Hartland <killing@multiplay.co.uk>
Cc: karl@khakkinen.com, bug-followup@freebsd.org, 
 eschoedler@viavale.com.br, net@freebsd.org
Subject: Re: kern/141314: Network Performance has decreased by 30%[regression]
Date: Thu, 12 Aug 2010 15:34:49 +0200

 On 12.08.2010 15:04, Steven Hartland wrote:
 > Also if you have a large kern.ipc.maxsockbuf set try removing it
 > we experienced a significant slow down when moving from 7 to 8 with
 > large values for kern.ipc.maxsockbuf.
 
 This may be an unrelated problem with window scaling and broken firewalls.
 
 > Regards
 > Steve
 > ----- Original Message ----- From: "Andre Oppermann" <oppermann@networx.ch>
 >
 >
 >> Karl,
 >>
 >> What is the RTT (ping time) between your test servers?
 >>
 >> Please try again with the following sysctl disabled:
 >> sysctl net.inet.tcp.inflight.enable=0
 >
 >
 > ================================================
 > This e.mail is private and confidential between Multiplay (UK) Ltd. and
 > the person or entity to whom it is addressed. In the event of
 > misdirection, the recipient is prohibited from using, copying, printing
 > or otherwise disseminating it or any information contained in it.
 > In the event of misdirection, illegible or incomplete transmission
 > please telephone +44 845 868 1337
 > or return the E.mail to postmaster@multiplay.co.uk.
 

From: "Steven Hartland" <killing@multiplay.co.uk>
To: "Andre Oppermann" <oppermann@networx.ch>
Cc: <karl@khakkinen.com>,
	<bug-followup@freebsd.org>,
	<eschoedler@viavale.com.br>,
	<net@freebsd.org>
Subject: Re: kern/141314: Network Performance has decreased by 30%[regression]
Date: Thu, 12 Aug 2010 19:14:24 +0100

 ----- Original Message ----- 
 From: "Andre Oppermann" <oppermann@networx.ch>
 
 
 > On 12.08.2010 15:04, Steven Hartland wrote:
 >> Also if you have a large kern.ipc.maxsockbuf set try removing it
 >> we experienced a significant slow down when moving from 7 to 8 with
 >> large values for kern.ipc.maxsockbuf.
 > 
 > This may be an unrelated problem with window scaling and broken firewalls.
 
 No firewalls present all local machines, so not that :(
 
 ================================================
 This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 
 
 In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337
 or return the E.mail to postmaster@multiplay.co.uk.
 
>Unformatted:
