From nobody Mon Jan 30 23:30:00 2023 X-Original-To: freebsd-stable@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 4P5PYK0l5Jz3bRtr for ; Mon, 30 Jan 2023 23:30:13 +0000 (UTC) (envelope-from matt.garber@gmail.com) Received: from mail-vs1-xe30.google.com (mail-vs1-xe30.google.com [IPv6:2607:f8b0:4864:20::e30]) (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 4P5PYJ2rZrz4MMG for ; Mon, 30 Jan 2023 23:30:12 +0000 (UTC) (envelope-from matt.garber@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b="h/RKRUcj"; spf=pass (mx1.freebsd.org: domain of matt.garber@gmail.com designates 2607:f8b0:4864:20::e30 as permitted sender) smtp.mailfrom=matt.garber@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-vs1-xe30.google.com with SMTP id p10so9859918vsu.5 for ; Mon, 30 Jan 2023 15:30:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=uJYK0uJyJJlhByf4b9LqhPx0VGXYnchiGvKAeg8zIeg=; b=h/RKRUcjvO+BWtddOEI0TdzvxbWkRojv0Qzk3tV01swG+PB/2MgAdK1opzx8BSkysR yW7yM03NLe780yy61h8WmheCAr9BBA1c2RVBcqJX2dfILJVcC0Zcnc9S5+zw2kKu8Wr+ tSIxSeFF80Tmb1pWeONj9Ehs9I0mQtoJ1+rCNL3h2CyQhfrQeoT1H/032GBmivvHycJk ZaNLN2Q7uI7Jn1NbU6F7ohelEEfeZjiHsG85Kh5vSFh91ZDgBsyC1z9+aOgM8xiUyLLE eexYU/v+1O88M1bA4SoNF9yq1OHSbW6TkgABEKSIi9Fu5ISDVFKnkSYO0J48SU9G2gMN JaKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=uJYK0uJyJJlhByf4b9LqhPx0VGXYnchiGvKAeg8zIeg=; b=ZGF/VPi22ipd18HHZYCOJ7DLROKti85CZYSWEWYOsFOqe3wXK7BDneCtTsm/oSCIsj h4s6yZnp5EVMCx5mF4n7kjSxdbsJwfgye0HoLkmhmpH73cWufGtc7ZRRobgCIzvlfLOy 4Fz1ysg6ZqjRjQSta4dQVPgi2wG0+SwFkDjBt28emgJyI+UFp2/mrGoEhCjG2jlfanvh GpaEc+OILNmVTHbD98vqgn0pjpeW6N8liekyJr2RBQ1IUyb5U0h1AkKgcECKzks5l0cz AW1voAZKdOMQILbpTUq8NgpBw/1Wraz2TTgSFgDBRsN27xbny7R4HxbfOJFZflPuerV8 GqEQ== X-Gm-Message-State: AO0yUKUQZSpHqHg0csfQYHul+wRwne2TFlTFZMXGVd7/Ur3R1fMxIhUa +ETu40sYUB2LSn84MkOjstVQvvC3inscveuBy6UpNhQD X-Google-Smtp-Source: AK7set9MoHmH3Fkmuysuv/0+P44C/zvGIbCkVjlhZySufgCXOCZHNkK8mk03N9OuSqFmuXso0udUcar7IHaCUmyeSxQ= X-Received: by 2002:a05:6102:4b2:b0:3ef:e329:614f with SMTP id r18-20020a05610204b200b003efe329614fmr1999966vsa.25.1675121411549; Mon, 30 Jan 2023 15:30:11 -0800 (PST) List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 References: <95EDCFCA-7E3F-458F-85A6-856D606B9D98@gromit.dlib.vt.edu> In-Reply-To: From: Matt Garber Date: Mon, 30 Jan 2023 18:30:00 -0500 Message-ID: Subject: Re: Slow WAN traffic to FreeBSD hosts but not to Linux hosts---how to debug/fix? To: freebsd-stable@freebsd.org Content-Type: multipart/alternative; boundary="000000000000b0f07f05f38398b8" X-Spamd-Result: default: False [-3.00 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.996]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-stable@freebsd.org]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::e30:from]; FREEMAIL_FROM(0.00)[gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; MLMMJ_DEST(0.00)[freebsd-stable@freebsd.org]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_DN_NONE(0.00)[]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4P5PYJ2rZrz4MMG X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N --000000000000b0f07f05f38398b8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable > > Any help/insight is gratefully appreciated. > > > > Cheers, > > > > Paul. > > > > sysctl net.inet.tcp.cc.algorithm=3Dhtcp > > I would set "htcp" on the server and home computer to improve through in > your type of situation. There may be other FreeBSD sysctls that have bad defaults in this scenario and could be better tuned, but I doubt changing the CC algorithm at this point is the problem =E2=80=94 at least not so much a problem that=E2=80=99= s causing throughput to be reduced so drastically. Happy to be wrong if that does help things quickly and easily, though. (Since OP mentioned that FreeBSD CC was set to CUBIC, that would match what the Linux boxes are using by default, too, unless they=E2=80=99ve been chan= ged to something newer like BBR=E2=80=A6 so seems like CUBIC *should* be performin= g fine on this WAN link, and the difference is something else.) =E2=80=94Matt --000000000000b0f07f05f38398b8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

> Any help/insight is gratefully appreciated.
>
> Cheers,
>
> Paul.
>

sysctl net.inet.tcp.cc.algorithm=3Dhtcp

I would set "htcp" on the server and home computer to improve thr= ough in
your type of situation.


There may be other= FreeBSD sysctls that have bad defaults in this scenario and could be bette= r tuned, but I doubt changing the CC algorithm at this point is the problem= =E2=80=94 at least not so much a problem that=E2=80=99s causing throughput= to be reduced so drastically. Happy to be wrong if that does help things q= uickly and easily, though.

(Since OP mentioned that FreeBSD CC was set to CUBIC, that would match w= hat the Linux boxes are using by default, too, unless they=E2=80=99ve been = changed to something newer like BBR=E2=80=A6 so seems like CUBIC *should* b= e performing fine on this WAN link, and the difference is something else.)<= /div>


=E2=80=94Matt


--000000000000b0f07f05f38398b8--