[netperf-talk] Patch for demo mode

Jeremy Eder jeder at redhat.com
Sun Jul 29 04:18:15 PDT 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/27/2012 06:33 PM, Cook, Jonathan wrote:
> I have encountered a problem with netperf when using demo mode to
> display periodic performance reports.  The –D option works well in most
> cases, but when sending UDP data from netperf to netserver the reports
> show how much data is being sent from netperf, not how much data is
> actually making it through the network to netserver.  There can be a
> significant difference between the two numbers.  I have attached a patch
> which changes the behavior so that on an OMNI  UDP send test information
> is sent periodically from netserver to netperf indicating the actual
> throughput.  Netperf then displays the interval results based on the
> received data instead of the sent data.
> 

Jonathan, thank you -- some test data below, showing the unpatched
netperf generally reporting 5% higher throughput than the patched copy.


# numactl -N0 -m0 trunk/src/netperf -t UDP_STREAM -H 172.17.1.53 -D 1,1
- -l 10
MIGRATED UDP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to
172.17.1.53 () port 0 AF_INET : interval : demo
Interim result: 9680.59 10^6bits/s over 1.000 seconds ending at
1343560235.610
Interim result: 9676.28 10^6bits/s over 1.000 seconds ending at
1343560236.610
Interim result: 9676.94 10^6bits/s over 1.000 seconds ending at
1343560237.610
Interim result: 9676.59 10^6bits/s over 1.000 seconds ending at
1343560238.610
Interim result: 9673.30 10^6bits/s over 1.000 seconds ending at
1343560239.610
Interim result: 9672.06 10^6bits/s over 1.000 seconds ending at
1343560240.611
Interim result: 9660.40 10^6bits/s over 1.001 seconds ending at
1343560241.612
Interim result: 9665.01 10^6bits/s over 1.000 seconds ending at
1343560242.612
Interim result: 9652.85 10^6bits/s over 1.001 seconds ending at
1343560243.613
Interim result: 9669.09 10^6bits/s over 0.997 seconds ending at
1343560244.610
Socket  Message  Elapsed      Messages
Size    Size     Time         Okay Errors   Throughput
bytes   bytes    secs            #      #   10^6bits/sec

229376   65507   10.00      184529      0    9670.24
229376           10.00      176123           9229.72

# numactl -N0 -m0 trunk.cook/src/netperf -t UDP_STREAM -H 172.17.1.53 -D
1,1 -l 10
MIGRATED UDP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to
172.17.1.53 () port 0 AF_INET : interval : demo
Interim result: 9137.76 10^6bits/s over 1.011 seconds ending at
1343560208.629
Interim result: 9275.10 10^6bits/s over 1.010 seconds ending at
1343560209.639
Interim result: 9276.17 10^6bits/s over 1.000 seconds ending at
1343560210.639
Interim result: 9154.00 10^6bits/s over 1.010 seconds ending at
1343560211.649
Interim result: 9135.32 10^6bits/s over 1.010 seconds ending at
1343560212.659
Interim result: 9328.02 10^6bits/s over 1.010 seconds ending at
1343560213.669
Interim result: 9189.47 10^6bits/s over 1.010 seconds ending at
1343560214.679
Interim result: 9577.39 10^6bits/s over 1.000 seconds ending at
1343560215.679
Interim result: 9105.46 10^6bits/s over 1.050 seconds ending at
1343560216.729
Interim result: 9057.09 10^6bits/s over 0.889 seconds ending at
1343560217.618
Socket  Message  Elapsed      Messages
Size    Size     Time         Okay Errors   Throughput
bytes   bytes    secs            #      #   10^6bits/sec

229376   65507   10.00      182457      0    9561.68
229376           10.00      176817           9266.11
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJQFRv2AAoJEJqn3Wey3P5nnTYQAKRo1BGI1MfP1+whN0hieNHC
wP6B7+1+sBZkZa6wJbDKY/uhMpGioZzX3St/HCxyqWoq/OAgMAkQIpYtNy0PZwWz
1JltkE7NAH0CpvoYxvxFCEJlStD2nBh14avEb7ckL19kyVbHuhiZk1Igbm8ZAfnq
qxMUxFU/ErxjNoKJJo43r55JGuUPn+FPYyiuwI2u4HOqbIDVfrD1jy3y3RE0N8fG
csRqi36zg3NURJJjLTfxaCVjaDc5rHeAanbo2Pzj7ukXCt5ZhghpALqmaLlW5bVE
O3D8N+5u/UMmV+qBriQGyp6mRVXwNOnv34M2WlZ2yGsHw7LCJzshrIEhJSTAk6r/
XFZY42WzLtmZ4cmVILgypb3hwsX4X8BiUpWlu86KBuMcOzHfuS0OD1U8bIq0/Unf
o97lJ3pVjy6k+o4SgaGox4Lgdx1Ex1yJo9rIW1I+Q0fSTHcYg1z+yVYyypbYIxql
V2JMEuz6mMyyKzZHE5gMJh8X6InRZ2WrcUzumNHLoZTQcP0WNb5PmR2dfSTl2khm
jWLuVno/IctiH916zSGWRq+sFMZQJTmv9i4ICp2avAy47kJpOFD+TvWecjcRK6pR
0+Qz0XJzsjp/3lWX1+rHfeyRKrwqQ3h8J2Eg5TlRNUbeBk1XKVnXHY1+1IWLVZuM
GfKaXefPCHWKw72N/5ix
=WHzV
-----END PGP SIGNATURE-----


More information about the netperf-talk mailing list