From nobody Tue Jan 17 11:35:40 2023 X-Original-To: usb@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Nx6Jr4Yjwz2t3dV for ; Tue, 17 Jan 2023 11:35:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Nx6Jr3XjYz3vGd for ; Tue, 17 Jan 2023 11:35:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673955340; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sO1EasiBJ/Z7StqMI7wrlsgWZESF1uCdn33+Bj7AzTQ=; b=IDSzFFtlCWfoXIO2OnXnr+RjXMTVYtCJAib9X1XfoC+Ttj6pRbbqf+ZRB3qP4BdlRcVvAK ahTRwYAkEL4lkL6hsZs1p5aieuv7Hg1+tvSJOr9AysFYA/vgg7iTEEIAxnpezqG90HZC5C 71iqxlS3+epFuNvcQO6miH9YIKMkrMD57vAhcxNb/BCXO5FxFLaowBaDWab03A0r1kAb1f mvnRZBDXxXp6bRSzAOS+QIhWVuQslAYeS5Or/eEmS5XmSJrwdGLQq8SDrtHdrYB27aiXdN AkeexL9L3dEUSbqH6aGnEL76evPrSH2nLdO7HXmGPoKVSZ+B8ewhppDd5Cua+A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673955340; a=rsa-sha256; cv=none; b=EJnuRsMVKzgl4RXBsdjmJCZarwXwsYL1LznirI4UbnDFOKNhw7OzmWls8jyBfgKHU7muOd rtyfX++TvGeK9xvUwsbpkziXnURwmVFCIMdTRF6iWdVQ6l9pQWsIFH1K91Cw4CTt8YUDLR UEUzMbPep2yBCbnw0a3QmtI7tvXj1cXFFRdfRVy5fT5DGWt8Zhe06x09DhJnGpd7ET5ttk cXuYcGhMgRqRv3r2YZRu7M0TPXp2tOHATK26D0hKU9LvxyTbHq2zjAUjwJyckZc1Yc/4YZ lc05VrN9OJwhYQABQH+znwUW/yanljV9sUkm1SwuWRp1GL/Ta5t2c+lc+/rG/w== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Nx6Jr2Wr7zVG1 for ; Tue, 17 Jan 2023 11:35:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 30HBZeVZ019053 for ; Tue, 17 Jan 2023 11:35:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 30HBZeKL019052 for usb@FreeBSD.org; Tue, 17 Jan 2023 11:35:40 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 244356] Writing to a USB 3.0 stick is very slow Date: Tue, 17 Jan 2023 11:35:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 12.1-RELEASE X-Bugzilla-Keywords: needs-qa, performance X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: icarus.m+freebsdbugzilla@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244356 icarus.m+freebsdbugzilla@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |icarus.m+freebsdbugzilla@gm | |ail.com --- Comment #92 from icarus.m+freebsdbugzilla@gmail.com --- Just wanted to add another data point as I _suspect_ I was hit by this very issue. I'm using a USB 3.0 disk case: ICY BOX IB-AC703-U3 , which the vendor claims can reach 6GB/s. I put a 1TB Patriot P200 2,5`` SSD SATA disk in the case. = The disc spec says 530MB/s read, 460MB/s write. On a Linux system I can reliably get 440MB/s write. On a system installed with: `FreeBSD 12.2-RELEASE-p10 b26f74b5984(HEAD) TRUENAS` I get varying behaviour. The motherboard I use has USB 2.0 and USB 3.0 port= s. No other USB devices are connected. I only connect the drive to USB 3.0 por= ts. I connect the drive after the machine boots fully. About 90% of times I get= the following message in dmesg: ``` ugen0.2: at usbus0 umass0 on uhub1 umass0: = on usbus0 umass0: SCSI over Bulk-Only; quirks =3D 0x8100 (... redacted...) da0: Fixed Direct Access SPC-4 SCSI device (... redacted...) da0: 40.000MB/s transfers (... redacted...) ``` and indeed the speed is < 40MB/s. 500GB of files of varying sizes was writt= en at 20MB/s. About 10% of times I get the following message in dmesg: ``` ugen0.2: at usbus0 umass0 on uhub1 umass0: = on usbus0 umass0: SCSI over Bulk-Only; quirks =3D 0x8100 (... redacted...) da0: Fixed Direct Access SPC-4 SCSI device (... redacted...) da0: 400.000MB/s transfers (... redacted...) ``` and the speed is < 400MB/s. The same 500GB of files were written at 160MB/s= and the bottleneck was on the source (i.e. the source was at max read capacity). Notice in the slow case, the message says: `rev 2.10/3.01` , whereas in the fast case it says: `rev 3.00/3.01` There's nothing additional that I do between disconnecting and connecting t= he drive. I just do it multiple times until I see the right message. Let me know if I can provide any further diagnostics. --=20 You are receiving this mail because: You are the assignee for the bug.=