From owner-freebsd-usb@FreeBSD.ORG Tue Mar 3 07:47:33 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 B96FA106566B for ; Tue, 3 Mar 2009 07:47:33 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe14.swip.net [212.247.155.161]) by mx1.freebsd.org (Postfix) with ESMTP id 212BB8FC15 for ; Tue, 3 Mar 2009 07:47:32 +0000 (UTC) (envelope-from hselasky@c2i.net) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=Ma5krZdYoiIA:10 a=-DXRHlJb_54A:10 a=MXw7gxVQKqGXY79tIT8aFQ==:17 a=RU9fcS5ezV1_e8KGVxYA:9 a=OBFe6bp5NZ46y-jm5i4A:7 a=KqphgT6jFg4ylSPL2XalmegWICwA:4 a=LY0hPdMaydYA:10 Received: from [62.113.132.61] (account mc467741@c2i.net HELO laptop) by mailfe14.swip.net (CommuniGate Pro SMTP 5.2.6) with ESMTPA id 461126971; Tue, 03 Mar 2009 08:47:31 +0100 From: Hans Petter Selasky To: Artyom Mirgorodsky Date: Tue, 3 Mar 2009 08:50:01 +0100 User-Agent: KMail/1.9.7 References: <200903010045.44904.man@email.com.ua> <200903012001.21543.hselasky@c2i.net> <200903022320.31592.man@email.com.ua> In-Reply-To: <200903022320.31592.man@email.com.ua> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903030850.01866.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: Low perfomance when read from usb flash drive 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: Tue, 03 Mar 2009 07:47:34 -0000 On Monday 02 March 2009, Artyom Mirgorodsky wrote: > > It might be a bug with your memory stick. Are your findings consistent > > accross other brands of memory sticks aswell, between 7.1 and 8.x ? > > Today, I tested another flash drive > > ugen1.2: at usbus1 > umass0: on usbus1 > umass0: SCSI over Bulk-Only; quirks = 0x0000 > umass0:3:0:-1: Attached to scbus3 > sg1 at umass-sim0 bus 0 target 0 lun 0 > sg1: Removable Direct Access SCSI-2 device > sg1: 40.000MB/s transfers > pass1 at umass-sim0 bus 0 target 0 lun 0 > pass1: Removable Direct Access SCSI-2 device > pass1: 40.000MB/s transfers > GEOM: new disk da0 > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: Removable Direct Access SCSI-2 device > da0: 40.000MB/s transfers > da0: 3872MB (7929856 512 byte sectors: 255H 63S/T 493C) > > > > FreeBSD-8-Current > > dd if=/dev/da0 of=/dev/null bs=64k count=10000 > 10000+0 records in > 10000+0 records out > 655360000 bytes transferred in 60.320972 secs (10864546 bytes/sec) > > systat -vm > > Disks ad4 ad6 da0 cd0 pass0 sg0 sg1 68560 wire > KB/t 0.00 0.00 64.00 0.00 0.00 0.00 0.00 117684 act > tps 0 0 166 0 0 0 0 75468 inact > MB/s 0.00 0.00 10.40 0.00 0.00 0.00 0.00 1860 cache > %busy 0 0 99 0 0 0 0 1136340 free > > > > FreeBSD-7.1 > > dd if=/dev/da0 of=/dev/null bs=64k count=10000 > 10000+0 records in > 10000+0 records out > 655360000 bytes transferred in 44.021160 secs (14887386 bytes/sec) Hi, What brand is your CPU. I know that certain AMD USB controllers perform less with the new USB stack, but I've not been able to track down the issue. Can you try another PC having another CPU brand? There might be some minor things that needs tuning like the NAK retry counter. I suspect you have run into a timing issue with the hardware. --HPS