From owner-freebsd-usb@FreeBSD.ORG Sun Aug 9 16:23:35 2009 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB69D106566C for ; Sun, 9 Aug 2009 16:23:35 +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 8D79D8FC1F; Sun, 9 Aug 2009 16:23:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id n79GMmvH042876; Sun, 9 Aug 2009 10:22:48 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 09 Aug 2009 10:23:41 -0600 (MDT) Message-Id: <20090809.102341.2106235641.imp@bsdimp.com> To: hps@freebsd.org From: "M. Warner Losh" 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: usb@freebsd.org Subject: 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:23:36 -0000 Hans, Just trying to do some stuff I used to be able to do with the USB stack on a recent (July 23rd) kernel. I've had some disappointing results. I have a 750GB disk that's attached via USB. Nothing fancy or special about it. I can stream up to about 18MB/s to it when things are going well. Older code works flawlessly with this device. I have one other device attached, a bluetooth dongle that's really just buit into my laptop. There's no bluetooth devices attached to the laptop via this dongle, but plenty of bluetooth in the general area... The bt stack is enabled. What I see is that from time to time the writes to the disk stop for seconds at a time. This can happen when I'm writing from DV streams (which are 25Mb/s or 4.1MB/s) as well as a dd from either /dev/zero or from a dvd I have in my laptop's DVD reader. The /dev/zero ones go at about 16-18MB/s, while the DVD reader is about 5MB/s. When it happens, the process hangs in wdrain. This makes it impossible to use umass devices for things like reading my DV camera to stream things to disk for later processing into DVDs. It also seems to make it impossible to burn DVDs, since this same hic-up is seen in read speed as well. If I remove the bluetooth dongle from the system, then I don't seem to see this problem. Any ideas how to track this down? Warner