How to use _run_dpdk_perf_test method in lisa

Best Python code snippet using lisa_python

dpdkperf.py

Source:dpdkperf.py Github

copy

Full Screen

...48 result: TestResult,49 log: Logger,50 variables: Dict[str, Any],51 ) -> None:52 self._run_dpdk_perf_test("failsafe", result, log, variables)53 @TestCaseMetadata(54 description="""55 DPDK Performance: failsafe mode, multiple service cores56 """,57 priority=3,58 requirement=simple_requirement(59 min_core_count=8,60 min_count=2,61 network_interface=Sriov(),62 min_nic_count=2,63 unsupported_features=[Gpu, Infiniband],64 supported_features=[IsolatedResource],65 ),66 )67 def perf_dpdk_failsafe_pmd_multi_core(68 self,69 result: TestResult,70 log: Logger,71 variables: Dict[str, Any],72 ) -> None:73 self._run_dpdk_perf_test("failsafe", result, log, variables, service_cores=4)74 @TestCaseMetadata(75 description="""76 DPDK Performance: failsafe mode, multiple service cores, max nics77 """,78 priority=3,79 requirement=simple_requirement(80 min_core_count=8,81 min_count=2,82 network_interface=Sriov(),83 min_nic_count=8,84 unsupported_features=[Gpu, Infiniband],85 supported_features=[IsolatedResource],86 ),87 )88 def perf_dpdk_failsafe_pmd_multi_core_max_nic(89 self,90 result: TestResult,91 log: Logger,92 variables: Dict[str, Any],93 ) -> None:94 self._run_dpdk_perf_test(95 "failsafe", result, log, variables, use_max_nics=True, service_cores=496 )97 @TestCaseMetadata(98 description="""99 DPDK Performance: failsafe mode, muliple tx/rx queues100 """,101 priority=3,102 requirement=simple_requirement(103 min_core_count=8,104 min_count=2,105 network_interface=Sriov(),106 min_nic_count=2,107 unsupported_features=[Gpu, Infiniband],108 supported_features=[IsolatedResource],109 ),110 )111 def perf_dpdk_failsafe_pmd_multi_queue(112 self,113 result: TestResult,114 log: Logger,115 variables: Dict[str, Any],116 ) -> None:117 self._run_dpdk_perf_test("failsafe", result, log, variables, use_queues=True)118 @TestCaseMetadata(119 description="""120 DPDK Performance: failsafe mode, mutiple tx/rx queues, max nics121 """,122 priority=3,123 requirement=simple_requirement(124 min_core_count=8,125 min_count=2,126 network_interface=Sriov(),127 min_nic_count=8,128 unsupported_features=[Gpu, Infiniband],129 supported_features=[IsolatedResource],130 ),131 )132 def perf_dpdk_failsafe_pmd_multi_queue_max_nics(133 self,134 result: TestResult,135 log: Logger,136 variables: Dict[str, Any],137 ) -> None:138 self._run_dpdk_perf_test(139 "failsafe", result, log, variables, use_max_nics=True, use_queues=True140 )141 @TestCaseMetadata(142 description="""143 DPDK Performance: failsafe mode, many service cores, many queues, max nics144 """,145 priority=3,146 requirement=simple_requirement(147 min_count=2,148 min_core_count=8,149 network_interface=Sriov(),150 min_nic_count=8,151 unsupported_features=[Gpu, Infiniband],152 supported_features=[IsolatedResource],153 ),154 )155 def perf_dpdk_failsafe_pmd_multi_queue_multi_core_max_nics(156 self,157 result: TestResult,158 log: Logger,159 variables: Dict[str, Any],160 ) -> None:161 self._run_dpdk_perf_test(162 "failsafe",163 result,164 log,165 variables,166 service_cores=4,167 use_max_nics=True,168 use_queues=True,169 )170 @TestCaseMetadata(171 description="""172 DPDK Performance: direct use of VF, minimal core count, default queues173 """,174 priority=3,175 requirement=simple_requirement(176 min_count=2,177 network_interface=Sriov(),178 min_core_count=8,179 min_nic_count=2,180 unsupported_features=[Gpu, Infiniband],181 supported_features=[IsolatedResource],182 ),183 )184 def perf_dpdk_netvsc_pmd_minimal(185 self,186 result: TestResult,187 log: Logger,188 variables: Dict[str, Any],189 ) -> None:190 self._run_dpdk_perf_test("netvsc", result, log, variables)191 @TestCaseMetadata(192 description="""193 DPDK Performance: direct use of VF, multiple service cores194 """,195 priority=3,196 requirement=simple_requirement(197 min_count=2,198 network_interface=Sriov(),199 min_nic_count=2,200 min_core_count=8,201 unsupported_features=[Gpu, Infiniband],202 supported_features=[IsolatedResource],203 ),204 )205 def perf_dpdk_netvsc_pmd_multi_core(206 self,207 result: TestResult,208 log: Logger,209 variables: Dict[str, Any],210 ) -> None:211 self._run_dpdk_perf_test("netvsc", result, log, variables, service_cores=4)212 @TestCaseMetadata(213 description="""214 DPDK Performance: direct use of VF, multiple service cores, max nics215 Run on a big VM216 """,217 priority=3,218 requirement=simple_requirement(219 min_count=2,220 network_interface=Sriov(),221 min_nic_count=8,222 min_core_count=8,223 unsupported_features=[Gpu, Infiniband],224 supported_features=[IsolatedResource],225 ),226 )227 def perf_dpdk_netvsc_pmd_multi_core_max_nics(228 self,229 result: TestResult,230 log: Logger,231 variables: Dict[str, Any],232 ) -> None:233 self._run_dpdk_perf_test(234 "netvsc", result, log, variables, service_cores=4, use_max_nics=True235 )236 @TestCaseMetadata(237 description="""238 DPDK Performance: direct use of VF, multiple tx/rx queues239 """,240 priority=3,241 requirement=simple_requirement(242 min_count=2,243 network_interface=Sriov(),244 min_nic_count=2,245 min_core_count=8,246 unsupported_features=[Gpu, Infiniband],247 supported_features=[IsolatedResource],248 ),249 )250 def perf_dpdk_netvsc_pmd_multi_queue(251 self,252 result: TestResult,253 log: Logger,254 variables: Dict[str, Any],255 ) -> None:256 self._run_dpdk_perf_test("netvsc", result, log, variables, use_queues=True)257 @TestCaseMetadata(258 description="""259 DPDK Performance: direct use of VF, multiple tx/rx queues, max nics260 """,261 priority=3,262 requirement=simple_requirement(263 min_count=2,264 network_interface=Sriov(),265 min_nic_count=8,266 min_core_count=8,267 unsupported_features=[Gpu, Infiniband],268 supported_features=[IsolatedResource],269 ),270 )271 def perf_dpdk_netvsc_pmd_multi_queue_max_nics(272 self,273 result: TestResult,274 log: Logger,275 variables: Dict[str, Any],276 ) -> None:277 self._run_dpdk_perf_test(278 "netvsc", result, log, variables, use_queues=True, use_max_nics=True279 )280 @TestCaseMetadata(281 description="""282 DPDK Performance: direct use of VF, many service cores, many queues, max nics283 """,284 priority=3,285 requirement=simple_requirement(286 min_count=2,287 network_interface=Sriov(),288 min_core_count=8,289 min_nic_count=8,290 unsupported_features=[Gpu, Infiniband],291 supported_features=[IsolatedResource],292 ),293 )294 def perf_dpdk_netvsc_pmd_multi_queue_multi_core_max_nics(295 self,296 result: TestResult,297 log: Logger,298 variables: Dict[str, Any],299 ) -> None:300 self._run_dpdk_perf_test(301 "netvsc",302 result,303 log,304 variables,305 service_cores=4,306 use_max_nics=True,307 use_queues=True,308 )309 def _run_dpdk_perf_test(310 self,311 pmd: str,312 test_result: TestResult,313 log: Logger,314 variables: Dict[str, Any],315 use_max_nics: bool = False,316 use_queues: bool = False,317 service_cores: int = 1,318 ) -> None:319 environment = test_result.environment320 assert environment, "fail to get environment from testresult"321 # run build + validation to populate results322 self._validate_core_counts_are_equal(test_result)323 try:...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run lisa automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful