regression: avoid queue full at trex11 37/5337/1
authorYaroslav Brustinov <[email protected]>
Sat, 31 Dec 2016 10:27:58 +0000 (12:27 +0200)
committerYaroslav Brustinov <[email protected]>
Sat, 31 Dec 2016 10:27:58 +0000 (12:27 +0200)
Change-Id: If6ff7e2675657bc53ef49237db3604b088a48ffc
Signed-off-by: Yaroslav Brustinov <[email protected]>
scripts/automation/regression/setups/trex11/benchmark.yaml
scripts/automation/regression/stateless_tests/stl_performance_test.py

index 6c52819..6203d85 100644 (file)
@@ -187,7 +187,7 @@ test_all_profiles :
 
 test_performance_vm_single_cpu:
     cfg:
-        mult                    : "40%"
+        mult                    : "5%"
         mpps_per_core_golden    : 
                                    min: 1
                                    max: 99
@@ -195,7 +195,7 @@ test_performance_vm_single_cpu:
 
 test_performance_vm_single_cpu_cached:
     cfg:
-        mult                    : "40%"
+        mult                    : "5%"
         mpps_per_core_golden    : 
                                    min: 1
                                    max: 99
@@ -204,15 +204,15 @@ test_performance_vm_single_cpu_cached:
 
 test_performance_syn_attack_single_cpu:
      cfg:
-        mult                    : "40%"
+        mult                    : "5%"
         mpps_per_core_golden    :
                                   min: 1
                                   max: 99
 
 test_performance_vm_multi_cpus:
     cfg:
-        core_count             : 7
-        mult                   : "40%"
+        core_count             : 1
+        mult                   : "5%"
         mpps_per_core_golden   :
                                   min: 1
                                   max: 99
@@ -220,16 +220,17 @@ test_performance_vm_multi_cpus:
 
 test_performance_vm_multi_cpus_cached:
     cfg:
-        core_count             : 7
-        mult                   : "40%"
+        core_count             : 1
+        mult                   : "5%"
         mpps_per_core_golden   :
                                   min: 1
                                   max: 99
 
 test_performance_syn_attack_multi_cpus:
     cfg:
-        core_count             : 7
-        mult                   : "40%"
+        core_count             : 1
+        mult                   : "5%"
         mpps_per_core_golden   :
                                   min: 1
                                   max: 99
+
index f0cdac7..7537cfa 100644 (file)
@@ -296,7 +296,8 @@ class STLPerformance_Test(CStlGeneral_Test):
             # sample bps/pps
             for _ in range(0, 20):
                 stats = self.c.get_stats(ports = 0)
-                if stats['global'][ 'queue_full']>10000:
+                max_queue_full = 100000 if self.is_VM else 10000 
+                if stats['global'][ 'queue_full'] > max_queue_full:
                     assert 0, "Queue is full need to tune the multiplier"
 
                     # CPU results are not valid cannot use them