Skip to Content.
Sympa Menu

perfsonar-user - Re: [perfsonar-user] Re: Iperf3 + bandwidth for TCP

Subject: perfSONAR User Q&A and Other Discussion

List archive

Re: [perfsonar-user] Re: Iperf3 + bandwidth for TCP


Chronological Thread 
  • From: Brian Tierney <>
  • To: "Uhl, George D. (GSFC-423.0)[SGT INC]" <>
  • Cc: Arman Mohsin <>, "" <>, "" <>, "" <>, "" <>
  • Subject: Re: [perfsonar-user] Re: Iperf3 + bandwidth for TCP
  • Date: Mon, 15 May 2017 07:38:52 -0700
  • Ironport-phdr: 9a23:j/xw+RVTI/owj5elfsuoBE5qcnLV8LGtZVwlr6E/grcLSJyIuqrYbRaDt8tkgFKBZ4jH8fUM07OQ6PG/HzVbqsnR+Fk5M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aFRrwLxd6KfroEYDOkcu3y/qy+5rOaAlUmTaxe71/IRG0oAnLq8Ubj4RuJ6QyxxDUvnZGZuNayH9yK1mOhRj8/MCw/JBi8yRUpf0s8tNLXLv5caolU7FWFSwqPG8p6sLlsxnDVhaP6WAHUmoKiBpIAhPK4w/8U5zsryb1rOt92C2dPc3rUbA5XCmp4ql3RBP0jioMKiU0+3/LhMNukK1boQqhpx1hzI7SfIGVL+d1cqfEcd8HWWZNQsNdWipPDYOma4sEEvQPM+BWoYLgo1cCtBSzCQyqCejyyDFHm2X20LUg0+sjHwHI3AIuEdETvnrKsNr4L70dXfyvwaTS0TnPc/Fb1DHg44bIaBAhpvSMUKptfMrLyEkgDQXFhUiOp4zkITyVzOINvHab7uF9Uu+gkGonqx1wojex3McsjJfGh4IOx1/a7iV12oA1KsOkSENiZ9OvDZVetyafN4RsQ8MiRXlltzghyrEcv560YjQKxIw8xx7YdvyHaZSH7QztVOaWOzd4i2xqdKi5hxms7Uis0uj8WdOy0FtItCZFlcPMtn8L2hfO6caHUuNw8lq/1TuMzQze5PtILE8pmabBKpMswaY8moQPvUnHBCP7m0X7gLWIekk5++Wk8fnrb7Hkq5KaKoR6kBvxMr40lcy6Gek4MhYBX2yc+emk2r3s40P0TK9OjvItlqnVqp/aJcMFpqKhAg9V1Jgs6wqnAju7ztgVnmMLIVxfdB+IkoTlIVDDLfPgAfe6mVuskTNrx/7cPr3mB5XANmPMkLP9fbZ89UFc0gwzws5f5p9PFL4BO+j/Wknvu9zEFhM5KRC7w/77CNVh0YMTQXqPDbGDMKPcql+I4eQvLPOWZIMMpTb9MOYq5+T1gH89mF8dZrWp3YAJZHyiH/RmJVmZbmT2gtcHD2gKohQyQPb0h1KfTD4AL0q1CugB5jV/QK2rCp3MS8iBxvTB8xyVNdgKPDsAUhG/KljUP6SicMJGIHadL8h7nTFCWf68S4sJ0xi1vUn1zKQxfdDZ4ikJiZW23txp5uDJkxwj3TFvScKQzzKjVWZxy0kSRjYwlJx+rFZ7x0bLhaJ8n/1VD9pe9ttESUE8OIKKnL8yMMz7Rg+UJoTBc12hWNjzRGhpEt8=




On Mon, May 15, 2017 at 7:02 AM, Uhl, George D. (GSFC-423.0)[SGT INC] <> wrote:
Hi Arman,

Make sure the FQ is enabled in the kernel:


George

From: <> on behalf of Arman Mohsin <>
Date: Sunday, May 14, 2017 at 4:46 PM
To: Brian Tierney <>
Cc: "" <>, "" <>, "" <>, "" <>
Subject: [perfsonar-user] Re: Iperf3 + bandwidth for TCP

But --fq-rate is not limiting my bandwidth for example to 300mbit as you can see in the following example. 

iperf3 -c $SERVER_ADDRESS  --fq-rate 300M -p $PORT -t $TIME -i $INTERVAL -C, --linux-congestion cubic -Z 

The output at the server end is

[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-1.00   sec   110 MBytes   919 Mbits/sec                  
[  5]   1.00-2.00   sec   116 MBytes   976 Mbits/sec                  
[  5]   2.00-3.00   sec   122 MBytes  1.03 Gbits/sec                  
[  5]   3.00-4.00   sec   117 MBytes   985 Mbits/sec                  
[  5]   4.00-5.00   sec   127 MBytes  1.06 Gbits/sec                  
[  5]   5.00-5.04   sec  5.23 MBytes  1.00 Gbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
Test Complete. Summary Results:
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-5.04   sec  0.00 Bytes  0.00 bits/sec                  sender
[  5]   0.00-5.04   sec   597 MBytes   994 Mbits/sec                  receiver
CPU Utilization: local/receiver 1.3% (0.1%u/1.2%s), remote/sender 0.0% (0.0%u/0.0%s

On Sun, May 14, 2017 at 9:18 PM, Brian Tierney <> wrote:

-b works for both TCP and UDP, but --fq-rate works much better for TCP on CentOS7/Debian8 based hosts, as it does kernel-level pacing, not user-level pacing.



On Sat, May 13, 2017 at 7:54 PM, Arman Mohsin <> wrote:
Hi Brian,

Hope all is well. Does the iperf3 -c -b option limit bandwidth for TCP as well or is it ONLY for UDP? I tried to read the documentation in the man page but it is a bit confusing. In the earlier versions of iperf the -b option is used to test only UDP but I am not sure if it supports in the latest version (iperf3)


Regards,

Arman



--
Brian Tierney, http://www.es.net/tierney
Energy Sciences Network (ESnet), Berkeley National Lab
http://fasterdata.es.net





--
Brian Tierney, http://www.es.net/tierney
Energy Sciences Network (ESnet), Berkeley National Lab
http://fasterdata.es.net




Archive powered by MHonArc 2.6.19.

Top of Page