From owner-freebsd-bugs@FreeBSD.ORG Mon Feb 18 20:40:03 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B50D16A417 for ; Mon, 18 Feb 2008 20:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 20A1E13C461 for ; Mon, 18 Feb 2008 20:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1IKe2cH000325 for ; Mon, 18 Feb 2008 20:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1IKe2ob000324; Mon, 18 Feb 2008 20:40:02 GMT (envelope-from gnats) Date: Mon, 18 Feb 2008 20:40:02 GMT Message-Id: <200802182040.m1IKe2ob000324@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Volker Cc: Subject: Re: kern/64556: [sis] if_sis short cable fix problems with NetGear FA311's X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Volker List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Feb 2008 20:40:03 -0000 The following reply was made to PR kern/64556; it has been noted by GNATS. From: Volker To: Thomas Hurst Cc: bug-followup@FreeBSD.org Subject: Re: kern/64556: [sis] if_sis short cable fix problems with NetGear FA311's Date: Mon, 18 Feb 2008 21:35:24 +0100 Thomas, On 02/18/08 15:07, Thomas Hurst wrote: > Testing with Linux shows that receive seems to be throttled during > bidirectional activity. Unidirectional sees 93Mbps in either direction, > bidirectional sees 93Mbps sending and 35-60Mbps (50 average) receiving. > > There's no sign of connection dropping in an hour of testing. > > Linux is spewing APIC errors at me, not sure what, if anything, they're > related to. > > A quick glance at the FreeBSD driver shows a DELAY(100000); which > probably accounts for the performance drops; each burst of 'short cable > fix' messages basically leaves the card idle for 300ms or so. The Linux > driver (drivers/net/natsemi.c) has no sign of such a delay. well, I'll leave it for the net-team to check if this DELAY can be shortened (it's 100 msec delay). > This all happens during card setup, sis_initl(), shouldn't this be only > happening once when it aquires the link, not randomly during operation? sis_initl is being called not just for initializing the card once, but whenever RX errors or state changes are detected. I'm wondering if you can give us the following information as I think this will be needed for the net folks to further analyze your problem: pciconf -lv dmesg and the following when a bunch of network traffic has been generated: vmstat -ia netstat -i Also just a wild guess as the problems might be related: PR kern/112179 http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/112179 contains a patch, can you try if you see any difference with that patch applied? Thanks a lot!