Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Oct 2024 10:42:49 -0400
From:      Cheng Cui <cc@freebsd.org>
To:        void <void@f-m.fm>
Cc:        "freebsd-net@FreeBSD.org" <freebsd-net@freebsd.org>
Subject:   Re: Performance test for CUBIC in stable/14
Message-ID:  <CAGaXuiKD-b4PGrqfxy9zk-BRxU==HMc9KshqyJGzH8saeOLf1A@mail.gmail.com>
In-Reply-To: <ZxJe8e8sRU9NCHv4@vm2>
References:  <20240912181618.7895d10ad5ff2ebae9883192@gmail.com> <Zw3YGPIBC_s-q-Vg@vm2> <Zw3dlDuaSXsIG-yX@vm2> <CAGaXuiLG4Qv2KgDtJveN3adLh6b8tEzC4j6OYfLo1_dj8BKZWQ@mail.gmail.com> <Zw_6SNSEW5mXMy_I@vm2> <CAGaXuiL_Fk=_FtU23RoJBP0WguU8_-y3Tb1iZ=T2unVv-2aRpA@mail.gmail.com> <ZxDdnSngi13UyZSL@vm2> <CAGaXuiK52ufOs-eVfKHAYpGxRyGfCMpbbZy4GcShybTzHcjDGg@mail.gmail.com> <ZxEqfISBJIW75p_P@vm2> <CAGaXuiJW5QW1eFqjXtSO%2BojOX5G12B56%2BnzE9zaVR7nB33VjWA@mail.gmail.com> <ZxJe8e8sRU9NCHv4@vm2>

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

[-- Attachment #1 --]
Change the subject to `Performance test for CUBIC in stable/14`, was `Re:
Performance issues with vnet jails + epair + bridge`.

I actually prepared two patches, one depends on the other:

https://reviews.freebsd.org/D47218     << apply this patch firstly
https://reviews.freebsd.org/D47213     << apply this patch secondly

Please let me know if you have any questions.

It passed my local test on a 1% drop rate link, with nearly 3.9X
performance improvement.

before patching:
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.07   sec  27.0 MBytes   211 Mbits/sec  207   12.8 KBytes

[  5]   1.07-2.12   sec  18.0 MBytes   144 Mbits/sec  151   11.4 KBytes

[  5]   2.12-3.07   sec  22.0 MBytes   194 Mbits/sec  189   11.8 KBytes

[  5]   3.07-4.07   sec  23.0 MBytes   194 Mbits/sec  203   10.8 KBytes

[  5]   4.07-5.06   sec  18.0 MBytes   153 Mbits/sec  165   15.0 KBytes

[  5]   5.06-6.11   sec  25.0 MBytes   200 Mbits/sec  227   26.9 KBytes

[  5]   6.11-7.07   sec  23.0 MBytes   201 Mbits/sec  189   10.7 KBytes

[  5]   7.07-8.07   sec  23.0 MBytes   193 Mbits/sec  215   12.7 KBytes

[  5]   8.07-9.03   sec  22.0 MBytes   191 Mbits/sec  185   10.4 KBytes

[  5]   9.03-10.09  sec  24.0 MBytes   191 Mbits/sec  219   1.41 KBytes

- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.09  sec   225 MBytes   187 Mbits/sec  1950
sender
[  5]   0.00-10.14  sec   225 MBytes   186 Mbits/sec
 receiver

iperf Done.

after patching:
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.08   sec   118 MBytes   919 Mbits/sec  872   47.5 KBytes

[  5]   1.08-2.07   sec   109 MBytes   917 Mbits/sec  849   56.9 KBytes

[  5]   2.07-3.09   sec   111 MBytes   915 Mbits/sec  810   54.5 KBytes

[  5]   3.09-4.07   sec   108 MBytes   922 Mbits/sec  831   43.8 KBytes

[  5]   4.07-5.07   sec   109 MBytes   919 Mbits/sec  813   31.1 KBytes

[  5]   5.07-6.02   sec   103 MBytes   913 Mbits/sec  815   60.2 KBytes

[  5]   6.02-7.07   sec   116 MBytes   921 Mbits/sec  850   58.2 KBytes

[  5]   7.07-8.06   sec   109 MBytes   922 Mbits/sec  822   46.4 KBytes

[  5]   8.06-9.06   sec   109 MBytes   913 Mbits/sec  843   59.4 KBytes

[  5]   9.06-10.07  sec   110 MBytes   917 Mbits/sec  815   42.3 KBytes

- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.07  sec  1.08 GBytes   918 Mbits/sec  8320
sender
[  5]   0.00-10.11  sec  1.08 GBytes   915 Mbits/sec
 receiver

iperf Done.

cc

On Fri, Oct 18, 2024 at 9:13 AM void <void@f-m.fm> wrote:

> On Fri, Oct 18, 2024 at 07:28:49AM -0400, Cheng Cui wrote:
>
> >The patch is a TCP congestion control algorithm improvement. So to
> >be clear, it only impacts a TCP data sender. These hosts are just traffic
> >forwarders, not TCP sender/receiver.
> >
> >I can send you a patch for the FreeBSD 14/stable to test performance
> >improvement.
>
> sure! I'm happy to test
>
> >If you think FreeBSD 14.x releases are critical to your business, or you
> >can't wait until FreeBSD 15 is released, you can file a request to add
> this
> >patch in the 14.x. I think https://bugs.freebsd.org/bugzilla/ is where a
> >user can file such request. If it is approved, which I am not sure if
> >it can be approved, then maybe it can be included in the next 14.x
> release.
>
> thank you, I'll try :D
> --
>
>

-- 
Best Regards,
Cheng Cui

[-- Attachment #2 --]
<div dir="ltr"><div>Change the subject to `Performance test for CUBIC in stable/14`, was `<span style="font-family:&quot;Google Sans&quot;,Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:14.000001px">Re: Performance issues with vnet jails + epair + bridge</span>`.</div><div><br></div><div>I actually prepared two patches, one depends on the other:</div><div><br></div><div><font face="monospace"><a href="https://reviews.freebsd.org/D47218">https://reviews.freebsd.org/D47218</a>;     &lt;&lt; apply this patch firstly<br></font></div><div><font face="monospace"><a href="https://reviews.freebsd.org/D47213">https://reviews.freebsd.org/D47213</a>;     &lt;&lt; apply this patch secondly</font><br></div><div><br></div><div>Please let me know if you have any questions.</div><div><br></div><div>It passed my local test on a 1% drop rate link, with nearly 3.9X performance improvement.</div><div><br></div><div>before patching:</div><div>[ ID] Interval           Transfer     Bitrate         Retr  Cwnd<br>[  5]   0.00-1.07   sec  27.0 MBytes   211 Mbits/sec  207   12.8 KBytes       <br>[  5]   1.07-2.12   sec  18.0 MBytes   144 Mbits/sec  151   11.4 KBytes       <br>[  5]   2.12-3.07   sec  22.0 MBytes   194 Mbits/sec  189   11.8 KBytes       <br>[  5]   3.07-4.07   sec  23.0 MBytes   194 Mbits/sec  203   10.8 KBytes       <br>[  5]   4.07-5.06   sec  18.0 MBytes   153 Mbits/sec  165   15.0 KBytes       <br>[  5]   5.06-6.11   sec  25.0 MBytes   200 Mbits/sec  227   26.9 KBytes       <br>[  5]   6.11-7.07   sec  23.0 MBytes   201 Mbits/sec  189   10.7 KBytes       <br>[  5]   7.07-8.07   sec  23.0 MBytes   193 Mbits/sec  215   12.7 KBytes       <br>[  5]   8.07-9.03   sec  22.0 MBytes   191 Mbits/sec  185   10.4 KBytes       <br>[  5]   9.03-10.09  sec  24.0 MBytes   191 Mbits/sec  219   1.41 KBytes       <br>- - - - - - - - - - - - - - - - - - - - - - - - -<br>[ ID] Interval           Transfer     Bitrate         Retr<br>[  5]   0.00-10.09  sec   225 MBytes   187 Mbits/sec  1950             sender<br>[  5]   0.00-10.14  sec   225 MBytes   186 Mbits/sec                  receiver<br><br>iperf Done.<br></div><div><br></div><div>after patching:</div><div>[ ID] Interval           Transfer     Bitrate         Retr  Cwnd<br>[  5]   0.00-1.08   sec   118 MBytes   919 Mbits/sec  872   47.5 KBytes       <br>[  5]   1.08-2.07   sec   109 MBytes   917 Mbits/sec  849   56.9 KBytes       <br>[  5]   2.07-3.09   sec   111 MBytes   915 Mbits/sec  810   54.5 KBytes       <br>[  5]   3.09-4.07   sec   108 MBytes   922 Mbits/sec  831   43.8 KBytes       <br>[  5]   4.07-5.07   sec   109 MBytes   919 Mbits/sec  813   31.1 KBytes       <br>[  5]   5.07-6.02   sec   103 MBytes   913 Mbits/sec  815   60.2 KBytes       <br>[  5]   6.02-7.07   sec   116 MBytes   921 Mbits/sec  850   58.2 KBytes       <br>[  5]   7.07-8.06   sec   109 MBytes   922 Mbits/sec  822   46.4 KBytes       <br>[  5]   8.06-9.06   sec   109 MBytes   913 Mbits/sec  843   59.4 KBytes       <br>[  5]   9.06-10.07  sec   110 MBytes   917 Mbits/sec  815   42.3 KBytes       <br>- - - - - - - - - - - - - - - - - - - - - - - - -<br>[ ID] Interval           Transfer     Bitrate         Retr<br>[  5]   0.00-10.07  sec  1.08 GBytes   918 Mbits/sec  8320             sender<br>[  5]   0.00-10.11  sec  1.08 GBytes   915 Mbits/sec                  receiver<br><br>iperf Done.<br></div><div><br></div>cc<div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 18, 2024 at 9:13 AM 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 Fri, Oct 18, 2024 at 07:28:49AM -0400, Cheng Cui wrote:<br>
<br>
&gt;The patch is a TCP congestion control algorithm improvement. So to<br>
&gt;be clear, it only impacts a TCP data sender. These hosts are just traffic<br>
&gt;forwarders, not TCP sender/receiver.<br>
&gt;<br>
&gt;I can send you a patch for the FreeBSD 14/stable to test performance<br>
&gt;improvement.<br>
<br>
sure! I&#39;m happy to test<br>
<br>
&gt;If you think FreeBSD 14.x releases are critical to your business, or you<br>
&gt;can&#39;t wait until FreeBSD 15 is released, you can file a request to add this <br>
&gt;patch in the 14.x. I think <a href="https://bugs.freebsd.org/bugzilla/" rel="noreferrer" target="_blank">https://bugs.freebsd.org/bugzilla/</a>; is where a <br>
&gt;user can file such request. If it is approved, which I am not sure if <br>
&gt;it can be approved, then maybe it can be included in the next 14.x release.<br>
<br>
thank you, I&#39;ll try :D<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?CAGaXuiKD-b4PGrqfxy9zk-BRxU==HMc9KshqyJGzH8saeOLf1A>