From owner-freebsd-stable@freebsd.org Mon Jan 2 17:15:27 2017 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 84D1FC9BBDE for ; Mon, 2 Jan 2017 17:15:27 +0000 (UTC) (envelope-from freebsd-stable-local@be-well.ilk.org) Received: from be-well.ilk.org (be-well.ilk.org [23.30.133.173]) by mx1.freebsd.org (Postfix) with ESMTP id 601951E34 for ; Mon, 2 Jan 2017 17:15:27 +0000 (UTC) (envelope-from freebsd-stable-local@be-well.ilk.org) Received: from lowell-desk.lan (router.lan [172.30.250.2]) by be-well.ilk.org (Postfix) with ESMTP id 0F03933C22; Mon, 2 Jan 2017 12:09:12 -0500 (EST) Received: by lowell-desk.lan (Postfix, from userid 1147) id DB9A03981C; Mon, 2 Jan 2017 12:09:11 -0500 (EST) From: Lowell Gilbert To: Ian Smith Cc: "Marat N.Afanasyev" , FreeBSD stable Subject: Re: usb 3.0 thumb drive speed limit References: <586A0F05.6050504@li.ru> <20170102202711.G26979@sola.nimnet.asn.au> <586A2495.5030301@li.ru> <20170102212552.O26979@sola.nimnet.asn.au> Reply-To: FreeBSD stable Date: Mon, 02 Jan 2017 12:09:11 -0500 In-Reply-To: <20170102212552.O26979@sola.nimnet.asn.au> (Ian Smith's message of "Mon, 2 Jan 2017 22:14:01 +1100 (EST)") Message-ID: <44shp1l77s.fsf@lowell-desk.lan> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jan 2017 17:15:27 -0000 Ian Smith writes: > On Mon, 2 Jan 2017 12:59:49 +0300, Marat N.Afanasyev wrote: > > Ian Smith wrote: > > > > > > Seems you've plugged it into a USB 2 port, not USB 3 > > > > > > At least you're getting full USB 2 performance (40MB/s) > > > > > > Check if you have one or more USB 3 ports with 'dmesg | grep xhci' > > > afair, single usb 2.0 device can be as fast as 240 Mbits/sec, not 320 280 Mbits/sec, actually. > > Mbits/sec: > > > > % dd if=/dev/da2 of=/dev/null bs=1m count=1000 > > 1000+0 records in > > 1000+0 records out > > 1048576000 bytes transferred in 34.026227 secs (30816699 bytes/sec) 30816699 bytes/sec is a little over 30 Megabytes per second. Which is about right. Was someone misplacing a decimal? Or confusing bits with bytes? [Making things more confusing is that generally people refer to megabytes as 10e6 for disks and 2e20 for memory. For flash, it's the latter, but if you access it through a "disk" interface (like a thumb drive), you'll generally get 10e6 type numbers. > > > > it's the same drive in usb 2.0 port > > Ah, guess I've been taking "40.000MB/s transfers" for USB2 at its word. The 40MB/s number includes overhead, so you'll never get quite that high. > Testing 3 USB2 sticks in a USB2 port on my X200 (2.4GHz Core2Duo) I only > get about 18-20MB/s read for bs=1M count=1k, with little load although > 3k IRQ/s and 10k context switches/s, so I thought yours was good :) These things will vary with your hardware; both the driver chips in the computer and the flash stick itself. And some other things too, but I can't recall exactly.