From owner-freebsd-net@FreeBSD.ORG Sat Aug 2 12:22:42 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4AE8337B401 for ; Sat, 2 Aug 2003 12:22:42 -0700 (PDT) Received: from cowbert.2y.net (d46h180.public.uconn.edu [137.99.46.180]) by mx1.FreeBSD.org (Postfix) with SMTP id 6680E43FA3 for ; Sat, 2 Aug 2003 12:22:41 -0700 (PDT) (envelope-from sirmoo@cowbert.2y.net) Received: (qmail 28197 invoked by uid 1001); 2 Aug 2003 19:22:40 -0000 Date: Sat, 2 Aug 2003 15:22:40 -0400 From: "Peter C. Lai" To: Mike Silbersack Message-ID: <20030802192240.GD419@cowbert.2y.net> References: <20030730215823.GA361@cowbert.2y.net> <20030730170024.K88169@odysseus.silby.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030730170024.K88169@odysseus.silby.com> User-Agent: Mutt/1.4i cc: freebsd-net@freebsd.org cc: peter.lai@uconn.edu Subject: Re: dc TX underrun leads to delayed crash X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: peter.lai@uconn.edu List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Aug 2003 19:22:42 -0000 Patch seems to be working fine. I also seem to be getting better linkage and transfer speeds too but that could just be my imagination *shrug*. Thanks. On Wed, Jul 30, 2003 at 05:05:49PM -0500, Mike Silbersack wrote: > > On Wed, 30 Jul 2003, Peter C. Lai wrote: > > > I'm noticing on a moderately loaded system, that sometimes when the kernel > > increases the TX threshold (/kernel: dc0: TX underrun -- increasing TX > > threshold), a few minutes later, the system hardlocks requiring a reset. > > This routinely happens when I'm streaming MP3s over the network and the box > > suddenly hardlocks; after I go back to inspect the logs, the TX buffer underrun > > is the only thing in the log before the start of the kernel reboot messages. > > This is occuring on 4.8-STABLE as of July 7, 2003 on an AMD K6-2 500 with > > 348 Mb RAM and VIA Apollo MVP3 chipset. When the lockups occur, the system > > temperatures are below 40C, with little disk activity, moderate ram and cpu > > usage; the NIC (linksys LNE-100TX A) is usually doing a steady 50K/s at this point. > > -- > > Peter C. Lai > > Rev 1.9.2.47 of if_dc.c (committed July 14th) should fix this problem for > you. MBUF_STRESS_TEST showed similar symptoms as mbuf chain lengths were > increased, which is how I detected the problem. > > Try grabbing the new if_dc.c: > > http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/sys/pci/if_dc.c?rev=1.9.2.47&content-type=text/plain > > And see how things go. > > Mike "Silby" Silbersack -- Peter C. Lai University of Connecticut Dept. of Molecular and Cell Biology Yale University School of Medicine SenseLab | Research Assistant http://cowbert.2y.net/