From nobody Thu Jun 24 11:14:56 2021 X-Original-To: freebsd-arm@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 54A175D4466 for ; Thu, 24 Jun 2021 11:15:05 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) (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 4G9cx43l32z3rf0 for ; Thu, 24 Jun 2021 11:15:04 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: by mail-pl1-x633.google.com with SMTP id y13so2773280plc.8 for ; Thu, 24 Jun 2021 04:15:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=C834GhN2imIeHFkVK2x+zA/6RqHg1dHzKm00vuAryr4=; b=SyB0ws6iy0cvY1wb3adQY8J2VXoa0FN0HxxdSqtRTW9bnfsUF99y0sw1Nu5bRobUKf SZANyYF9NNHv91QWeJH1A19GuKy3N4YEugTtqWFU4//wNA/kShSBLPz/BUwZgRUV6Zdb AgFRLIRfe2+r1FQEJGoj89fVAeCIoZuCErwkwZCCfnmRJpNwXv8p2rOSoQM3+3u5vwab 9Yr6A6qqoHEmTMIGRsR/IBBkHFukklvKyYEYrO7yZxLmi7M3evlzW0wRMZiZPElRUOel P1M3hOLuLhMAut3R2CkEXtbsHPkK+iFb3aAKqC9tAMiMbjMXEnqMHz0I/Id/aYHTPyHv lqGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=C834GhN2imIeHFkVK2x+zA/6RqHg1dHzKm00vuAryr4=; b=mmZFxJFgye+giJeaApAYM9kNy6APhlFC8CQPjs/7kwx4riyECCbHP6kDGDINUHnSyG cwJK4BZw/MkGW0sdV6HxVy7zh2AJGj+b2YUpzJ/bhRR9e0z580xtPrQn+dMm1YDrK2Be pEK95yuGznmR6TPzmGynRXUcME0uliBwq6A8+Fy1z6q9tUqM0LD+AeIYEBcQV4C4/B8D J41OEgjVIly3XrVFJEOYa3xD21q5z/So7TIWGtlfVC26unmj+5v6N5fsbAqKfwJyQ3g6 egcUwOsT781RGY3eyq47GsXxTwpud73tEjz2UJBQBu+AzAqsZXj+Hn+5bMQlZ9M+193D sJRA== X-Gm-Message-State: AOAM533RZLzLGjy6zWAoXwULm5VRvME/s+AwjQiHroP6MEVIvrtRmkLi nAcAOa+RuQnAit2K4U0ccxcqllYMTNEu1Q== X-Google-Smtp-Source: ABdhPJzyzGUVhJhgLyEO2lt7k8WVIaO71ZAO/vgNzypenCGGC6CqzZPpZjvmg7xwEy88WO8b19/D2w== X-Received: by 2002:a17:902:da89:b029:123:39a1:2a76 with SMTP id j9-20020a170902da89b029012339a12a76mr3863633plx.68.1624533302738; Thu, 24 Jun 2021 04:15:02 -0700 (PDT) Received: from [192.168.1.10] ([115.69.53.183]) by smtp.gmail.com with ESMTPSA id j2sm2703266pfj.168.2021.06.24.04.15.00 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Jun 2021 04:15:02 -0700 (PDT) Subject: Re: Raspberry Pi 3B+ and pitiful network speeds To: Paul Zimmerman , Denis Ovsienko , Mark Millard via freebsd-arm References: From: MJ Message-ID: <624f56ee-0500-a41d-96b7-277824c30da9@gmail.com> Date: Thu, 24 Jun 2021 21:14:56 +1000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-AU X-Rspamd-Queue-Id: 4G9cx43l32z3rf0 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=SyB0ws6i; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of mafsys1234@gmail.com designates 2607:f8b0:4864:20::633 as permitted sender) smtp.mailfrom=mafsys1234@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FREEMAIL_TO(0.00)[gmail.com,ovsienko.info,freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::633:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::633:from:127.0.2.255]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::633:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-arm] X-ThisMailContainsUnwantedMimeParts: N On 24/06/2021 6:51 pm, Paul Zimmerman wrote: >> On 22/06/2021 10:37 pm, Denis Ovsienko wrote: >>> On Tue, 22 Jun 2021 08:24:02 +1000 >>> MJ wrote: >>> >>>> [ 1] 0.00-30.19 sec 310 MBytes 86.0 Mbits/sec >>>> >>>> Now, I could run these very same tests off Devuan if you like? This >>>> may help disprove any network issues? Although, as I've stated, the >>>> Devuan version running on the RPI3 consistently gets up to 3 times >>>> this speed. >>> Thank you for clarifying the test results Matt. From the numbers it >>> indeed looks like the TCP throughput never reaches even 100Mb/s. Whilst >>> the root cause of this might be a driver issue, or a consequence of the >>> "early access" board USB implementation not working well in FreeBSD, it >>> would help to eliminate trivial explanations as well. >> Thank you too Denis for your guidance in testing this appliance. >> >> The following is also addressed to all those interested: >> >> Just as a follow up, I performed some tests this morning using the old Devuan SD Card and a > new NetBSD \ >> 9.2. >> >> The summary is: >> >> Devuan/Linux is hands down faster. NetBSD 9.2 is almost 50% faster than FreeBSD 13. >> While NetBSD's result is not stellar it's still better than the pitiful FreeBSD throughput. >> >> I will likely abandon using FreeBSD, but I should probably raise a bug report for this? I am not sure of \ >> the process for this or whether it's even wanted. That is, does FreeBSD care enough about little \ >> appliances like the Raspberry Pis to spend time fixing an obviously broken network driver/stack? > I think the performance difference you are seeing vs. NetBSD might be > because the FreeBSD USB driver for the RPI3 and below does not use > interrupts, so all the USB transfers are polled. The NetBSD USB driver > is borrowed from OpenBSD, which in turn is borrowed from the mainline > Linux driver, which does use interrupts. > > - Paul Thanks Paul. In that case it seems like a waste of time posting a bug report when the driver is designed that way and only a major re-design will fix it.