From nobody Mon Jun 21 22:24:02 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 BA7A011CD95E for ; Mon, 21 Jun 2021 22:24:10 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) (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 4G83wV44JRz4sGk for ; Mon, 21 Jun 2021 22:24:10 +0000 (UTC) (envelope-from mafsys1234@gmail.com) Received: by mail-pj1-x1032.google.com with SMTP id l11so6485603pji.5 for ; Mon, 21 Jun 2021 15:24:10 -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=fNZeQvnnDdwrcMQjylE3W2ZyL32JQgmO0Pzc+GnIqIE=; b=bjDSau+iY4lXSU3I/oXC6PNsT99ra3brZx/JOOzcstsJACbXGOdXotGKvr6tgs68HN fY++WLdhI2cX4P2WSwnHJ0pmLzv1OdgLUUNn5wq+CZPu1+lk2zURalT/0w84AtqxmmkH 3qCMCAJoYUTNO/kYrdrb/1dSW8OkAvHzuPDuu3huw8/bDOUSvoLZpfqvSFDEBFfsiWNo RnxfDMy6NVWXtUs95bopAQ12/HpngWBh31WD8m6bPkcBbO6C4exzwnqCxtnQxigXCgJF CLOeV/XqX4Wzphz8Qjw9gKSjQBkOwo5EVlLulGc1k7pQZmtJwHjvgWZuhHtCJ7BRCcK9 2PYw== 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=fNZeQvnnDdwrcMQjylE3W2ZyL32JQgmO0Pzc+GnIqIE=; b=etsQa1OIJQAsblNFZdMCF9kx92FCAp0p20I/L3CsoISen6i/d/6bxROwp9m/1IJTJT +hyh2fQ3hUlnD/tK8BtAa0WCyMZvAdLBC/ssDexgQRMAcTojXPdujv0dA64wwmyWXkZD 3cyJKnhjuRJNDbNvdGerS21FYMF0s9qh14XQO1rh9NXO9pmbKOjBoo9v0KG3bgB92422 NgaqmjV+xr2cr7kFOxW4+dKbCX9q7XySGKLR25JzApPEU4jNLlP7eU3roiThilrGt7g6 VTF7Cx0dKwW9EB2Czho5pwJAxf/fHEVHbL0DkmIhUu5zSl0QtBXn2newNCsXVWyAn17l AzRw== X-Gm-Message-State: AOAM531AcCENBpP9vPRoasmmsEDDdPNdQg46Y+KTvvsvCHzWISdxm0fL Fob/gzS6T5yJ+NV0mrxCYC0yCRzXW+P43g== X-Google-Smtp-Source: ABdhPJxdZfthesUslG85eoAuf/lfjumLhFqiHLMknOX3L+PotNkWl3uGrTw0hSHw9sQ2A8U1v9t8EA== X-Received: by 2002:a17:90b:3144:: with SMTP id ip4mr498592pjb.2.1624314248859; Mon, 21 Jun 2021 15:24:08 -0700 (PDT) Received: from [192.168.1.10] ([115.69.53.183]) by smtp.gmail.com with ESMTPSA id m21sm184953pjz.57.2021.06.21.15.24.07 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Jun 2021 15:24:08 -0700 (PDT) Subject: Re: Raspberry Pi 3B+ and pitiful network speeds To: Denis Ovsienko , freebsd-arm@freebsd.org References: <20210620144513.1f91a68f@basepc> <169baf0b-3f3c-f1dc-4a6f-b8a0ef863f51@denninger.net> <20210620154105.0c83bbcc@basepc> <20210620222922.51da1818@basepc> <3fa3f2a6-8560-f413-b2eb-5c172ce025eb@gmail.com> <6B4F2FB6-ABA1-4CFA-BE2A-6A466C30FF02@yahoo.com> <20210621111301.75fa1c7a@basepc> From: MJ Message-ID: Date: Tue, 22 Jun 2021 08:24:02 +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: <20210621111301.75fa1c7a@basepc> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-AU X-Rspamd-Queue-Id: 4G83wV44JRz4sGk X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N > * an nc process at each end of the TCP connection > * a dd process piped to each nc process to measure the throughput > * no filesystem access, hence the dd processes reading from /dev/urandom > (or /dev/zero if you like) and writing to /dev/null > > Which would be along these lines: > > # TCP download > freebsdrpi$ nc -l 10000 | dd bs=1m of=/dev/null > linuxpc$ dd if=/dev/zero bs=1M count=2000 status=progress | \ > nc freebsdrpi 10000 > # TCP upload > linuxpc$ nc -l 15000 | dd bs=1M of=/dev/null status=progress > freebsdrpi$ dd if=/dev/zero bs=1m count=2000 | nc linuxpc 15000 Thank you for your assistance, Denis. This is a lengthy post. Results from FreeBSD 13 headless PC (gateway) to FreeBSD RPI3B+ (rpi3): -------------------------------------------- [TCP DOWNLOAD] RPI3B+: nc -l 10000 | dd bs=1m of=/dev/null 0+342615 records in 2000+0 records out 2097152000 bytes transferred in 277.126050 secs (7567502 bytes/sec) FreeBSD13: dd if=/dev/zero bs=1M count=2000 status=progress | nc rpi3 10000   2094006272 bytes (2094 MB, 1997 MiB) transferred 265.056s, 7900 kB/s 2000+0 records in 1747+506 records out 2097152000 bytes transferred in 265.354504 secs (7903209 bytes/sec) -------------------------------------------- [TCP UPLOAD] RPI3B+: dd if=/dev/zero bs=1m count=2000 | nc gateway 15000 2000+0 records in 2000+0 records out 2097152000 bytes transferred in 198.379433 secs (10571418 bytes/sec) FreeBSD13: nc -l 15000 | dd bs=1M of=/dev/null status=progress  2095054848 bytes (2095 MB, 1998 MiB) transferred 200.017s, 10 MB/s 0+281264 records in 2000+0 records out 2097152000 bytes transferred in 203.023846 secs (10329585 bytes/sec) <<< The gateway/FreeBSD13 is gigabit capable on the tested card.>>> I also tested using iperf: Upload from FreeBSD PC to RPI3B+: iperf -c rpi3 -w 2m -t 30s -i 1 ------------------------------------------------------------ Client connecting to rpi3, TCP port 5001 TCP window size: 32.8 KByte (WARNING: requested 1.91 MByte) ------------------------------------------------------------ [  1] local 192.168.1.106 port 29887 connected with 192.168.1.24 port 5001 [ ID] Interval       Transfer     Bandwidth [  1] 0.00-1.00 sec  7.75 MBytes  65.0 Mbits/sec [  1] 1.00-2.00 sec  8.12 MBytes  68.2 Mbits/sec [  1] 2.00-3.00 sec  10.5 MBytes  88.1 Mbits/sec [  1] 3.00-4.00 sec  10.4 MBytes  87.0 Mbits/sec [  1] 4.00-5.00 sec  10.2 MBytes  86.0 Mbits/sec [  1] 5.00-6.00 sec  10.2 MBytes  86.0 Mbits/sec [  1] 6.00-7.00 sec  6.00 MBytes  50.3 Mbits/sec [  1] 7.00-8.00 sec  9.75 MBytes  81.8 Mbits/sec [  1] 8.00-9.00 sec  8.88 MBytes  74.4 Mbits/sec [  1] 9.00-10.00 sec  8.38 MBytes  70.3 Mbits/sec [  1] 10.00-11.00 sec  10.0 MBytes  83.9 Mbits/sec [  1] 11.00-12.00 sec  9.12 MBytes  76.5 Mbits/sec [  1] 12.00-13.00 sec  9.12 MBytes  76.5 Mbits/sec [  1] 13.00-14.00 sec  10.1 MBytes  84.9 Mbits/sec [  1] 14.00-15.00 sec  5.38 MBytes  45.1 Mbits/sec [  1] 15.00-16.00 sec  7.50 MBytes  62.9 Mbits/sec [  1] 16.00-17.00 sec  7.62 MBytes  64.0 Mbits/sec [  1] 17.00-18.00 sec  9.25 MBytes  77.6 Mbits/sec [  1] 18.00-19.00 sec  5.38 MBytes  45.1 Mbits/sec [  1] 19.00-20.00 sec  5.62 MBytes  47.2 Mbits/sec [  1] 20.00-21.00 sec  10.0 MBytes  83.9 Mbits/sec [  1] 21.00-22.00 sec  8.62 MBytes  72.4 Mbits/sec [  1] 22.00-23.00 sec  9.88 MBytes  82.8 Mbits/sec [  1] 23.00-24.00 sec  6.25 MBytes  52.4 Mbits/sec [  1] 24.00-25.00 sec  9.88 MBytes  82.8 Mbits/sec [  1] 25.00-26.00 sec  10.2 MBytes  86.0 Mbits/sec [  1] 26.00-27.00 sec  10.2 MBytes  86.0 Mbits/sec [  1] 27.00-28.00 sec  10.2 MBytes  86.0 Mbits/sec [  1] 28.00-29.00 sec  10.2 MBytes  86.0 Mbits/sec [  1] 29.00-30.00 sec  10.2 MBytes  86.0 Mbits/sec [  1] 0.00-30.22 sec   265 MBytes  73.7 Mbits/sec ---------------------------------------------------------------------------- From RPI3B+ to FreeBSD PC: iperf -c 192.168.1.106 -w 2m -t 30s -i 1 ------------------------------------------------------------ Client connecting to 192.168.1.106, TCP port 5001 TCP window size: 1.91 MByte (WARNING: requested 1.91 MByte) ------------------------------------------------------------ [  1] local 192.168.1.24 port 55499 connected with 192.168.1.106 port 5001 [ ID] Interval       Transfer     Bandwidth [  1] 0.00-1.00 sec  12.1 MBytes   102 Mbits/sec [  1] 1.00-2.00 sec  10.4 MBytes  87.0 Mbits/sec [  1] 2.00-3.00 sec  10.5 MBytes  88.1 Mbits/sec [  1] 3.00-4.00 sec  10.4 MBytes  87.0 Mbits/sec [  1] 4.00-5.00 sec  10.4 MBytes  87.0 Mbits/sec [  1] 5.00-6.00 sec  10.4 MBytes  87.0 Mbits/sec [  1] 6.00-7.00 sec  10.5 MBytes  88.1 Mbits/sec [  1] 7.00-8.00 sec  10.4 MBytes  87.0 Mbits/sec [  1] 8.00-9.00 sec  10.4 MBytes  87.0 Mbits/sec [  1] 9.00-10.00 sec  10.4 MBytes  87.0 Mbits/sec [  1] 10.00-11.00 sec  10.4 MBytes  87.0 Mbits/sec [  1] 11.00-12.00 sec  10.5 MBytes  88.1 Mbits/sec [  1] 12.00-13.00 sec  10.4 MBytes  87.0 Mbits/sec [  1] 13.00-14.00 sec  10.5 MBytes  88.1 Mbits/sec [  1] 14.00-15.00 sec  10.4 MBytes  87.0 Mbits/sec [  1] 15.00-16.00 sec  10.4 MBytes  87.0 Mbits/sec [  1] 16.00-17.00 sec  10.2 MBytes  86.0 Mbits/sec [  1] 17.00-18.00 sec  10.0 MBytes  83.9 Mbits/sec [  1] 18.00-19.00 sec  9.38 MBytes  78.6 Mbits/sec [  1] 19.00-20.00 sec  9.50 MBytes  79.7 Mbits/sec [  1] 20.00-21.00 sec  9.50 MBytes  79.7 Mbits/sec [  1] 21.00-22.00 sec  9.88 MBytes  82.8 Mbits/sec [  1] 22.00-23.00 sec  10.4 MBytes  87.0 Mbits/sec [  1] 23.00-24.00 sec  10.4 MBytes  87.0 Mbits/sec [  1] 24.00-25.00 sec  10.4 MBytes  87.0 Mbits/sec [  1] 25.00-26.00 sec  9.88 MBytes  82.8 Mbits/sec [  1] 26.00-27.00 sec  10.4 MBytes  87.0 Mbits/sec [  1] 27.00-28.00 sec  10.5 MBytes  88.1 Mbits/sec [  1] 28.00-29.00 sec  10.4 MBytes  87.0 Mbits/sec [  1] 29.00-30.00 sec  10.4 MBytes  87.0 Mbits/sec [  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. Thanks Matt.