From nobody Sun Jun 20 14:41:05 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 374DC11CACCD for ; Sun, 20 Jun 2021 14:41:29 +0000 (UTC) (envelope-from denis@ovsienko.info) Received: from aibo.runbox.com (aibo.runbox.com [91.220.196.211]) (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 4G7Fj40mwHz3hsw for ; Sun, 20 Jun 2021 14:41:27 +0000 (UTC) (envelope-from denis@ovsienko.info) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ovsienko.info; s=selector2; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:To:From:Date; bh=HxCrEYbOoPVSl4hp2up6RJ1Smo/pe1B7SY77t0+scx8=; b=I9/TwbbjMv7zusBPX3hEAUYZwD LYjEOQMI4jXJZS0I8GUAe6bhUj4z6ehSdp+54/bbaR4HIc3+84UiGHt930Lq48FHyDGoKi4k72NXk odnQs7IYjCLp8LJEw4yTqph/uxVfWvopcwcrb3h93LSXUo4xg7+e+gfr5mD+ooAxRjHwNqq/X9WOf +SHU8J896Fo5OBj1IBa37WzpQ3148cUvF00q9YtkPZPu/yc2xqKV+J82ktWcPL2GI4Xyu0zg9aaT1 LMH0F3fePnjoN5qCnFC8Y3RAKpQubk4AloNtxe3AOayQRbMM2DrzztAMMUDBQRwD3tc+WNOpVQSwA ISFO6HYw==; Received: from [10.9.9.74] (helo=submission03.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1luyda-0003WN-0a for freebsd-arm@freebsd.org; Sun, 20 Jun 2021 16:41:26 +0200 Received: by submission03.runbox with esmtpsa [Authenticated ID (984599)] (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) id 1luydH-0001Sd-5i for freebsd-arm@freebsd.org; Sun, 20 Jun 2021 16:41:07 +0200 Date: Sun, 20 Jun 2021 15:41:05 +0100 From: Denis Ovsienko To: freebsd-arm@freebsd.org Subject: Re: Raspberry Pi 3B and pitiful network speeds Message-ID: <20210620154105.0c83bbcc@basepc> In-Reply-To: <169baf0b-3f3c-f1dc-4a6f-b8a0ef863f51@denninger.net> References: <20210620144513.1f91a68f@basepc> <169baf0b-3f3c-f1dc-4a6f-b8a0ef863f51@denninger.net> 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4G7Fj40mwHz3hsw X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=ovsienko.info header.s=selector2 header.b=I9/Twbbj; dmarc=none; spf=pass (mx1.freebsd.org: domain of denis@ovsienko.info designates 91.220.196.211 as permitted sender) smtp.mailfrom=denis@ovsienko.info X-Spamd-Result: default: False [-3.10 / 15.00]; ARC_NA(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[91.220.196.211:from]; R_DKIM_ALLOW(-0.20)[ovsienko.info:s=selector2]; RCVD_IN_DNSWL_LOW(-0.10)[91.220.196.211:from]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_GOOD(0.00)[91.220.196.211:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:91.220.196.211]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[ovsienko.info]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[91.220.196.211:from:127.0.2.255]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DKIM_TRACE(0.00)[ovsienko.info:+]; NEURAL_HAM_SHORT(-1.00)[-0.999]; NEURAL_HAM_LONG(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MID_RHS_NOT_FQDN(0.50)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:50304, ipnet:91.220.196.0/24, country:NO]; RCVD_TLS_LAST(0.00)[]; MAILMAN_DEST(0.00)[freebsd-arm]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N On Sun, 20 Jun 2021 09:48:35 -0400 Karl Denninger wrote: > > In case you need another reference point, my RPI3B (revision A22082) > > sustains at about 50Mbit/s downloading from LAN over SFTP when it > > runs NetBSD 9.2. =20 >=20 > The Pi2 and 3 both run Ethernet through the USB controller, which=20 > significantly impacts performance.=C2=A0 IMHO it simply isn't capable of= =20 > being a high-performance network device due to architectural > considerations. I have just looked at the SFTP test closer. It looks like the bottleneck is not network, but something related to CPU and filesystem access: plain TCP download sustains at 100Mb/s (12.5MB/s) when done by nc reading from /dev/zero at my PC and writing to /dev/null at the RPI3B. The LAN between the two ends is a hardware switch plus a Linux bridge plus an OpenBSD bridge (FreeBSD/RPI is also a good part of this setup, but I am not ready to test it on the RPI3B right now). 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. --=20 Denis Ovsienko