summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stf
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2017-01-03 17:25:18 +0200
committerHanoh Haim <hhaim@cisco.com>2017-01-05 15:45:41 +0200
commit9eda18ac948dc35996baf81940683bd5baea9858 (patch)
treedc19cc574b04681efb88201de2d634d041a98d74 /scripts/automation/trex_control_plane/stf
parentc7ea49121bb1ea79352a2bb6dbf20425bae3b3a6 (diff)
add not accurate timer wheel for better performance
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
Diffstat (limited to 'scripts/automation/trex_control_plane/stf')
-rw-r--r--scripts/automation/trex_control_plane/stf/examples/stf_active_flow.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/automation/trex_control_plane/stf/examples/stf_active_flow.py b/scripts/automation/trex_control_plane/stf/examples/stf_active_flow.py
index 0a72c9ac..8560a5db 100644
--- a/scripts/automation/trex_control_plane/stf/examples/stf_active_flow.py
+++ b/scripts/automation/trex_control_plane/stf/examples/stf_active_flow.py
@@ -14,8 +14,8 @@ def minimal_stateful_test(server,csv_file,a_active_flows):
trex_client.start_trex(
c = 7,
m = 30000,
-# f = 'cap2/cur_flow_single.yaml',
- f = 'cap2/cur_flow.yaml',
+ f = 'cap2/cur_flow_single.yaml',
+# f = 'cap2/cur_flow.yaml',
d = 30,
l = 1000,
p=True,
@@ -39,6 +39,7 @@ def minimal_stateful_test(server,csv_file,a_active_flows):
print("WARNING QUEU WAS FULL");
tuple=(active_flows[-5],cpu_utl[-5],pps[-5],queue_full[-1])
+ print(tuple)
file_writer = csv.writer(test_file)
file_writer.writerow(tuple);
@@ -58,7 +59,7 @@ if __name__ == '__main__':
max_flows = 8000000;
min_flows = 100;
active_flow = min_flows;
- num_point = 10
+ num_point = 40
factor = math.exp(math.log(max_flows/min_flows,math.e)/num_point);
for i in range(num_point+1):
print("<<=====================>>",i,math.floor(active_flow))