From owner-freebsd-current@FreeBSD.ORG Fri Jan 18 18:57:06 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AECC616A419 for ; Fri, 18 Jan 2008 18:57:06 +0000 (UTC) (envelope-from andre@freebsd.org) Received: from c00l3r.networx.ch (c00l3r.networx.ch [62.48.2.2]) by mx1.freebsd.org (Postfix) with ESMTP id 00D9713C465 for ; Fri, 18 Jan 2008 18:57:05 +0000 (UTC) (envelope-from andre@freebsd.org) Received: (qmail 63241 invoked from network); 18 Jan 2008 18:19:24 -0000 Received: from dotat.atdotat.at (HELO [62.48.0.47]) ([62.48.0.47]) (envelope-sender ) by c00l3r.networx.ch (qmail-ldap-1.03) with SMTP for ; 18 Jan 2008 18:19:24 -0000 Message-ID: <4790F680.1090204@freebsd.org> Date: Fri, 18 Jan 2008 19:57:04 +0100 From: Andre Oppermann User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8b) Gecko/20050217 MIME-Version: 1.0 To: Steve Kargl References: <1199966437.1545.27.camel@localhost> <20080110175347.GA68673@troutmask.apl.washington.edu> In-Reply-To: <20080110175347.GA68673@troutmask.apl.washington.edu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Tom Evans , freebsd-current@freebsd.org Subject: Re: Regular bge watchdog timeouts on 7.0-PRERELEASE X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jan 2008 18:57:06 -0000 Steve Kargl wrote: > On Thu, Jan 10, 2008 at 12:00:37PM +0000, Tom Evans wrote: > >>I am encountering regular watchdog timeouts on bge: >> >>Jan 9 08:36:11 zoot kernel: bge0: watchdog timeout -- resetting >>Jan 9 08:36:11 zoot kernel: bge0: link state changed to DOWN >>Jan 9 08:36:13 zoot kernel: bge0: link state changed to UP > > > Add the following to /etc/sysctl.conf > > net.inet.tcp.sendspace=131072 > net.inet.tcp.recvspace=131072 In 7.0 these are automatically tuning and can be left at the default settings. > net.inet.tcp.path_mtu_discovery=0 You should not disable path MTU discovery. It'll most likely break the internet for you when you encounter for example PPPoE links. > net.inet.udp.recvspace=65536 > net.inet.raw.recvspace=16384 > kern.ipc.nmbclusters=50000 > kern.ipc.shm_use_phys=1 > net.inet.tcp.rexmit_min=30 These changes do not really have much influence on the bge problem (at least theoretically). It really is a driver issue and needs to be fixed in the driver. As far as I understand the problem we have a lack of documentation and errata information. -- Andre > And then try this patch > > > cvs diff: Diffing dev/bge > Index: dev/bge/if_bge.c > =================================================================== > RCS file: /home/ncvs/src/sys/dev/bge/if_bge.c,v > retrieving revision 1.199 > diff -u -p -r1.199 if_bge.c > --- dev/bge/if_bge.c 16 Nov 2007 16:39:27 -0000 1.199 > +++ dev/bge/if_bge.c 10 Jan 2008 17:51:38 -0000 > @@ -2454,9 +2454,9 @@ bge_attach(device_t dev) > /* Set default tuneable values. */ > sc->bge_stat_ticks = BGE_TICKS_PER_SEC; > sc->bge_rx_coal_ticks = 150; > - sc->bge_tx_coal_ticks = 150; > - sc->bge_rx_max_coal_bds = 10; > - sc->bge_tx_max_coal_bds = 10; > + sc->bge_tx_coal_ticks = 1500000; > + sc->bge_rx_max_coal_bds = 32; > + sc->bge_tx_max_coal_bds = 300; > > /* Set up ifnet structure */ > ifp = sc->bge_ifp = if_alloc(IFT_ETHER); > Index: dev/bge/if_bgereg.h > =================================================================== > RCS file: /home/ncvs/src/sys/dev/bge/if_bgereg.h,v > retrieving revision 1.73 > diff -u -p -r1.73 if_bgereg.h > --- dev/bge/if_bgereg.h 22 May 2007 19:22:58 -0000 1.73 > +++ dev/bge/if_bgereg.h 10 Jan 2008 17:51:38 -0000 > @@ -2342,7 +2342,7 @@ struct bge_gib { > * allocated for the standard, mini and jumbo receive rings. > */ > > -#define BGE_SSLOTS 256 > +#define BGE_SSLOTS 512 > #define BGE_MSLOTS 256 > #define BGE_JSLOTS 384 > > >