From owner-freebsd-current@freebsd.org Sun Jul 12 23:24:51 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 BA8F535185F; Sun, 12 Jul 2020 23:24:51 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4B4jYG3byKz48xt; Sun, 12 Jul 2020 23:24:50 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-ot1-x32d.google.com with SMTP id w17so8257491otl.4; Sun, 12 Jul 2020 16:24:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=gnCFVLimNbOWh2nB4+Q05L85oezpfiNQybscKUKcK40=; b=XTc/FvmNdoH6Sb93OKjNVZxfqrm9R9hTGN8uqIe/PtYjzfm1Lvu9tqZlKdtCBPK3wY iRgXMoW7OWrlSPt2iB8yn5u3NtvZKVMquONNMUgP3MCYwJDDWadtn2QXfJx6fh/y0g1I Zfh2PqyU2af6WuUfyL1Qw3kzBIfCJMYE3VSbOVjyt0R+sJDkvGCecJa4BeFsoplQYuYz COuoja1JOdUPPJRJGTvE+lpcwJXH+gZPZFjsvB8paCmQLTIzpDPZASZA0InzxOHF8aZi LITftK5dCgkhCQ1e5mfczMMQ5nPvWXvDccUODj2xiWNlElQQAII0rvFtUdL1YkgcZDwc MHjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=gnCFVLimNbOWh2nB4+Q05L85oezpfiNQybscKUKcK40=; b=GpTNiHt9UbAT2qPeNpFER5XxP4hcEp2Pq1/070plqTLlr8oqRd5vJVAfqMq+FaOVsS 5EL51O3LkzP0j84L/53FbjHWdv8+EixB5pIZMiyeJtrUQNlah4DPNHliFG9rVcXLdFIw p/qPH7ZldW0bJzBc9nP54X4ULZGYIkPexKoDAD5vJxjoE95EGb6M3vcGFrtRAAzqtJJu YZiK+wQI5pCVQ3rgYoIt0gb0T4TmbyNxiu4X+4rW61VAFxcwp/9bOstq7xJn1FxKXpj4 qyWJEDwlqwJsI0azTKLvb4yDVbSWR1zQQg6c618fqJpcvUjuOpGB/BUVizNSW07+Hd4u uf+A== X-Gm-Message-State: AOAM532h67eCeGQz9kPfcMZKgyHZvMxHqUeWAZUWuwkF3IevTr32zHp/ l0Sedrx84JRM5H3cXINV8j9iiKIw9Uam9kBxSH/a3S/g X-Google-Smtp-Source: ABdhPJySG9bf+68ZKEZ4SQvBw1nZNmBpv119CkBoujNL2AThTly8HzhJlpHd+gxUoDamBOEX3cWCV3LgW9IEi8ueXyU= X-Received: by 2002:a05:6830:1af9:: with SMTP id c25mr40715179otd.271.1594596288900; Sun, 12 Jul 2020 16:24:48 -0700 (PDT) MIME-Version: 1.0 References: <20200711224426.GC4213@funkthat.com> <20200712215449.GI4213@funkthat.com> In-Reply-To: <20200712215449.GI4213@funkthat.com> From: Kevin Oberman Date: Sun, 12 Jul 2020 16:24:32 -0700 Message-ID: Subject: Re: slow USB 3.0 on -current To: Hans Petter Selasky , "freebsd-usb@FreeBSD.org" , FreeBSD Current X-Rspamd-Queue-Id: 4B4jYG3byKz48xt X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=XTc/FvmN; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of kob6558@gmail.com designates 2607:f8b0:4864:20::32d as permitted sender) smtp.mailfrom=kob6558@gmail.com X-Spamd-Result: default: False [-2.70 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-0.98)[-0.977]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; NEURAL_HAM_LONG(-1.01)[-1.007]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::32d:from]; NEURAL_HAM_SHORT(-0.01)[-0.014]; FORGED_SENDER(0.30)[rkoberman@gmail.com,kob6558@gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[rkoberman@gmail.com,kob6558@gmail.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 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: Sun, 12 Jul 2020 23:24:51 -0000 On Sun, Jul 12, 2020 at 2:55 PM John-Mark Gurney wrote: > Hans Petter Selasky wrote this message on Sun, Jul 12, 2020 at 09:57 +0200: > > On 2020-07-12 00:44, John-Mark Gurney wrote: > > > Hello, > > > > > > 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. > > > > > > 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. > > > > > > I have tested Windows 10 and NetBSD 9.0 performance, and both provide > > > 100MB/sec+ w/o troubles. > > > > > > I have attached dmesg from both FreeBSD -current and NetBSD 9.0. > > > > > > Any hints on how to fix this? > > > > > > 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. > > > > > > 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. > > > > > > Has anyone else seen this issue? Ideas or thoughts on how to resolve > > > the performance issues? > > > > Can you check the output from ifconfig. What is the actual link speed. I > > suspect it has something to do with the MII bus code/implementation. > > ifconfig is reporting it's 1000baseT. > > > Also check output from "vmstat -i" during usage to see if the number of > > IRQ/s is low. > > Not sure what is considered low, but I'm seeing consistently around > 7800 int/s for xhci0. > > -- > John-Mark Gurney Voice: +1 415 225 5579 > This is just for clarification, but is 'MB' MBytes? In the networking world that is what it would mean, but the context leads me to think that you mean Mbits. It's also possible that some numbers are in bits and some in Bytes, causing real confusion. I'm sure that 1000baseT is bits, of course. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683