Re: Performance test for CUBIC in stable/14

From: void <void_at_f-m.fm>
Date: Sun, 27 Oct 2024 14:54:22 UTC
On Fri, 25 Oct 2024, at 13:13, Cheng Cui wrote:
> Here is my example. I am using two 6-core/12-threads desktops for my 
> bhyve servers.
> CPU: AMD Ryzen 5 5560U with Radeon Graphics          (2295.75-MHz 
> K8-class CPU)
>
> You can find test results on VMs from my wiki: 
> https://wiki.freebsd.org/chengcui/testD46046
>
> All the CPU utilization results are low, especially for these 
> throughput over 900 Mb/s.
>
> cc

I have to tabulate my results better :D

Those are some p impressive performance gains for your modified 
cc_cubic against % packet loss.

This is a freebsd14-stable vm with your patches applied.

iperf3 -B 192.168.1.13 -c 192.168.1.232 -l 1M -t 60 -i 1 -VC cubic

Test Complete. Summary Results:
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-60.07  sec  5.92 GBytes   847 Mbits/sec    1   sender
[  5]   0.00-60.09  sec  5.92 GBytes   846 Mbits/sec        receiver
CPU Utilization: local/sender 90.6% (0.0%u/90.6%s), remote/receiver 23.8% (2.0%u/21.8%s)
snd_tcp_congestion cubic
rcv_tcp_congestion cubic

here's the Alpine linux vm:

vm7-alpine:~$ iperf3 -B 192.168.1.65 -c 192.168.1.232 -l 1M -t 60 -i 1 -VC cubic

Test Complete. Summary Results:
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-60.02  sec  6.58 GBytes   941 Mbits/sec   24 sender
[  5]   0.00-60.03  sec  6.58 GBytes   941 Mbits/sec                  receiver
CPU Utilization: local/sender 8.2% (0.1%u/8.2%s), remote/receiver 26.7% (2.1%u/24.5%s)
snd_tcp_congestion cubic
rcv_tcp_congestion cubic

Load on the bhyve host was between 3.00 & 4.00 during the tests.
It was running a poudriere build (PARALLEL_JOBS=1)

Why the massive difference in load on the vms?

I'm trying to look at something that's maybe related, but not
in a congested environment context. I think it's deeper than that. 
I need to try 'options RSS' in the freebsd guests as well, 
(see https://lists.freebsd.org/archives/freebsd-net/2024-September/005531.html )

--