From owner-freebsd-usb@FreeBSD.ORG Tue Mar 16 18:01:39 2010 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 4E98D106564A for ; Tue, 16 Mar 2010 18:01:39 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id AAD458FC08 for ; Tue, 16 Mar 2010 18:01:38 +0000 (UTC) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id o2GI1Fph081262 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 16 Mar 2010 19:01:15 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.3/8.14.3) with ESMTP id o2GI19ow005192 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 16 Mar 2010 19:01:09 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id o2GI19AW072027; Tue, 16 Mar 2010 19:01:09 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id o2GI1974072026; Tue, 16 Mar 2010 19:01:09 +0100 (CET) (envelope-from ticso) Date: Tue, 16 Mar 2010 19:01:09 +0100 From: Bernd Walter To: Sebastian Huber Message-ID: <20100316180109.GE70566@cicely7.cicely.de> References: <4B9FA7CB.70200@embedded-brains.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B9FA7CB.70200@embedded-brains.de> X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de Cc: freebsd-usb@freebsd.org Subject: Re: How fast is the OHCI driver? X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Mar 2010 18:01:39 -0000 On Tue, Mar 16, 2010 at 04:46:19PM +0100, Sebastian Huber wrote: > Hi, > > I work with an ARM9 based system on a LPC3250 evaluation board from Phytec. It > has an integrated OHCI USB controller from NXP. The vendor provides a Linux > system for this board and with this system I can read with 1MByte/s from an USB > stick (I can also read with 23MByte/s from this stick on another system with an > EHCI controller). If I use the FreeBSD USB-stack (trunk revision 200101), then > I can only achieve a read performance of 70kByte/s. Comparing the activity on > the USB data lines with an oscilloscope of the two systems shows that on the > Linux system the line is continuously busy while on the FreeBSD based system > there are huge gaps of inactivity. Both systems operate with 12MHz. The > FreeBSD based system is 65% of the time in the idle task, so it seems that it > waits a lot for something. How do you test? > Has someone values from other FreeBSD based systems with an OHCI controller? I can easily get more with AT91RM9200 (also ARM9 with OHCI). A short test: [73]chipmunk.cicely.de# dd if=/dev/da0 bs=128k of=/dev/null count=100 100+0 records in 100+0 records out 13107200 bytes transferred in 16.762732 secs (781925 bytes/sec) Speedwise the system is on the lowest end of ARM9 systems we support. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.