From owner-freebsd-current@freebsd.org Mon Jul 13 01:26:33 2020 Return-Path: Delivered-To: freebsd-current@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 B5CEF354E46 for ; Mon, 13 Jul 2020 01:26:33 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic301-20.consmr.mail.gq1.yahoo.com (sonic301-20.consmr.mail.gq1.yahoo.com [98.137.64.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4B4mFg5DLTz4G5J for ; Mon, 13 Jul 2020 01:26:31 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: Dal7fSQVM1mJ70mMY87719JlsEwz63muv9fc0h9Slt8jNzSGmf.KHC_08w7Rn3E VZTRrQdv.kliCzpsHNYZ6PpN66Mz5Dk0xtrdpgvnzMwVe3QFQ1N0A3z932xhv3tNSqavGbSz8VrM BmUULNXobvXujao7zOR79j3E.ng0kUCt5EstT9CHO1SYaELkr.oohjujt7BZA8vVa179GG6LpoZE pfk57t0qunKftP8lXwawMVELoTumLIpiqHBDh5Yuxu3XcMVbdb89n8sU8WOp1zrtPvAXZV8aqq6w C22_DaZFp5V21epxDyHI9XpHbrE7uAyAT7h9v5BcLnOSIR3yuK2O0oEZsimuVARYS9BRjbBksVnz VKCSnplMYmZV8Y3BNOhrFRRl.NJ_7kZLsLXnZyeLjBZ_6BPmXkVBCr_Qva0LNfig2mPP2pDYL921 XSSMn4MoXfLReGmkKABNaTgJrkJpjkUzYALUQZOenrn6Z7lia63TjoTVyO_UTN4eucrCNRHbQpJx rFaQmXKlntGU4F5Wq6VtyxNSwXQkztn_VNpMjqANhT3apQXzDCiLOcVBvyO3n2L3nQcpUgSyE2mC FpSn62Kf5ZRbYx.Xnh1i_KVH9E.G6ojSUXmzkrEoDYGHiDZqZU8pZInbjOor6AnGeVCQ1UbscTuA 2xTpWJyJDVCAeqoOc5Z503vUSjmw9FPyqXogyekR0kf8B7CpXNrX5hnd_keNLqCjWI2eb3arPJ71 BrjQHO5I0ow0lN5s2c6dJ52xcAjSKE_ceVYdxyLU08eOudwoFtsdwRl5fsCOTYAQbQrUp82oU90e 1MxSRbcqWp.rgsS1SurFgRYPp4opPuGSj1XIrsxL7e7n.9iY_ygrZoouCcrQ1xwEFJaJHCh.IpMT X9BhQLFSrVWKZWj7032Nycs_dSqtmJ_Gs61jskZEHg2R5AHlkfaKiLze4ZMKJIv6CR0wFeNdcQRP aNfdY.XK9iTSxZG4Lpgqaihpx32tzDZPR7Cg4v3_BIKE0DHY9xw6NrO4W0xm_qmmhqqZQM1Pi4OV 4PNnn6zQLO3dzZMXbMWCCR9N3OCv8OuCuadtJLyKu7C6tYNSLSVeI5DvCeQwMbBLcKvtmz5W2z0v l8TUdno0jhJePVv85jolQ3jKK9zrSLEa9nAz7Jc5uHiv8LRqv2WntztuxbMNsXksDQnepvQ04caZ 8ZnbzOUsW9xXhEWrVykS2F.fXtDQE1ps.i6Mm.P.Q92zKwOx1KqseokwQhHMuAI5LbsC5JOJ582N pko9S.PpHCfCXdOxeIsd2CztiyGaA4e1ZGMK49GQMjtX8APKM5rKvElM0lLUWKr_uqnyXNnY_bbC 61S.f3RR3FdQYuAn2meUYWMqPVDapWSz9uJKehu.uzx1YP2Eac3cPZpcAG3xoUjj0npUlJ_Jx2lC 4laJvZ_pYng23s_u1.6RiQD0- Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.gq1.yahoo.com with HTTP; Mon, 13 Jul 2020 01:26:30 +0000 Received: by smtp419.mail.bf1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 1b5528573ac9db2cb3a88db2b68aa077; Mon, 13 Jul 2020 01:26:26 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: slow USB 3.0 on -current Message-Id: <9D8F806C-2F11-4338-9905-E91BBCDEFC01@yahoo.com> Date: Sun, 12 Jul 2020 18:26:24 -0700 To: John-Mark Gurney , FreeBSD Current X-Mailer: Apple Mail (2.3608.80.23.2.2) References: <9D8F806C-2F11-4338-9905-E91BBCDEFC01.ref@yahoo.com> X-Rspamd-Queue-Id: 4B4mFg5DLTz4G5J X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.61 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.64.146:from]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; NEURAL_HAM_LONG(-1.00)[-0.996]; NEURAL_HAM_MEDIUM(-1.02)[-1.017]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[98.137.64.146:from]; NEURAL_HAM_SHORT(-1.10)[-1.099]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/21, country:US]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jul 2020 01:26:33 -0000 John-Mark Gurney jmg at funkthat.com wrote on Sat Jul 11 22:44:36 UTC 2020 : > I'm having issues getting good ethernet performance from a USB = ethernet > adapter (ure) under FreeBSD on an HP EliteDesk 705 G2 Mini[1]. It's = an > AMD PRO A10-8700B based system using the AMD A78 FCH chipset. >=20 > Under FreeBSD -current (r362596), 12.1-R and 11.4-R, the RealTek USB > adapter only gets around 10MB/sec performance. During the transfer, > the CPU usage is only around 3-5%, so it's definitely not CPU bound. >=20 > I have tested Windows 10 and NetBSD 9.0 performance, and both provide > 100MB/sec+ w/o troubles. >=20 > I have attached dmesg from both FreeBSD -current and NetBSD 9.0. >=20 > Any hints on how to fix this? >=20 > This may be related, but I'm also having issues w/ booting when I have > both a SD USB 2.0 card reader AND the ure plugged into USB 3.0 ports. >=20 > If I move the SD card reader to USB 2.0, the umass device will attach > and work. I have also attached a clip of the dmesg from that > happening. >=20 > Has anyone else seen this issue? Ideas or thoughts on how to resolve > the performance issues? >=20 It might prove useful to use iperf3 with # iperf3 -s on one machine and doing # iperf3 -c ADDR . . . # iperf3 -R -c ADDR . . . on the other. (That last swaps the sender/receiver status.) All 3 commands will have output. The -s one will produce output for each of the -c ones. The outputs for the sender(s) will include Cwnd (congestion window size) information that may be relevant. It will report bit rate and retry count sampling (and overall figures). Comparing the output of using iperf3 under NetBSD 9.0 or Windows 10 could be instructive. My observation would be that neither type of USB3 Ethernet adapter that I've tried (different chipsets) get anywhere near 100 MByte/s when ifconfig reports 1000baseT . The Cwnd figures are smaller than for the built-in Ethernets that manage much faster overall transfer rates. Example where 192.168.1.112 has the USB3 EtherNet based adapter in use and 192.168.1.120 has built-in EtherNet that can do 900 Mbit/s+ on the network: # iperf3 -s ----------------------------------------------------------- Server listening on 5201 ----------------------------------------------------------- Accepted connection from 192.168.1.112, port 20519 [ 5] local 192.168.1.120 port 5201 connected to 192.168.1.112 port = 44212 [ ID] Interval Transfer Bitrate [ 5] 0.00-1.00 sec 23.8 MBytes 200 Mbits/sec =20 [ 5] 1.00-2.00 sec 27.6 MBytes 232 Mbits/sec =20 [ 5] 2.00-3.00 sec 27.6 MBytes 232 Mbits/sec =20 [ 5] 3.00-4.00 sec 27.6 MBytes 232 Mbits/sec =20 [ 5] 4.00-5.00 sec 27.6 MBytes 232 Mbits/sec =20 [ 5] 5.00-6.00 sec 27.6 MBytes 232 Mbits/sec =20 [ 5] 6.00-7.00 sec 27.6 MBytes 232 Mbits/sec =20 [ 5] 7.00-8.00 sec 27.6 MBytes 232 Mbits/sec =20 [ 5] 8.00-9.00 sec 27.6 MBytes 232 Mbits/sec =20 [ 5] 9.00-10.00 sec 27.6 MBytes 232 Mbits/sec =20 [ 5] 10.00-10.19 sec 5.13 MBytes 231 Mbits/sec =20 - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate [ 5] 0.00-10.19 sec 277 MBytes 228 Mbits/sec = receiver ----------------------------------------------------------- Server listening on 5201 ----------------------------------------------------------- Accepted connection from 192.168.1.112, port 18711 [ 5] local 192.168.1.120 port 5201 connected to 192.168.1.112 port = 48624 [ ID] Interval Transfer Bitrate Retr Cwnd [ 5] 0.00-1.00 sec 22.5 MBytes 188 Mbits/sec 273 17.0 KBytes = =20 [ 5] 1.00-2.00 sec 19.0 MBytes 159 Mbits/sec 214 14.3 KBytes = =20 [ 5] 2.00-3.00 sec 22.6 MBytes 190 Mbits/sec 271 29.8 KBytes = =20 [ 5] 3.00-4.00 sec 10.6 MBytes 88.9 Mbits/sec 131 28.4 KBytes = =20 [ 5] 4.00-5.00 sec 28.2 MBytes 237 Mbits/sec 343 17.0 KBytes = =20 [ 5] 5.00-6.01 sec 25.7 MBytes 214 Mbits/sec 310 14.3 KBytes = =20 [ 5] 6.01-7.00 sec 15.4 MBytes 130 Mbits/sec 178 19.8 KBytes = =20 [ 5] 7.00-8.00 sec 20.6 MBytes 173 Mbits/sec 229 21.3 KBytes = =20 [ 5] 8.00-9.00 sec 29.8 MBytes 250 Mbits/sec 345 19.8 KBytes = =20 [ 5] 9.00-10.00 sec 29.9 MBytes 251 Mbits/sec 325 17.0 KBytes = =20 [ 5] 10.00-10.19 sec 7.54 MBytes 332 Mbits/sec 89 2.83 KBytes = =20 - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-10.19 sec 232 MBytes 191 Mbits/sec 2708 = sender ----------------------------------------------------------- Server listening on 5201 ----------------------------------------------------------- # iperf3 -c 192.168.1.120 Connecting to host 192.168.1.120, port 5201 [ 5] local 192.168.1.112 port 44212 connected to 192.168.1.120 port = 5201 [ ID] Interval Transfer Bitrate Retr Cwnd [ 5] 0.00-1.00 sec 29.0 MBytes 243 Mbits/sec 14 326 KBytes = =20 [ 5] 1.00-2.00 sec 27.6 MBytes 232 Mbits/sec 0 326 KBytes = =20 [ 5] 2.00-3.00 sec 27.6 MBytes 232 Mbits/sec 0 326 KBytes = =20 [ 5] 3.00-4.00 sec 27.6 MBytes 232 Mbits/sec 0 326 KBytes = =20 [ 5] 4.00-5.00 sec 27.6 MBytes 232 Mbits/sec 0 326 KBytes = =20 [ 5] 5.00-6.00 sec 27.6 MBytes 232 Mbits/sec 0 326 KBytes = =20 [ 5] 6.00-7.00 sec 27.6 MBytes 232 Mbits/sec 0 326 KBytes = =20 [ 5] 7.00-8.00 sec 27.6 MBytes 232 Mbits/sec 0 326 KBytes = =20 [ 5] 8.00-9.00 sec 27.6 MBytes 232 Mbits/sec 0 326 KBytes = =20 [ 5] 9.00-10.00 sec 27.6 MBytes 232 Mbits/sec 0 326 KBytes = =20 - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-10.00 sec 277 MBytes 233 Mbits/sec 14 = sender [ 5] 0.00-10.19 sec 277 MBytes 228 Mbits/sec = receiver # iperf3 -R -c 192.168.1.120 Connecting to host 192.168.1.120, port 5201 Reverse mode, remote host 192.168.1.120 is sending [ 5] local 192.168.1.112 port 48624 connected to 192.168.1.120 port = 5201 [ ID] Interval Transfer Bitrate [ 5] 0.00-1.01 sec 23.9 MBytes 198 Mbits/sec =20 [ 5] 1.01-2.01 sec 17.6 MBytes 147 Mbits/sec =20 [ 5] 2.01-3.01 sec 22.6 MBytes 189 Mbits/sec =20 [ 5] 3.01-4.00 sec 17.0 MBytes 144 Mbits/sec =20 [ 5] 4.00-5.00 sec 29.4 MBytes 247 Mbits/sec =20 [ 5] 5.00-6.00 sec 20.7 MBytes 173 Mbits/sec =20 [ 5] 6.00-7.01 sec 16.8 MBytes 140 Mbits/sec =20 [ 5] 7.01-8.00 sec 22.9 MBytes 193 Mbits/sec =20 [ 5] 8.00-9.00 sec 31.0 MBytes 261 Mbits/sec =20 [ 5] 9.00-10.00 sec 29.9 MBytes 251 Mbits/sec =20 - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-10.19 sec 232 MBytes 191 Mbits/sec 2708 = sender [ 5] 0.00-10.00 sec 232 MBytes 194 Mbits/sec = receiver I'll note that between machines with built-in EtherNet that can sustain fast transfers overall, the Cwnd figures tend to vary but can reach 1 MBytes+. The Retr counts tend to still exist. By contrast, when the USB3 EtherNet is receiving above, the maximum Cwnd reported above for the sender at the time was: 29.8 KBytes. I have not tried NetBSD, Windows 10, or Linux comparisons. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)