From nobody Sat Sep 02 20:16:15 2023 X-Original-To: freebsd-hackers@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 4RdR4Q3SsGz4s2Fr for ; Sat, 2 Sep 2023 20:16:22 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: from puchar.net (puchar.net [194.1.144.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RdR4P5GThz4Dc4 for ; Sat, 2 Sep 2023 20:16:21 +0000 (UTC) (envelope-from wojtek@puchar.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=puchar.net header.s=default header.b=X8I3KKdY; spf=pass (mx1.freebsd.org: domain of wojtek@puchar.net designates 194.1.144.90 as permitted sender) smtp.mailfrom=wojtek@puchar.net; dmarc=none Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.15.2/8.17.1) with ESMTPS id 382KGHeW007143 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 2 Sep 2023 22:16:19 +0200 (CEST) (envelope-from wojtek@puchar.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=puchar.net; s=default; t=1693685779; bh=CTfEOuu+STV06nHTR7cY77IWdo2+LUtArYyoLjbK2jQ=; h=Date:From:To:cc:Subject:In-Reply-To:References; b=X8I3KKdYV+GZenE5jdTTq/+q8lAdKdeeY554FbsSqNY6+M7ucsPicrcjg18NqLMmA SjxSY/NLCyYqlObZd+mzjoZht2bXqmxkBPFCsEIG9KHMzVsiWYe+S0CcRhb941kmjh QLxW6s8uIbMqtn530InHTByca7ojKnu5us4g3cDA= Received: from wojtek.intra (localhost [127.0.0.1]) by wojtek.intra (8.16.1/8.16.1) with ESMTP id 382KGG08050881; Sat, 2 Sep 2023 22:16:16 +0200 (CEST) (envelope-from wojtek@puchar.net) Received: from localhost (wojtek@localhost) by wojtek.intra (8.16.1/8.16.1/Submit) with ESMTP id 382KGFjp050878; Sat, 2 Sep 2023 22:16:15 +0200 (CEST) (envelope-from wojtek@puchar.net) X-Authentication-Warning: wojtek.intra: wojtek owned process doing -bs Date: Sat, 2 Sep 2023 22:16:15 +0200 (CEST) From: Wojciech Puchar To: Wei Hu cc: Mark Millard , Mark Saad , FreeBSD Hackers Subject: RE: Very slow scp performance comparing to Linux [dd to /dev/null shows substantial FreeBSD vs. Ubuntu differences for bs=1k (or 1K) and bs=512] In-Reply-To: Message-ID: References: <2D466F3C-527C-4EE1-8C3D-3E8CDD8D547F@yahoo.com> <543FBABC-C75A-4AB0-BFB6-1C7C15ECBA4E@longcount.org> <96A99928-4E8E-4AB1-BF3A-D026B280EC0E@yahoo.com> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; R_DKIM_ALLOW(-0.20)[puchar.net:s=default]; R_SPF_ALLOW(-0.20)[+mx:c]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; ASN(0.00)[asn:43476, ipnet:194.1.144.0/24, country:PL]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_CC(0.00)[yahoo.com,longcount.org,freebsd.org]; DKIM_TRACE(0.00)[puchar.net:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[194.1.144.90:from]; TO_DN_ALL(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[puchar.net]; HAS_XAW(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4RdR4P5GThz4Dc4 >>> All >>> Why not take scp out of the picture and try iperf? Why , we could be looking >> at rss by default in Linux . > > Actually I did the iperf3 test as well and posted results a couple days ago. > Pasting here: > > FreeBSD iperf3 to localhost, single stream: 30.9 Gb/s > Linux iperf3 to localhost, single stream: 48.8 Gb/s > Yes linux have lower system call latency, and somewhat more optimized networking for special cases (like localhost). For multiple processes using network results will be different. But probably still be somewhat slower than linux. Just not 40% slower i think