From owner-freebsd-current@FreeBSD.ORG Thu Jan 10 17:53:47 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 AFBBF16A417 for ; Thu, 10 Jan 2008 17:53:47 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.freebsd.org (Postfix) with ESMTP id 8D62513C45A for ; Thu, 10 Jan 2008 17:53:47 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.2/8.14.2) with ESMTP id m0AHrlv2068723; Thu, 10 Jan 2008 09:53:47 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.2/8.14.2/Submit) id m0AHrlt4068722; Thu, 10 Jan 2008 09:53:47 -0800 (PST) (envelope-from sgk) Date: Thu, 10 Jan 2008 09:53:47 -0800 From: Steve Kargl To: Tom Evans Message-ID: <20080110175347.GA68673@troutmask.apl.washington.edu> References: <1199966437.1545.27.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1199966437.1545.27.camel@localhost> User-Agent: Mutt/1.4.2.3i Cc: 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: Thu, 10 Jan 2008 17:53:47 -0000 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 net.inet.tcp.path_mtu_discovery=0 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 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 -- Steve