From nobody Tue Jan 17 14:32:50 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 4NxBFG3gxRz2pDv3 for ; Tue, 17 Jan 2023 14:32:50 +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 4NxBFG1WQyz4BL1 for ; Tue, 17 Jan 2023 14:32:50 +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=1673965970; 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=ye1ImHFE/4LNu3b2bxuX4FkuhDiTMIb3hBb2YmmlqnI=; b=O2I2Bw7uoCq/ohtLmLOL5zPaUNdwRyOc1C64iQwNerNrTy4hliapzsdnqYJ3HSVc1sGTOj J+7t+9JeenXz1p7nRif3U8Y3ONmEnoIvZHCy9ezzCuvMpJxDlURg5YKsz+Y1/J6xJ1l0vv z+VIRLTEhLaMTpAqJBjiYohDnyUTLxIN2iTWfRQAR9RWClyAsJO7u+CjxZLnVfkevjSjxM iexKmnLjN26NsQgyra+mOigl0sqv+9Kqn5lyrPCs93809R7z4fz45CIl9BWejAgR9Mlu/v DKhcwY5oeO+E5GbjtGrsfjbAqXXXhp2oseCBj7o+gpyXVFOFGC/T8LelI0+KJw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673965970; a=rsa-sha256; cv=none; b=U4sTBKImHoKiBPTXfrYKcbd6AALVlvwB0RERLgR04D5hCA2fmheEPPYePZM9wR1Rit0wd/ tCiPv/ACH8d8wSiltGUMLnS2581U3J0XZ0AUN/C++8kUb43oYjk1u9rKXnSafglDbubDhZ ynubbF/y+uuL/fifWEmSNFgP10ylqryngjy7+R1ExUiRgvb+9omrk1P7hX3UFshjOJKbQA zUSIh90O7DwkCrhced+YfglQB3sWxhXDJi/w3gqq3BdyXCbFTlg9t3ZhoJlLsBotWG5kYa ZlhFnDs54ykPlstLrCq+THu1e/bMquK2StQwVUugzcDhGwqkcDap1Gov3suf4w== 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 4NxBFG0bZmzZvY for ; Tue, 17 Jan 2023 14:32:50 +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 30HEWoCP088239 for ; Tue, 17 Jan 2023 14:32:50 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 30HEWotN088238 for usb@FreeBSD.org; Tue, 17 Jan 2023 14:32:50 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 14:32:50 +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: 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 --- Comment #94 from blaasdf --- > Else you risk that flash areas needs to be erased before they can be writ= ten, which takes additional time. Are you talking about write amplification? That's a very good point, I tota= lly forgot about that and no, I didn't wipe the drive before each attempt. Although I suspect the problem occurs when attaching the drive, that's what made me think the problem is with the usb driver. What I mean by that is th= at once I connect the disk and see the message: ``` da0: 40.000MB/s transfers ``` the disc won't write at higher than 40MB/s rates. So I thought that during = the init sequence the usb driver "negotiates the protocol version to use" and that's what's being used afterwards. I might be totally wrong here and this might be unrelated. Just wanted to s= hare what I found in case it pushes things forward ;) --=20 You are receiving this mail because: You are the assignee for the bug.=