Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Oct 2024 09:48:58 -0400
From:      Cheng Cui <cc@freebsd.org>
To:        void <void@f-m.fm>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Performance issues with vnet jails + epair + bridge
Message-ID:  <CAGaXuiLG4Qv2KgDtJveN3adLh6b8tEzC4j6OYfLo1_dj8BKZWQ@mail.gmail.com>
In-Reply-To: <Zw3dlDuaSXsIG-yX@vm2>
References:  <20240912181618.7895d10ad5ff2ebae9883192@gmail.com> <Zw3YGPIBC_s-q-Vg@vm2> <Zw3dlDuaSXsIG-yX@vm2>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
I am not sure if you are using FreeBSD15-CURRENT for testing in VMs.
But given your iperf3 test result has retransmissions, if you can try, there
is a recent VM friendly improvement from TCP congestion control CUBIC.

commit ee45061051715be4704ba22d2fcd1c373e29079d

Author: Cheng Cui <cc@FreeBSD.org>

Date:   Thu Sep 5 14:52:57 2024 -0400


    cc_cubic: use newreno to emulate AIMD in TCP-friendly region



    Reviewed by: rscheff, tuexen

    Differential Revision: https://reviews.freebsd.org/D46546

cc

On Mon, Oct 14, 2024 at 11:12 PM void <void@f-m.fm> wrote:

> On Tue, Oct 15, 2024 at 03:48:56AM +0100, void wrote:
>
> (snip)
>
> main-n272915-c87b3f0006be GENERIC-NODEBUG with
> tcp_rack_load="YES" in /boot/loader.conf and in /etc/sysctl.conf:
>
> #
> # network
> net.inet.tcp.functions_default=rack
> net.pf.request_maxcount=400000
> net.local.stream.recvspace=65536
> net.local.stream.sendspace=65536
> kern.ipc.somaxconn=8192
> kern.ipc.maxsockbuf=4737024
> #
>
> gets
>
> [ ID] Interval           Transfer     Bitrate         Retr
> [  5]   0.00-60.08  sec  5.06 GBytes   724 Mbits/sec  428
>  sender
> [  5]   0.00-60.08  sec  5.06 GBytes   724 Mbits/sec
> receiver
>
> in iperf3 testing (iperf3 --time 60) which is nearly 77% of the
> bitrate result on hardware.
> --
>
>

-- 
Best Regards,
Cheng Cui

[-- Attachment #2 --]
<div dir="ltr"><div dir="ltr">I am not sure if you are using FreeBSD15-CURRENT for testing in VMs.</div><div>But given your iperf3 test result has retransmissions, if you can try, there</div><div>is a recent VM friendly improvement from TCP congestion control CUBIC.</div><div><br></div><div><p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco;font-size-adjust:none;font-kerning:auto;font-variant-alternates:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-feature-settings:normal;color:rgb(159,160,28);background-color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">commit ee45061051715be4704ba22d2fcd1c373e29079d</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco;font-size-adjust:none;font-kerning:auto;font-variant-alternates:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-feature-settings:normal;color:rgb(242,242,242);background-color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Author: Cheng </span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0);background-color:rgb(242,242,242)">Cui</span><span style="font-variant-ligatures:no-common-ligatures"> &lt;cc@FreeBSD.org&gt;</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco;font-size-adjust:none;font-kerning:auto;font-variant-alternates:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-feature-settings:normal;color:rgb(242,242,242);background-color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Date: <span class="gmail-Apple-converted-space">  </span>Thu Sep 5 14:52:57 2024 -0400</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco;font-size-adjust:none;font-kerning:auto;font-variant-alternates:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-feature-settings:normal;color:rgb(242,242,242);background-color:rgb(0,0,0);min-height:19px"><span style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco;font-size-adjust:none;font-kerning:auto;font-variant-alternates:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-feature-settings:normal;color:rgb(242,242,242);background-color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span>cc_cubic: use newreno to emulate AIMD in TCP-friendly region</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco;font-size-adjust:none;font-kerning:auto;font-variant-alternates:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-feature-settings:normal;color:rgb(242,242,242);background-color:rgb(0,0,0);min-height:19px"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span></span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco;font-size-adjust:none;font-kerning:auto;font-variant-alternates:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-feature-settings:normal;color:rgb(242,242,242);background-color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span>Reviewed by: rscheff, tuexen</span></p>
<p style="margin:0px;font-stretch:normal;line-height:normal;font-family:Monaco;font-size-adjust:none;font-kerning:auto;font-variant-alternates:normal;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-asian:normal;font-feature-settings:normal;color:rgb(242,242,242);background-color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space">    </span>Differential Revision: <a href="https://reviews.freebsd.org/D46546">https://reviews.freebsd.org/D46546</a></span></p></div><div><br></div>cc<div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 14, 2024 at 11:12 PM void &lt;<a href="mailto:void@f-m.fm">void@f-m.fm</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">On Tue, Oct 15, 2024 at 03:48:56AM +0100, void wrote:<br>
<br>
(snip)<br>
<br>
main-n272915-c87b3f0006be GENERIC-NODEBUG with<br>
tcp_rack_load=&quot;YES&quot; in /boot/loader.conf and in /etc/sysctl.conf:<br>
<br>
#<br>
# network<br>
net.inet.tcp.functions_default=rack<br>
net.pf.request_maxcount=400000<br>
net.local.stream.recvspace=65536<br>
net.local.stream.sendspace=65536<br>
kern.ipc.somaxconn=8192<br>
kern.ipc.maxsockbuf=4737024<br>
#<br>
<br>
gets <br>
<br>
[ ID] Interval           Transfer     Bitrate         Retr<br>
[  5]   0.00-60.08  sec  5.06 GBytes   724 Mbits/sec  428             sender<br>
[  5]   0.00-60.08  sec  5.06 GBytes   724 Mbits/sec                  receiver<br>
<br>
in iperf3 testing (iperf3 --time 60) which is nearly 77% of the <br>
bitrate result on hardware. <br>
-- <br>
<br>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div></div>Best Regards,<div>Cheng Cui</div></div></div></div></div>
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGaXuiLG4Qv2KgDtJveN3adLh6b8tEzC4j6OYfLo1_dj8BKZWQ>