Skip to Content.
Sympa Menu

perfsonar-user - [perfsonar-user] Re: iperf3 performance tuning for small packets

Subject: perfSONAR User Q&A and Other Discussion

List archive

[perfsonar-user] Re: iperf3 performance tuning for small packets


Chronological Thread 
  • From: Casey Russell <>
  • To: "" <>
  • Subject: [perfsonar-user] Re: iperf3 performance tuning for small packets
  • Date: Wed, 15 Feb 2017 09:23:02 -0600
  • Ironport-phdr: 9a23:jb85oBOyQPNwym9nzyYl6mtUPXoX/o7sNwtQ0KIMzox0I/37rarrMEGX3/hxlliBBdydsKMZzbKM+P+8EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQtFiT69bL9oMBm6swrdu8sZjIB/Nqs/1xzFr2dSde9L321oP1WTnxj95se04pFu9jlbtuwi+cBdT6j0Zrw0QrNEAjsoNWA1/9DrugLYTQST/HscU34ZnQRODgPY8Rz1RJbxsi/9tupgxCmXOND9QL4oVTi+6apgVRnlgzoFOTEk6mHaks5/jKxbrhyvpBJx3pDab52OOfVkYq/QZ8kXSXZdUstTUSFKH4Oyb5EID+oEJetVsZPyp0AQohq+GAKiGP7vyiRThnDo2a061/kqHAba0ww6AtIOq2/Uo8vxNKcWSu21z7PHzTPZb/xI3zfx8o7IfQ49ofyVW797bMTfyU4qFwzfj1WQr5ToMC2O1ugXtWiU8fZgWfqri24mrQFxoSagydotionPnI4a1lfE9SBhzIYpK9y4SVJ7YcK6H5tKrS2VK4x2QsY6T2Froik6zKcGtoC9fCQQzpQo2QLfZvqaeIaL+hLuTPidLDZkiH9nfb+/iRW//lO8xuD5WcS4zEpGoTZAn9bQqnwA1Bne582ZRvdj8Ees3yuE2RrJ5eFeO080kLLWK54/zb40kZoeqUHDETX3mEXylaOWa18r9vSx5+XofLnquJGcO5V7igH5NaQulci/DvoiPgcSWGib/Pyw1Lzl/ULnXLVHluM6n6jFvJ3YIMkbqK20DBRJ3osm5BuzEyuq38gdkHYbMF5IexeKgo33N13QLvD0FfK/jE6tkDdvyfDGJLrhApDVI3ffirfhYK1961VCxwo3ydBS/JFUBasHIPLpREDxssbUDhknPAyo2+rnEsly1psCWWKTBa+UKLvSvkGS5uIhOOmMY4kVtyznK/Q8+v7ulmE2mUUGcKmt3JsXc2y4Hu94L0mDYHrshMsBHnkQvgo4UuPqlEOOXSRNaHmvQqJvrg08Xci+AJ3NXYeriabEwTy2BLVXYHxLEFaBDS2ueomZEb9YcC+ILNRmlDUeEKW6RpUJ1BeyuRX8xqY9aOfY53tLm4jk0Y1e7vbehFkI6CdvAsCZmzWGVXxvhW4MQxc11aZlrEo7zFqfh/sry8dEHMBesqsaGjwxMoTRmrR3

Group,

     Thank you to Brian, Eli and Bill who reached out to me offline.  I've been able to complete my testing.  Nuttcp allowed me to squeeze a little bit more performance out of the nodes (although not a lot) and it was enough to get the firewalls stress tested to their full capacity, I just had to ignore the loss readings for the 64byte packet sizing because it was beyond the ability of the testers to reliably account for (I was confident virtually all of the loss was at the nodes and not the firewalls).

     We're going to consider getting more modern testing machines for future lab setups where this sort of stress test is required.

Thanks again for your help.


Sincerely,
Casey Russell
Network Engineer
KanREN
phone785-856-9809
2029 Becker Drive, Suite 282
Lawrence, Kansas 66047
linkedin twitter twitter

On Mon, Feb 13, 2017 at 6:50 PM, Casey Russell <> wrote:
Group,  

     I have recently needed to stress test some new firewalls and intended to use iperf3 to do it.  I'm pushing iperf3 harder than I've personally tried to push it before and running into some challenges.  I know this isn't an iperf3 list, specifically, but many of you will have used the tool pretty extensively, so if you'll indulge me...

     Interestingly (at least to me) I'm having trouble generating a full 1G of traffic in a "worst case" scenario through the firewalls, or even directly box to box.  By worst case, I mean at 64byte (or near 64byte) udp packets.  Fortunately (or unfortunately, depending on your love for IPsec) the circuit between the firewalls is going to be an IPSEC tunnel, so there is a massive amount of protocol overhead at the small packet sizes.  I only need to generate something less than 500Mbits/s of iperf3 traffic to fill that pipe.  

     The servers I'm using are a few years old, but I didn't expect to have as much trouble as I am getting near gig speeds.  When I push the machines at all, one of two things happens.

     If I keep the setup simple, iperf3 simply refuses to push the requested bandwidth.  For instance, what should have been an 800Mb/s test runs at 240Mb/s with no, or very little loss.

     Because I can see, in that scenario, that a single CPU core is getting hammered, I create multiple send and receiver processes on both ends and use the -A flag to assign each a different CPU affinity.  This results in achieving a bit more bandwidth (500-600Mb/s) but massive loss (20-40% or more).  In particular, I notice that the loss begins in spades anytime I'm running multiple sender (or receiver) processes using the same physical socket (even if it's different logical processor cores).   

      As an example, I've experimented with running as many as 6 servers and 6 clients on each physical host.  I used the -A flag to set CPU affinity since each host has 16+ cores.  I'm using the -w flag to increase the receive buffer to 1M or larger.  I'm using Zerocopy to reduce CPU load as much as I can 

     I also experimented with fewer send/receive processes with the -P flag set to send more parallel streams per process.  However, I'm finding it near impossible to get more than about 600Mb/s between the two hosts even with them connected back to back via a Cat6 cable. 

     My question for the group is:  Does this sound like a "meh, that sounds about right" scenario, or should I definitely be able to squeeze more performance out of these boxes and I'm just missing a tuning option somewhere?  I've followed the ES.net tuning guides here the Centos 6 host:  https://fasterdata.es.net/host-tuning/linux/


     I realize that's a brief overview, but I don't want to drown you with an even bigger wall of text.  I'll be happy to provide more specifics if requested either on or offline   You'll find an example run below as well as my system specs.


For those of you who made it to the bottom, thank you
Sincerely,
Casey Russell
Network Engineer
KanREN
2029 Becker Drive, Suite 282
Lawrence, Kansas 66047
linkedin twitter twitter


My system specs are as follows:

Host1 (sender) (pci express NIC)
CentOS release 6.8
Intel(R) Xeon(R) CPU           X5570  @ 2.93GHz
2 physical CPUs (sockets), 4 cores/socket, 2 threads/core (16 CPUs)
126G RAM  (DDR3 1600)
Intel Corporation 82576 Gigabit Network Connection (rev 01)
igb 0000:05:00.0: Intel(R) Gigabit Ethernet Network Connection
igb 0000:05:00.0: eth0: (PCIe:2.5Gb/s:Width x4) 00:1b:21:8e:63:08

Host2 (receiver) (onboard NIC)
CentOS Linux release 7.3.1611
Intel(R) Xeon(R) CPU           E5645  @ 2.40GHz 
2 physical CPUs (sockets), 6 cores/socket, 2 threads/core (24 CPUs)
12G RAM  (DDR3 1333)
Broadcom Limited NetXtreme II BCM5716 Gigabit Ethernet (rev 20) 
bnx2: QLogic bnx2 Gigabit Ethernet Driver v2.2.6 (January 29, 2014)
bnx2 0000:01:00.0 eth0: Broadcom NetXtreme II BCM5716 1000Base-T (C0) PCI Express found ....


TEST RUN
You'll notice I requested 90Mb/s per stream, ran 4 streams (360Mb/s total), but only got a total of 224Mb/s.  I'm certain that's because CPU 7 is railed on both since I only have a single process on each box for this test.

[sender]
Cpu7  : 11.0%us, 89.0%sy, 
[receiver]
Cpu7  : 11.4%us, 88.2%sy, 


[crussell@localhost ~]$ iperf3 -i 10 -u -b 90M -l 64 -t 30 -Z -P 4 -w 1M -A 7,7 -p 5195 -c 10.18.49.10
Connecting to host 10.18.49.10, port 5195
[  4] local 10.18.48.10 port 41757 connected to 10.18.49.10 port 5195
[  6] local 10.18.48.10 port 56923 connected to 10.18.49.10 port 5195
[  8] local 10.18.48.10 port 38524 connected to 10.18.49.10 port 5195
[ 10] local 10.18.48.10 port 58086 connected to 10.18.49.10 port 5195
[ ID] Interval           Transfer     Bandwidth       Total Datagrams

(Middle redacted for Brevity)

- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Jitter    Lost/Total Datagrams
[  4]   0.00-30.00  sec   200 MBytes  55.9 Mbits/sec  0.004 ms  0/3275660 (0%)  
[  4] Sent 3275660 datagrams
[  6]   0.00-30.00  sec   200 MBytes  55.9 Mbits/sec  0.003 ms  0/3275660 (0%)  
[  6] Sent 3275660 datagrams
[  8]   0.00-30.00  sec   200 MBytes  55.9 Mbits/sec  0.003 ms  0/3275660 (0%)  
[  8] Sent 3275660 datagrams
[ 10]   0.00-30.00  sec   200 MBytes  55.9 Mbits/sec  0.004 ms  0/3275660 (0%)  
[ 10] Sent 3275660 datagrams
[SUM]   0.00-30.00  sec   800 MBytes   224 Mbits/sec  0.003 ms  0/13102640 (0%)  





Archive powered by MHonArc 2.6.19.

Top of Page