From owner-freebsd-smp@FreeBSD.ORG Wed Apr 9 00:31:36 2003 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1864A37B401; Wed, 9 Apr 2003 00:31:36 -0700 (PDT) Received: from alpha.siliconlandmark.com (alpha.siliconlandmark.com [209.69.98.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F3BA43FBF; Wed, 9 Apr 2003 00:31:35 -0700 (PDT) (envelope-from andy@siliconlandmark.com) Received: from alpha.siliconlandmark.com (localhost [127.0.0.1]) h397VYUs034767; Wed, 9 Apr 2003 03:31:34 -0400 (EDT) (envelope-from andy@siliconlandmark.com) Received: from localhost (andy@localhost)h397VYXt034764; Wed, 9 Apr 2003 03:31:34 -0400 (EDT) (envelope-from andy@siliconlandmark.com) X-Authentication-Warning: alpha.siliconlandmark.com: andy owned process doing -bs Date: Wed, 9 Apr 2003 03:31:34 -0400 (EDT) From: Andre Guibert de Bruet To: current@freebsd.org In-Reply-To: <20030406172853.X92580@alpha.siliconlandmark.com> Message-ID: <20030409015004.A92580@alpha.siliconlandmark.com> References: <20030406172853.X92580@alpha.siliconlandmark.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE cc: freebsd-smp@freebsd.org Subject: ATA activity under SMP affecting USB interrupts? (Was Re: usb scheduling overruns under system load) X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Apr 2003 07:31:36 -0000 Hello again, I've been doing some additional testing. It appears that the scheduling overrun errors printed from ohci.c:1192 only seem to happen under moderate/high disk load. I've noticed that the message gets printed out under the following conditions: - (un)bzip2'ing, (un)gzip'ing larger files (20MB+). - cvsup'ing ports or system sources. - moving large files between disks. - compiling world and building a port. - large ftp file transfers over the local network. Everything in this list seems to involve disk activity. Unless there's something that I'm missing, is it fair to assume that there's something possibly in ATA-land which is affecting/delaying USB interrupt delivery? The disks in this system are identical Maxtor 200GB drives with 8MB cache, each connected to a seperate channel on the bundled Maxtor ATA133 card. ad4: 194481MB [395136/16/63] at ata2-master UDMA133 ad6: 194481MB [395136/16/63] at ata3-master UDMA133 I've made the output of 'pciconf -vl' available at: http://siliconlandmark.com/staff/andre/files/BLING.pciconf In order to narrow down the list of possible causes, I installed to dnetc port to see if CPU load would cause the message to be printed out. I then proceeded to disable ACPI, but that didn't help any. I guess I'll copy freebsd-smp@ on this one... Any ideas? > Andre Guibert de Bruet | Enterprise Software Consultant > > Silicon Landmark, LLC. | http://siliconlandmark.com/ > On Sun, 6 Apr 2003, Andre Guibert de Bruet wrote: > I've just installed -current on another one of my machines and have been > seeing "usb0: 1 scheduling overruns" messages printed to the console over > and over under load. As the load increases, so does the frequency of the > messages. After a bit of experimenting, I've found that large amounts of > network traffic (I used ftp) and bzip2'ing a large dump cause the message > to be printed roughly ten times a second. > > This computer had been running -stable for a few months prior and did not > exhibit this behavior. It's a dual Athlon MP 2000+ running on an Asus > A7M-266D with an onboard AMD-brand OHCI USB controller. The only USB > devices that are connected are a Microsoft Internet Keyboard Pro and an > IntelliMouse Optical (1.0A). Unplugging both devices doesn't fix the > problem. > > pciconf -lv thinks the following of the controller: > ohci0@pci2:0:0: class=3D0x0c0310 card=3D0x80441043 chip=3D0x74491022 rev= =3D0x07 hdr=3D0x00 > vendor =3D 'Advanced Micro Devices (AMD)' > device =3D 'AMD-768 USB Controller' > class =3D serial bus > subclass =3D USB > > usbdevs shows: > addr 1: OHCI root hub, AMD > addr 2: product 0x001c, Microsoft > addr 3: Microsoft IntelliMouse=AE Optical, Microsoft > > The kernel config file and dmesg can be found at: > http://siliconlandmark.com/staff/andre/files/BLING > http://siliconlandmark.com/staff/andre/files/BLING.dmesg > > uname -a: > FreeBSD bling.properkernel.com 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Sun Ap= r 6 16:47:32 EDT 2003 root@bling.properkernel.com:/usr/src/sys/i386/co= mpile/BLING i386