From owner-freebsd-usb@FreeBSD.ORG Fri Nov 28 15:07:20 2008 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 911C61065678 for ; Fri, 28 Nov 2008 15:07:20 +0000 (UTC) (envelope-from thierry.herbelot@free.fr) Received: from smtp6-g19.free.fr (smtp6-g19.free.fr [212.27.42.36]) by mx1.freebsd.org (Postfix) with ESMTP id 570D38FC08 for ; Fri, 28 Nov 2008 15:07:20 +0000 (UTC) (envelope-from thierry.herbelot@free.fr) Received: from smtp6-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp6-g19.free.fr (Postfix) with ESMTP id 2D71B1723C for ; Fri, 28 Nov 2008 16:07:19 +0100 (CET) Received: from mail.herbelot.nom (bne75-4-82-227-159-103.fbx.proxad.net [82.227.159.103]) by smtp6-g19.free.fr (Postfix) with ESMTP id 5BD00197AA for ; Fri, 28 Nov 2008 16:07:13 +0100 (CET) Received: from tulipe.herbelot.nom (tulipe.herbelot.nom [192.168.2.5]) by mail.herbelot.nom (8.14.1/8.14.1) with ESMTP id mASF6vP6019399 for ; Fri, 28 Nov 2008 16:06:58 +0100 (CET) From: Thierry Herbelot To: freebsd-usb@freebsd.org Date: Fri, 28 Nov 2008 16:06:51 +0100 User-Agent: KMail/1.9.10 X-Warning: Windows can lose your files X-Op-Sys: Le FriBi de la mort qui tue X-Org: TfH&Co X-MailScanner: Found to be clean MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811281606.51927.thierry.herbelot@free.fr> Subject: usb2 bulk read optimization ? 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: Fri, 28 Nov 2008 15:07:20 -0000 Hello, another day, another question : I'm done converting an old "userland driver" to usb2 and libusb20 - and it works ! (using the libusb API, for the time being). The application is a data capture from a bulk endpoint, and I can't get more than around 8 Mbps. The data are formatted as URBs of 40 kbytes. This may be expected, as the machine is an oldish Pentium-III, with an additional Acer-based USB-2 extension card. (still, I have recompiled the -current kernel without the INVARIANTS and WITNESS options) I have had a quick look at the code of libusb20 and tried an increase of bufsize in usb_get_transfer_by_ep_no, but with no discernable improvements. Any idea ? thanks TfH