We use many threads in performance testing, but we could not
insure they are working synchronously. This patch enabled the
demo-mode of netperf, we can watch demo output to remove noise
result, and only compute the results that all threads work
parallelly.

// demo mode outputs:

MIGRATED TCP MAERTS TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 
192.168.58.246 () port 0 AF_INET : demo
Interim result:  908.72 10^6bits/s over 1.000 seconds ending at 1355814034.980
Interim result: 1449.25 10^6bits/s over 1.001 seconds ending at 1355814035.976
Interim result: 2038.24 10^6bits/s over 1.060 seconds ending at 1355814036.037
Interim result: 1688.01 10^6bits/s over 1.114 seconds ending at 1355814036.088
Interim result: 1536.88 10^6bits/s over 1.116 seconds ending at 1355814036.097
Interim result: 1821.27 10^6bits/s over 1.001 seconds ending at 1355814036.977
Interim result: 2102.92 10^6bits/s over 1.004 seconds ending at 1355814037.092

// session-length : 10 (host -> guest)
Category:TCP_STREAM (RX)
        size|    sessions|  throughput|   CPU| thr_per_CPU| rx_pkts ..
         512|           1|     2206.30| 66.28|       33.29| 1321466 ..
         512|           4|     5256.72| 61.82|       85.03|  120937 ..
        1024|           1|     5772.92| 59.23|       97.47|  108569 ..
        1024|           4|     5352.34| 57.84|       92.54|  107863 ..
Category:TCP_MAERTS (TX)                                              
        size|    sessions|  throughput|   CPU| thr_per_CPU| rx_pkts ..
         512|           1|     1683.06| 59.09|       28.48|  679277 ..
         512|           4|     7595.73| 78.75|       96.45|  250113 ..
        1024|           1|     1661.40| 54.67|       30.39|  665556 ..
        1024|           4|     7160.22| 73.87|       96.93|  252955 ..
Category:TCP_RR                                                       
        size|    sessions|  trans.rate|   CPU| thr_per_CPU| rx_pkts ..
         512|          32|    31518.06| 50.12|      628.85|  310362 ..
         512|          64|    48036.02| 54.45|      882.20|  472225 ..
        1024|          32|    29954.05| 49.79|      601.61|  302284 ..
        1024|          64|    45304.21| 54.77|      827.17|  443339 ..

Amos Kong (3):
  netperf: trivial fix of parameter name
  netperf: replace '-b' parameter with multiple threads
  netperf: enable demo mode

 shared/cfg/subtests.cfg.sample |    2 +-
 tests/netperf.py               |  114 +++++++++++++++++++++++++++-------------
 2 files changed, 79 insertions(+), 37 deletions(-)

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to