From nobody@FreeBSD.org  Mon Nov 12 14:39:28 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id D3D0B37B417
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 12 Nov 2001 14:39:27 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.4/8.11.4) id fACMdRE42715;
	Mon, 12 Nov 2001 14:39:27 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200111122239.fACMdRE42715@freefall.freebsd.org>
Date: Mon, 12 Nov 2001 14:39:27 -0800 (PST)
From: Fabien THOMAS <fabien.thomas@wanadoo.fr>
To: freebsd-gnats-submit@FreeBSD.org
Subject: nge gigabit adapter link reset and slow transfert
X-Send-Pr-Version: www-1.0

>Number:         31940
>Category:       kern
>Synopsis:       ip queue length too short for >500kpps
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-net
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 12 14:40:00 PST 2001
>Closed-Date:    
>Last-Modified:  Sun May 29 22:04:24 UTC 2011
>Originator:     Fabien THOMAS
>Release:        4.4 stable
>Organization:
>Environment:
>Description:
when using SMC gigabit adapter (DP83820/DP83821) the link is slow 200Mb/s using netperf between 2 SMC adapter under FreeBSD and nothing more with jumbo frame and sometimes the card seems to renegociate the link (i've tried using different cable with no sucess)
>How-To-Repeat:
     
>Fix:
     
>Release-Note:
>Audit-Trail:

From: David Malone <dwmalone@maths.tcd.ie>
To: Fabien THOMAS <fabien.thomas@wanadoo.fr>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/31940: nge gigabit adapter link reset and slow transfert
Date: Tue, 13 Nov 2001 15:28:29 +0000

 On Mon, Nov 12, 2001 at 02:39:27PM -0800, Fabien THOMAS wrote:
 
 > when using SMC gigabit adapter (DP83820/DP83821) the link is slow 200Mb/s using netperf between 2 SMC adapter under FreeBSD and nothing more with jumbo frame and sometimes the card seems to renegociate the link (i've tried using different cable with no sucess)
 
 Have you experimented with the options in the nge man page? There
 are options to set a card in "master" mode, which sound like they
 would help if you are using these cards without a switch.  You
 might also want to try the half-duplex and full-duplex options.
 
 	David.

From: Fabien THOMAS <fabien.thomas@wanadoo.fr>
To: freebsd-gnats-submit@FreeBSD.org, fabien.thomas@wanadoo.fr
Cc:  
Subject: Re: kern/31940: nge gigabit adapter link reset and slow
  transfert
Date: Wed, 14 Nov 2001 13:45:06 +0100

 yes i've tried in manual mode with link0 set on one side and in autoneg 
 mode (the bandwidth problem seem to have no relationship with the media 
 ramdon negociation) i've tried a netperf between two SMC gigabyte host 
 (athlon 900 PCI32 and bi-athlon 1.2gb PCI64 (thunder K7)) and my max 
 bandwidth is 300Mb/s
 
 thanks for your reply
 
 Fabien
 
 

From: lukem.freebsd@cse.unsw.edu.au
To: freebsd-gnats-submit@FreeBSD.org, fabien.thomas@wanadoo.fr,
	dwmalone@maths.tcd.ie
Cc:  
Subject: Re: kern/31940: nge gigabit adapter link reset and slow transfert
Date: Tue, 2 Nov 2004 10:51:59 +1100 (EST)

 I am using 5.2.1, rather than 4.4, but I have found a bug which could be 
 causing this. I have mailed freebsd-net but they don't seem interested. 
 The problem is that the receive DMA ring is longer than the IP queue, such 
 that if more packets are received in the interrupt than fit in the IP 
 queue, packets are dropped.
 
 Since the default IP queue length is 50 packets, and the interrupt holdoff 
 time is 100uS, you can only really expect to get 500kpps, which is not 
 much for a gigabit ethernet card.
 
 You can fix by increasing the ip queue length constant. (make it >= 128)
 
 -- 
 Luke
State-Changed-From-To: open->feedback 
State-Changed-By: kmacy 
State-Changed-When: Fri Nov 16 17:33:53 UTC 2007 
State-Changed-Why:  

RELENG_7 defaults to net.isr.direct=1 - however, freebsd 
can do 10GigE even with net.isr.direct=0 

http://www.freebsd.org/cgi/query-pr.cgi?pr=31940 
State-Changed-From-To: feedback->open 
State-Changed-By: kmacy 
State-Changed-When: Fri Nov 16 17:36:57 UTC 2007 
State-Changed-Why:  

This is still an issue. Should change the default to 256 as on NetBSD. 


Responsible-Changed-From-To: freebsd-bugs->kmacy 
Responsible-Changed-By: kmacy 
Responsible-Changed-When: Fri Nov 16 17:36:57 UTC 2007 
Responsible-Changed-Why:  

This is still an issue. Should change the default to 256 as on NetBSD.  

http://www.freebsd.org/cgi/query-pr.cgi?pr=31940 
Responsible-Changed-From-To: kmacy->freebsd-net 
Responsible-Changed-By: gavin 
Responsible-Changed-When: Sun May 29 22:01:58 UTC 2011 
Responsible-Changed-Why:  
kmacy has asked for his PRs to be reassigned 

http://www.freebsd.org/cgi/query-pr.cgi?pr=31940 
>Unformatted:
