From owner-freebsd-usb@FreeBSD.ORG Sun Aug 9 16:58:01 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DAEEA106566C for ; Sun, 9 Aug 2009 16:58:01 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 9EB308FC19 for ; Sun, 9 Aug 2009 16:58:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id n79GsEAk043105; Sun, 9 Aug 2009 10:54:14 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 09 Aug 2009 10:55:07 -0600 (MDT) Message-Id: <20090809.105507.-646227496.imp@bsdimp.com> To: hselasky@c2i.net From: "M. Warner Losh" In-Reply-To: <200908091840.55000.hselasky@c2i.net> References: <20090809.102341.2106235641.imp@bsdimp.com> <200908091840.55000.hselasky@c2i.net> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org Subject: Re: Performance issues X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Aug 2009 16:58:02 -0000 In message: <200908091840.55000.hselasky@c2i.net> Hans Petter Selasky writes: : On Sunday 09 August 2009 18:23:41 M. Warner Losh wrote: : > Any ideas how to track this down? : : Hi, : : USB is only draining from "usbd_transfer_drain()" in : /sys/dev/usb/usb_transfer.c . You could add a print including the backtrace : and see if that function gets called when it freezes. Ummm. No. Adding a traceback print to a function that's called 60 times a second in steady state doesn't seem like a viable option. : Else I would try to compile a fresh kernel from USB P4. There are : some patches there in relation to the recent newbus lock change, : that might help. This kernel predates the newbus lock change. : USB uses uppercase "WDRAIN". Is your printout lowercase "wdrain" ? Yes. Warner