From 69fab1515b26e0abbf68039c300c7b215fb3ed69 Mon Sep 17 00:00:00 2001 From: Luis Gomez Date: Sun, 28 Aug 2016 11:48:04 -0700 Subject: [PATCH] Stabilize Cbench throughput test - Set log to ERROR - Add start delay - Reduce MAC # Change-Id: If06642b56875cb0fe716d98c2be0fde094e5629a Signed-off-by: Luis Gomez --- .../suites/openflowplugin/Performance/010_Cbench.robot | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/csit/suites/openflowplugin/Performance/010_Cbench.robot b/csit/suites/openflowplugin/Performance/010_Cbench.robot index b6b6176014..3faf20ca53 100644 --- a/csit/suites/openflowplugin/Performance/010_Cbench.robot +++ b/csit/suites/openflowplugin/Performance/010_Cbench.robot @@ -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 -- 2.36.6