From owner-freebsd-stable@freebsd.org Mon Jan 2 18:42:44 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 0EB86C9CA85 for ; Mon, 2 Jan 2017 18:42:44 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from mail.in-addr.com (mail.in-addr.com [IPv6:2a01:4f8:191:61e8::2525:2525]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D163D18DC for ; Mon, 2 Jan 2017 18:42:43 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from gjp by mail.in-addr.com with local (Exim 4.88 (FreeBSD)) (envelope-from ) id 1cO7ZB-000Muy-1p; Mon, 02 Jan 2017 18:42:41 +0000 Date: Mon, 2 Jan 2017 18:42:41 +0000 From: Gary Palmer To: "Marat N.Afanasyev" Cc: FreeBSD stable Subject: Re: usb 3.0 thumb drive speed limit Message-ID: <20170102184104.GA95857@in-addr.com> References: <586A0F05.6050504@li.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <586A0F05.6050504@li.ru> X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: gpalmer@freebsd.org X-SA-Exim-Scanned: No (on mail.in-addr.com); SAEximRunCond expanded to false 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 18:42:44 -0000 On Mon, Jan 02, 2017 at 11:27:49AM +0300, Marat N.Afanasyev wrote: > I wonder is there a speed limit on usb 3.0? I've bought > > ugen0.4: at usbus0 > umass2 on uhub7 > umass2: on usbus0 > da2 at umass-sim2 bus 2 scbus9 target 0 lun 0 > da2: Removable Direct Access SPC-4 SCSI device > da2: Serial Number AA010808161609220143 > da2: 40.000MB/s transfers > da2: 59840MB (122552320 512 byte sectors) > da2: quirks=0x2 > > that claims 'Up to 245 MBytes/sec read speed' I don't think the speed reported by the SCSI layer (CAM) is correct for USB, although it seems from an experiment here that if you plug a USB3 drive into a USB2 port it reports "40.000MB/s transfers" and on a USB3 port it reports "400.000MB/s transfers". SCSI doesn't really have any direct mapping to the USB speeds so I suspect the USB stack uses the closest value. The tests I did were with 10.3. Other releases may behave differently. Check with usbconfig what the negotiated USB speed is (the "spd=" value with the Mbps or Gbps value in brackets afterwards) FULL = USB1 HIGH = USB2 SUPER = USB3 Regards, Gary