-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why using the -P parameter in a container will get different results #1588
Comments
This is a pretty old version of iperf3 (3.0.7, which is about 9 years old), the newest version is 3.16. In between, we've had a lot of bug fixes and enhancements. Regardless...you might be in a situation where the maximum window size is limiting your TCP performance. Maybe try your "without |
Using the However, I only use the What is the principle behind the |
Not sure if this will help, but did you try using a newer version if iperf3? I believe that it is not possible to tell whether the the behavior you see is what is should be or because you are using the old version 3.0.7.
|
Thank you very much! Therefore, I think the container uses a shared CPU, which affects the test results. Each request may be processed by a different CPU, resulting in a decrease in bandwidth. Using the -A parameter, binding to a specific CPU, bandwidth rises |
Context
Version of iperf3: 3.0.7
Operating system (and distribution, if any): centos7, kernel: 3.10, containerd
See The Phenomenon
in different containers on different nodes(vxlan connect), use -p or not will get different results, the test results are as follows:
server:
iperf3 -s -p 5001 -i1 ----------------------------------------------------------- Server listening on 5001 ----------------------------------------------------------- Accepted connection from 10.244.4.173, port 34416 [ 5] local 10.244.3.53 port 5001 connected to 10.244.4.173 port 34418 [ ID] Interval Transfer Bandwidth [ 5] 0.00-1.00 sec 605 MBytes 5.07 Gbits/sec [ 5] 1.00-2.00 sec 624 MBytes 5.24 Gbits/sec [ 5] 2.00-3.00 sec 713 MBytes 5.98 Gbits/sec [ 5] 3.00-4.00 sec 798 MBytes 6.70 Gbits/sec [ 5] 4.00-5.00 sec 756 MBytes 6.34 Gbits/sec [ 5] 5.00-5.04 sec 27.7 MBytes 6.60 Gbits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bandwidth Retr [ 5] 0.00-5.04 sec 3.44 GBytes 5.87 Gbits/sec 3155 sender [ 5] 0.00-5.04 sec 3.44 GBytes 5.87 Gbits/sec receiver
agent:
iperf3 -c 10.244.3.53 -p5001 -t5 Connecting to host 10.244.3.53, port 5001 [ 4] local 10.244.4.173 port 34418 connected to 10.244.3.53 port 5001 [ ID] Interval Transfer Bandwidth Retr Cwnd [ 4] 0.00-1.00 sec 626 MBytes 5.25 Gbits/sec 634 343 KBytes [ 4] 1.00-2.00 sec 627 MBytes 5.26 Gbits/sec 725 442 KBytes [ 4] 2.00-3.00 sec 727 MBytes 6.10 Gbits/sec 371 419 KBytes [ 4] 3.00-4.00 sec 798 MBytes 6.69 Gbits/sec 741 388 KBytes [ 4] 4.00-5.00 sec 749 MBytes 6.28 Gbits/sec 684 456 KBytes - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bandwidth Retr [ 4] 0.00-5.00 sec 3.44 GBytes 5.92 Gbits/sec 3155 sender [ 4] 0.00-5.00 sec 3.44 GBytes 5.91 Gbits/sec receiver
server:
agent:
My Doubt
The text was updated successfully, but these errors were encountered: