client_opts={ "duration": netperf_duration, "testname": "TCP_STREAM", "confidence": nperf_confidence, "num_parallel": nperf_num_parallel, "cpu_util": nperf_cpu_util, "runs": nperf_max_runs, "debug": nperf_debug, "max_deviation": nperf_max_dev, "msg_size": nperf_msg_size, "netperf_opts": nperf_opts }, baseline=baseline, timeout=(netperf_duration + nperf_reserve) * nperf_max_runs) netperf_result_template(result_tcp, tcp_res_data) result_tcp.set_comment(pr_comment) perf_api.save_result(result_tcp, official_result) # prepare PerfRepo result for udp result_udp = perf_api.new_result( "udp_ipv4_id", "udp_ipv4_result", hash_ignore=[r'kernel_release', r'redhat_release']) result_udp.add_tag(product_name) if nperf_num_parallel > 1: result_udp.add_tag("multithreaded") result_udp.set_parameter('num_parallel', nperf_num_parallel) result_udp.set_parameter('cipher_alg', ciph_alg)
'kernel_release', 'redhat_release']) result_tcp_rr.add_tag(product_name) if nperf_mode == "multi": result_tcp_rr.add_tag("multithreaded") result_tcp_rr.set_parameter('num_parallel', nperf_num_parallel) result_tcp_rr.set_parameter("rr_size", size) baseline = perf_api.get_baseline_of_result(result_tcp_rr) netperf_baseline_template(netperf_cli_tcp_rr, baseline, test_type="RR") tcp_rr_res_data = m2.run(netperf_cli_tcp_rr, timeout = (netperf_duration + nperf_reserve)*nperf_max_runs) netperf_result_template(result_tcp_rr, tcp_rr_res_data, test_type="RR") result_tcp_rr.set_comment(pr_comment) perf_api.save_result(result_tcp_rr, official_result) if 'TCP_CRR' in nperf_tests.split(): netperf_cli_tcp_crr.update_options({"testoptions": "-r %s" % size}) # prepare PerfRepo result for tcp_crr result_tcp_crr = perf_api.new_result("tcp_crr_id", "tcp_crr_result", hash_ignore=[ 'kernel_release', 'redhat_release']) result_tcp_crr.add_tag(product_name) if nperf_mode == "multi": result_tcp_crr.add_tag("multithreaded")
if nperf_msg_size is not None: result_tcp.set_parameter("nperf_msg_size", nperf_msg_size) result_tcp.add_tag(product_name) if nperf_mode == "multi": result_tcp.add_tag("multithreaded") result_tcp.set_parameter('num_parallel', nperf_num_parallel) baseline = perf_api.get_baseline_of_result(result_tcp) netperf_baseline_template(netperf_cli_tcp, baseline) tcp_res_data = m2.run(netperf_cli_tcp, timeout = (netperf_duration + nperf_reserve)*nperf_max_runs) netperf_result_template(result_tcp, tcp_res_data) result_tcp.set_comment(pr_comment) perf_api.save_result(result_tcp, official_result) if nperf_protocols.find("udp") > -1 and ("gro", "off") not in setting: # prepare PerfRepo result for udp result_udp = perf_api.new_result("udp_ipv4_id", "udp_ipv4_result", hash_ignore=[ 'kernel_release', 'redhat_release']) for offload in setting: result_udp.set_parameter(offload[0], offload[1]) if nperf_msg_size is not None: result_udp.set_parameter("nperf_msg_size", nperf_msg_size)
'kernel_release', 'redhat_release']) result_tcp_rr.add_tag(product_name) if nperf_mode == "multi": result_tcp_rr.add_tag("multithreaded") result_tcp_rr.set_parameter('num_parallel', nperf_num_parallel) result_tcp_rr.set_parameter("rr_size", size) baseline = perf_api.get_baseline_of_result(result_tcp_rr) netperf_baseline_template(netperf_cli_tcp_rr, baseline, test_type="RR") tcp_rr_res_data = m2.run(netperf_cli_tcp_rr, timeout = (netperf_duration + nperf_reserve)*nperf_max_runs) netperf_result_template(result_tcp_rr, tcp_rr_res_data, test_type="RR") result_tcp_rr.set_comment(pr_comment) perf_api.save_result(result_tcp_rr, official_result) # prepare PerfRepo result for tcp_crr result_tcp_crr = perf_api.new_result("tcp_crr_id", "tcp_crr_result", hash_ignore=[ 'kernel_release', 'redhat_release']) result_tcp_crr.add_tag(product_name) if nperf_mode == "multi": result_tcp_crr.add_tag("multithreaded") result_tcp_crr.set_parameter('num_parallel', nperf_num_parallel) result_tcp_crr.set_parameter("rr_size", size)