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>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000004179a106248439e2
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

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, ther=
e
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=E2=80=AFPM 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=3D"YES" in /boot/loader.conf and in /etc/sysctl.conf:
>
> #
> # network
> net.inet.tcp.functions_default=3Drack
> net.pf.request_maxcount=3D400000
> net.local.stream.recvspace=3D65536
> net.local.stream.sendspace=3D65536
> kern.ipc.somaxconn=3D8192
> kern.ipc.maxsockbuf=3D4737024
> #
>
> 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.
> --
>
>

--=20
Best Regards,
Cheng Cui

--0000000000004179a106248439e2
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"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 i=
mprovement from TCP congestion control CUBIC.</div><div><br></div><div><p s=
tyle=3D"margin:0px;font-stretch:normal;line-height:normal;font-family:Monac=
o;font-size-adjust:none;font-kerning:auto;font-variant-alternates:normal;fo=
nt-variant-ligatures:normal;font-variant-numeric:normal;font-variant-east-a=
sian:normal;font-feature-settings:normal;color:rgb(159,160,28);background-c=
olor:rgb(0,0,0)"><span style=3D"font-variant-ligatures:no-common-ligatures"=
>commit ee45061051715be4704ba22d2fcd1c373e29079d</span></p>
<p style=3D"margin:0px;font-stretch:normal;line-height:normal;font-family:M=
onaco;font-size-adjust:none;font-kerning:auto;font-variant-alternates:norma=
l;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-ea=
st-asian:normal;font-feature-settings:normal;color:rgb(242,242,242);backgro=
und-color:rgb(0,0,0)"><span style=3D"font-variant-ligatures:no-common-ligat=
ures">Author: Cheng </span><span style=3D"font-variant-ligatures:no-common-=
ligatures;color:rgb(0,0,0);background-color:rgb(242,242,242)">Cui</span><sp=
an style=3D"font-variant-ligatures:no-common-ligatures"> &lt;cc@FreeBSD.org=
&gt;</span></p>
<p style=3D"margin:0px;font-stretch:normal;line-height:normal;font-family:M=
onaco;font-size-adjust:none;font-kerning:auto;font-variant-alternates:norma=
l;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-ea=
st-asian:normal;font-feature-settings:normal;color:rgb(242,242,242);backgro=
und-color:rgb(0,0,0)"><span style=3D"font-variant-ligatures:no-common-ligat=
ures">Date: <span class=3D"gmail-Apple-converted-space">=C2=A0 </span>Thu S=
ep 5 14:52:57 2024 -0400</span></p>
<p style=3D"margin:0px;font-stretch:normal;line-height:normal;font-family:M=
onaco;font-size-adjust:none;font-kerning:auto;font-variant-alternates:norma=
l;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-ea=
st-asian:normal;font-feature-settings:normal;color:rgb(242,242,242);backgro=
und-color:rgb(0,0,0);min-height:19px"><span style=3D"font-variant-ligatures=
:no-common-ligatures"></span><br></p>
<p style=3D"margin:0px;font-stretch:normal;line-height:normal;font-family:M=
onaco;font-size-adjust:none;font-kerning:auto;font-variant-alternates:norma=
l;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-ea=
st-asian:normal;font-feature-settings:normal;color:rgb(242,242,242);backgro=
und-color:rgb(0,0,0)"><span style=3D"font-variant-ligatures:no-common-ligat=
ures"><span class=3D"gmail-Apple-converted-space">=C2=A0 =C2=A0 </span>cc_c=
ubic: use newreno to emulate AIMD in TCP-friendly region</span></p>
<p style=3D"margin:0px;font-stretch:normal;line-height:normal;font-family:M=
onaco;font-size-adjust:none;font-kerning:auto;font-variant-alternates:norma=
l;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-ea=
st-asian:normal;font-feature-settings:normal;color:rgb(242,242,242);backgro=
und-color:rgb(0,0,0);min-height:19px"><span style=3D"font-variant-ligatures=
:no-common-ligatures"><span class=3D"gmail-Apple-converted-space">=C2=A0=C2=
=A0 =C2=A0</span></span></p>
<p style=3D"margin:0px;font-stretch:normal;line-height:normal;font-family:M=
onaco;font-size-adjust:none;font-kerning:auto;font-variant-alternates:norma=
l;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-ea=
st-asian:normal;font-feature-settings:normal;color:rgb(242,242,242);backgro=
und-color:rgb(0,0,0)"><span style=3D"font-variant-ligatures:no-common-ligat=
ures"><span class=3D"gmail-Apple-converted-space">=C2=A0 =C2=A0 </span>Revi=
ewed by: rscheff, tuexen</span></p>
<p style=3D"margin:0px;font-stretch:normal;line-height:normal;font-family:M=
onaco;font-size-adjust:none;font-kerning:auto;font-variant-alternates:norma=
l;font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-ea=
st-asian:normal;font-feature-settings:normal;color:rgb(242,242,242);backgro=
und-color:rgb(0,0,0)"><span style=3D"font-variant-ligatures:no-common-ligat=
ures"><span class=3D"gmail-Apple-converted-space">=C2=A0 =C2=A0 </span>Diff=
erential Revision: <a href=3D"https://reviews.freebsd.org/D46546">https://r=
eviews.freebsd.org/D46546</a></span></p></div><div><br></div>cc<div><br><di=
v class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Mon, Oct 1=
4, 2024 at 11:12=E2=80=AFPM void &lt;<a href=3D"mailto:void@f-m.fm">void@f-=
m.fm</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"mar=
gin: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=3D&quot;YES&quot; in /boot/loader.conf and in /etc/sysctl.con=
f:<br>
<br>
#<br>
# network<br>
net.inet.tcp.functions_default=3Drack<br>
net.pf.request_maxcount=3D400000<br>
net.local.stream.recvspace=3D65536<br>
net.local.stream.sendspace=3D65536<br>
kern.ipc.somaxconn=3D8192<br>
kern.ipc.maxsockbuf=3D4737024<br>
#<br>
<br>
gets <br>
<br>
[ ID] Interval=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Transfer=C2=A0 =C2=
=A0 =C2=A0Bitrate=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Retr<br>
[=C2=A0 5]=C2=A0 =C2=A00.00-60.08=C2=A0 sec=C2=A0 5.06 GBytes=C2=A0 =C2=A07=
24 Mbits/sec=C2=A0 428=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0sende=
r<br>
[=C2=A0 5]=C2=A0 =C2=A00.00-60.08=C2=A0 sec=C2=A0 5.06 GBytes=C2=A0 =C2=A07=
24 Mbits/sec=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
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=3D"all"><div><br></div><span class=3D"gmail_si=
gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><d=
iv dir=3D"ltr"><div></div>Best Regards,<div>Cheng Cui</div></div></div></di=
v></div>

--0000000000004179a106248439e2--



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