From owner-freebsd-usb@freebsd.org Tue Jun 2 10:08:19 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CFE2C32FC53 for ; Tue, 2 Jun 2020 10:08:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 49bnmg5Fbxz4PGl for ; Tue, 2 Jun 2020 10:08:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id B26BC3300A4; Tue, 2 Jun 2020 10:08:19 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B10D733005B for ; Tue, 2 Jun 2020 10:08:19 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49bnmg4C2Wz4PWn for ; Tue, 2 Jun 2020 10:08:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 8B9A41B206 for ; Tue, 2 Jun 2020 10:08:19 +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 052A8JHw036231 for ; Tue, 2 Jun 2020 10:08:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 052A8JeI036227 for usb@FreeBSD.org; Tue, 2 Jun 2020 10:08:19 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, 02 Jun 2020 10:08:16 +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: olivier.freebsd@free.fr X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2020 10:08:19 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244356 --- Comment #90 from Olivier Certner --- More tests with SD_128G. Stick is dd-zeroed entirely before each test. 1. Did again the previous test (UFS+SU, 64k blocks and fragments), to confi= rm and get a feeling of possible variations. Results are worse in the sense th= at the bandwidth dip happened much earlier, after less than 240MiB had been transferred (less than 11min after start). Bandwidth is approximately the s= ame (4.4MiB/s overall, 27.8MiB/s without stalls). Got a lot more errors in dmes= g. 2. Did again the exFAT test. Bandwidth is 18.7MiB/s (50.3MiB/s not counting stalls). This is a bit worse than the previously reported results (comment #86), but still compatible (and still much better than UFS, even 64k). More importantly, I see absolutely no dmesg error at all. So the stick probably = is not "failing", it just doesn't handle 64k writes well, whereas 128k is OK. 3. Did a `yes | dd` on the whole stick on a very recent Linux laptop: Got 129MiB/s! It seems I did not do a whole `yes | dd` on FreeBSD, only one for about ~9GiB, and for this one I had seen 62.6MiB/s. So in fact the differen= ce is huge, contrary to what I thought, and much bigger than that reported by = Gary (comment #87). I will do a full `yes | dd` on FreeBSD to see. Did not have time to make any progress on GEOM_CACHE, but I should be able = to this week. --=20 You are receiving this mail because: You are the assignee for the bug.=