Stabilize Cbench throughput test 73/44773/7
authorLuis Gomez <ecelgp@gmail.com>
Sun, 28 Aug 2016 18:48:04 +0000 (11:48 -0700)
committerLuis Gomez <ecelgp@gmail.com>
Thu, 1 Sep 2016 08:23:41 +0000 (01:23 -0700)
- Set log to ERROR
- Add start delay
- Reduce MAC #

Change-Id: If06642b56875cb0fe716d98c2be0fde094e5629a
Signed-off-by: Luis Gomez <ecelgp@gmail.com>
csit/suites/openflowplugin/Performance/010_Cbench.robot

index b6b6176014848a0ef67206f4b1a5c288b88be1d4..3faf20ca536f1235c321829cc7b4be006ac43b7f 100644 (file)
@@ -15,10 +15,11 @@ Resource          ../../../libraries/KarafKeywords.robot
 *** Variables ***
 ${throughput_threshold}    30000
 ${latency_threshold}    10000
-${switch_count}    8
+${switch_count}    16
 ${duration_in_secs}    12
 ${loops}          10
-${num_of_unique_macs}    10000
+${num_of_unique_macs}    100
+${start_delay}    5000
 ${cbench_system}    ${TOOLS_SYSTEM_IP}
 ${cbench_executable}    /usr/local/bin/cbench
 ${throughput_results_file}    throughput.csv
@@ -31,7 +32,7 @@ Cbench Latency Test
     [Tags]    latency
     [Timeout]    ${test_timeout}
     Log    Cbench tests using ${loops} iterations of ${duration_in_secs} second tests. Switch Count: ${switch_count}. Unique MACS to cycle: ${num_of_unique_macs}
-    Run Cbench And Log Results    -m ${duration_in_ms} -M ${num_of_unique_macs} -s ${switch_count} -l ${loops}    ${latency_threshold}    ${latency_results_file}
+    Run Cbench And Log Results    -m ${duration_in_ms} -M ${num_of_unique_macs} -s ${switch_count} -l ${loops} -D ${start_delay}    ${latency_threshold}    ${latency_results_file}
 
 Cbench Throughput Test
     [Documentation]    cbench executed in throughput mode (-t). Test parameters have defaults, but can be overridden
@@ -39,7 +40,7 @@ Cbench Throughput Test
     [Tags]    throughput
     [Timeout]    ${test_timeout}
     Log    Cbench tests using ${loops} iterations of ${duration_in_secs} second tests. Switch Count: ${switch_count}. Unique MACS to cycle: ${num_of_unique_macs}
-    Run Cbench And Log Results    -t -m ${duration_in_ms} -M ${num_of_unique_macs} -s ${switch_count} -l ${loops}    ${throughput_threshold}    ${throughput_results_file}
+    Run Cbench And Log Results    -t -m ${duration_in_ms} -M ${num_of_unique_macs} -s ${switch_count} -l ${loops} -D ${start_delay}    ${throughput_threshold}    ${throughput_results_file}
     [Teardown]    Report_Failure_Due_To_Bug    6176
 
 *** Keywords ***
@@ -72,6 +73,7 @@ Run Cbench And Log Results
     Log Results And Determine Status    ${min}    ${max}    ${average}    ${average_threshold}    ${output_filename}
 
 Cbench Suite Setup
+    KarafKeywords.Issue Command On Karaf Console    log:set ERROR
     Append To File    ${latency_results_file}    LATENCY_MIN,LATENCY_MAX,LATENCY_AVERAGE\n
     Append To File    ${throughput_results_file}    THROUGHPUT_MIN,THROUGHPUT_MAX,THROUGHPUT_AVERAGE\n
     ${duration_in_ms}    Evaluate    ${duration_in_secs} * 1000