From nobody Mon Jun 21 02:16:52 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 EC3417CCB9E for ; Mon, 21 Jun 2021 02:17:01 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) (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 4G7Y7d11RQz3hyf for ; Mon, 21 Jun 2021 02:17:00 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: by mail-pg1-x52d.google.com with SMTP id h4so1368489pgp.5 for ; Sun, 20 Jun 2021 19:17:00 -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=X5V52HVvXvCHToQmpnEChDhU5fwb9I+kUBLVaStB9E0=; b=ueYJ7mqYASvDTz0FEeCSJVRyTdUd9HwkGz8wsK/pyO+ODgjjbhkpFxUvpowMmuje7U ZXrCzjQF2PHPmZfT1cOZ827PhlggBAIAtxnX0/q8ieEqM211M25jgyP2SfDrd7VbbqCS sOo/VRl+W1bOW5zW5bWDjXp0eEJtVVo9piORlxUimBLbkXqvWTfuvu6tkVlEohrdSIhr HrNYw66GpA9RHEONX+61ejTGpzJTHsApDwapH6uqL1HUty6+2wyYafHPwzaMsinx0pLK S5+Q9H+xJh/Gicsp0l2MzcoEqGF3ZAjyp6IyoKJs4cAROY31rYK8A8LvTHLLowha3DBO aFNQ== 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=X5V52HVvXvCHToQmpnEChDhU5fwb9I+kUBLVaStB9E0=; b=kpLwyyOEMZz83FP7oMOVOEQ1vbCX7JLjlLFhSjp0e4qWux8sUD93LbIcgzvS03wfL/ 7LnZAhEeM/v++IZFjCjtlm8wkEuLqgQRUWbF7CPmZEJ+K5mZhZ2de+ofz7jD8/SQfnIi Ulcef7mXu1I62Adr+dfa1G/IWxcwNEAQsDHd5ePBDm3sjx1MFqBnVzpsRc1bgFHQ8A3k RR96YbCivh7JCjLO/BsUqYpxREC+PpRu/h1ClAT7+Y7vYQ+SsqZ/+X4w+S8sVn0RFdMT X9KmctSEX8zT3/VhqQouO5t1kG36E9nQd2wnO3vMsjYYhJSSQ4vu9RJhBE6QCP6kK0YK XgAg== X-Gm-Message-State: AOAM531EdRJiBL0MUAWruAJM3c6fuklkaItvAYpbsOwW2EmVA5JnguUr Bd6T8ww5sEa040JsHIn5f3xBzsMItJo= X-Google-Smtp-Source: ABdhPJzpP1W45swHiRHLiGumqLOFUs2osuR94I4m0sEnpLNi5hrpDsqVUfZf8L0+jwwMmyxUc4pcPA== X-Received: by 2002:a65:55ca:: with SMTP id k10mr21660735pgs.230.1624241819188; Sun, 20 Jun 2021 19:16:59 -0700 (PDT) Received: from [192.168.1.10] ([115.69.53.183]) by smtp.gmail.com with ESMTPSA id q21sm16657631pjg.43.2021.06.20.19.16.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 Jun 2021 19:16:58 -0700 (PDT) Subject: Re: Raspberry Pi 3B and pitiful network speeds To: freebsd-arm@freebsd.org References: <20210620144513.1f91a68f@basepc> <169baf0b-3f3c-f1dc-4a6f-b8a0ef863f51@denninger.net> <20210620154105.0c83bbcc@basepc> <20210620222922.51da1818@basepc> From: MJ Message-ID: <3fa3f2a6-8560-f413-b2eb-5c172ce025eb@gmail.com> Date: Mon, 21 Jun 2021 12:16:52 +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: <20210620222922.51da1818@basepc> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-AU X-Rspamd-Queue-Id: 4G7Y7d11RQz3hyf X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=ueYJ7mqY; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of mafsys1234@gmail.com designates 2607:f8b0:4864:20::52d 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]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::52d: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)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::52d:from:127.0.2.255]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::52d:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-arm] X-ThisMailContainsUnwantedMimeParts: N On 21/06/2021 7:29 am, Denis Ovsienko wrote: > On Sun, 20 Jun 2021 15:41:05 +0100 > Denis Ovsienko wrote: > >> Notwithstanding your point, under right conditions NetBSD 9.2 can >> fully utilize the RPI3B's 100Mbit/s Ethernet interface, at least in >> one direction at a time. Hopefully that means it should be possible in >> FreeBSD too. > As it turns out, it is indeed possible with FreeBSD. > > In mostly-simplex tests the RPI3B managed to download at 11.4MB/s or > to upload at 10.2MB/s. A simultaneous two-way test resulted in 7.6MB/s > download and 7.0MB/s upload, so it looks like the 100Mb/s duplex PHY > internally connects through a 150Mb/s simplex bottleneck or some such. > The numbers come from a quick nc+dd test using 1000MB of pseudo-random > data, but I remember observing similar results with iperf earlier > (cannot remember which OS). > > The tests were done using FreeBSD 13.0-RELEASE [1] and RPI3B rev A22082 > with proper power and cooling. The SD card was a basic one. dd was > reading from /dev/urandom and writing to /dev/null. Well, personally, I don't like the idea of /dev/urandom, however, I can supply these for a file generated: dd if=/dev/zero of=/tmp/test.img bs=1M count=500 This is what I have been using for testing. Here are the figures to /dev/null: dd if=/tmp/test.img of=/dev/null oflag=sync 1024000+0 records in 1024000+0 records out 524288000 bytes transferred in 23.079903 secs (22716213 bytes/sec) dd if=/tmp/test.img of=/dev/null oflag=direct 1024000+0 records in 1024000+0 records out 524288000 bytes transferred in 22.398410 secs (23407376 bytes/sec) > > As a separate note, in my setup ifconfig tells "100baseTX > ", which is expected for RPI3B. In the original message it > tells "1000baseT ", which means the board is RPI3B+ or Hi Denis. Yes, you're correct. This is the 3B+. I apologize for misrepresenting it. It is also the earlier version board, Built in 2017. I think it's version 1.1 (it's in a case, I don't feel like dismantling it). > RPI4B. So another useful thing to do in addition to the method above > would be to identify the model exactly and to double-check the earlier > test results (Mb/s or MB/s). Again, sorry, misspelling. The figures are in megabytes. So, on the Devuan, I can consistently obtain 18.x megabytes transfer using FTP or Samba. On FreeBSD it's lucky to top 10. I have also stepped up the CPU frequency to 1400, but this makes no discernible difference. The copying, when running Devuan, achieves the same speeds regardless of whether the input is from the SD card or an attached USB (Sandisk Extreme 128GB 3.1). The power supply is official raspberry pi. The case has a fan, it is set for 50degC turn on (via GPIO). For FreeBSD there is not even an attached USB; nothing is on that bus. Thanks. Matt.