From nobody Mon Sep 4 19:15:42 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 4Rfddn6Btsz4ryGG for ; Mon, 4 Sep 2023 19:15:57 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-yw1-x112d.google.com (mail-yw1-x112d.google.com [IPv6:2607:f8b0:4864:20::112d]) (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 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rfddn1CWJz4GQc for ; Mon, 4 Sep 2023 19:15:57 +0000 (UTC) (envelope-from tomek@cedro.info) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=ex698rdu; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::112d) smtp.mailfrom=tomek@cedro.info; dmarc=none Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-58dfe2d5b9aso23307457b3.1 for ; Mon, 04 Sep 2023 12:15:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; t=1693854955; x=1694459755; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=2BTErTFzchVhLBOjcMX1j2J5ItoshO4LI1qia6cRq0c=; b=ex698rduB6MZqSJks/TxO2IcGPq7+F0ihjnjzHStt4RKF1Cmu+CwLJgJNajnc32+yr F/CjtA1gSDt29U4d1oz9xv5nMSxPMfDP1NINjRX6rHmukP1Qh3J3FzpWaqb+ZcMxfRgo ssN6mkErAJFlGSAzfnZDp3RqWVYm2ZmjYrg2YMo2dX65c4CsNeYjPMBOyU5Wa0TLqfd1 5WbijHIIADFPRr4kajB6Ivi+wgh9EZNgnSz+Qy8CVj35YVrW40JNci4O+09TzRXR8yZM +sn9gUY46fRbgxfLiIi87QGIzAFmtp7/iHNefuowzik90/wwcEm6ugVsNZ9gJ+XvwFck CMKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693854955; x=1694459755; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2BTErTFzchVhLBOjcMX1j2J5ItoshO4LI1qia6cRq0c=; b=COaEDHEHdKe5ShHdV5VQSvRM6ROx4EWcWv1Gnop5AVEn0WzXWOQWoYl/99YCxBGA8d E8LUr6eOB4UREjykntC0FpLaMqHNpSco8xOzBWHrLFDYNWRToNee8Z7MGZUfBfnjscuL Iap6TN4jAQbVeeJ43MPdmuglHEJg/H/ubVpFOYe3ZVaaJEa6Ftt/fpBgSGsl4EQ7x5qW 3Q7gpxwhixy6IyvGfZc6V47nodIRnF+6et5oixEKXjkuCi1E57TmYE9nCpRO27DRFoya 8H3wmhmDCDfUPfKDKUocE8XWStOheLdxQgukOepd4rJbYv+K0ZFUy3S1rxlAE5AdTATN riog== X-Gm-Message-State: AOJu0Yw1jK0B+i+xJxzS+CHh2NFTxkAdKCJeUA2YHwviliueIdDKbFAn 3Fi5qmLBgKJ7Lp9VA72PDTpEsq/l0uOJj+xyIxc= X-Google-Smtp-Source: AGHT+IFtBmdFIS7M17EzQxOSzeEak6aYh3C5VH9HqLuPTRs4SuGDyXDKADOsAX9CrAIZSty8HtyJtg== X-Received: by 2002:a0d:eb10:0:b0:577:3f8c:fc60 with SMTP id u16-20020a0deb10000000b005773f8cfc60mr14707265ywe.1.1693854955449; Mon, 04 Sep 2023 12:15:55 -0700 (PDT) Received: from mail-yb1-f173.google.com (mail-yb1-f173.google.com. [209.85.219.173]) by smtp.gmail.com with ESMTPSA id y194-20020a0dd6cb000000b005950e1bbf11sm2739049ywd.60.2023.09.04.12.15.54 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Sep 2023 12:15:54 -0700 (PDT) Received: by mail-yb1-f173.google.com with SMTP id 3f1490d57ef6-d74a012e613so2311472276.1 for ; Mon, 04 Sep 2023 12:15:54 -0700 (PDT) X-Received: by 2002:a25:5cd:0:b0:d78:477e:442d with SMTP id 196-20020a2505cd000000b00d78477e442dmr13326857ybf.8.1693854954331; Mon, 04 Sep 2023 12:15:54 -0700 (PDT) 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 References: <2D466F3C-527C-4EE1-8C3D-3E8CDD8D547F@yahoo.com> <543FBABC-C75A-4AB0-BFB6-1C7C15ECBA4E@longcount.org> <96A99928-4E8E-4AB1-BF3A-D026B280EC0E@yahoo.com> In-Reply-To: From: Tomek CEDRO Date: Mon, 4 Sep 2023 21:15:42 +0200 X-Gmail-Original-Message-ID: Message-ID: 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] To: Wei Hu Cc: Mark Millard , Mark Saad , FreeBSD Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; MIME_GOOD(-0.10)[text/plain]; R_SPF_NA(0.00)[no SPF record]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::112d:from,209.85.219.173:received]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; TO_DN_ALL(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[cedro.info]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_CC(0.00)[yahoo.com,longcount.org,freebsd.org] X-Rspamd-Queue-Id: 4Rfddn1CWJz4GQc On Thu, Aug 31, 2023 at 9:56=E2=80=AFAM Wei Hu wrote: > Yes, the network perf gap is not as big as I originally thought. Seems di= fferent > factors contribute to the slowness of scp on FreeBSD. Network stack is on= ly one > of them. Note that Netflix uses FreeBSD because of _better_ network performance over Linux.. also better long term maintenance that comes from better organization, self-compatibility, and more stable kernel API that does not change every minor release ;-) Try the OS on a bare metal hardware, compare the results, use what fits you best. If the results are similar then find a problem in the VM hypervisor. If you think of a long term project and comfortable maintenance use FreeBSD even if you need to improve the driver it will pay back quite soon. --=20 CeDeROM, SQ7MHZ, http://www.tomek.cedro.info