summaryrefslogtreecommitdiffstats
path: root/VNFs/DPPD-PROX/helper-scripts/rapid/prox_ctrl.py
diff options
context:
space:
mode:
authorLuc Provoost <luc.provoost@intel.com>2021-04-15 11:49:42 +0200
committerLuc Provoost <luc.provoost@intel.com>2021-04-15 11:49:42 +0200
commitb1cfe607cf04071e217f670b200b56d379b7b975 (patch)
tree7bbdf6fb5474f8d6d3392f6b11afda3ae077694a /VNFs/DPPD-PROX/helper-scripts/rapid/prox_ctrl.py
parent38eaaaf904b3130e918d0f5939c07327a113e282 (diff)
Rework of statistics reporting
- Cleanup of the format.yaml file. - Adding of the packet mis-ordering statistics - Added a warmup phase to get the correct mis-ordering statistics since ARP messages need to be dealt with before we can collect correct misordering stats - Code cleanup avoiding some long lines - Removing background traffic control from rapid_flowsizetest.py since this is already done in the iteration code in rapid_test.py Change-Id: I4c60a90353f27b8e2d0b62505e8f1cd886a17f0a Signed-off-by: Luc Provoost <luc.provoost@intel.com>
Diffstat (limited to 'VNFs/DPPD-PROX/helper-scripts/rapid/prox_ctrl.py')
-rw-r--r--VNFs/DPPD-PROX/helper-scripts/rapid/prox_ctrl.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/VNFs/DPPD-PROX/helper-scripts/rapid/prox_ctrl.py b/VNFs/DPPD-PROX/helper-scripts/rapid/prox_ctrl.py
index a9497e1b..8cd2e3f2 100644
--- a/VNFs/DPPD-PROX/helper-scripts/rapid/prox_ctrl.py
+++ b/VNFs/DPPD-PROX/helper-scripts/rapid/prox_ctrl.py
@@ -201,8 +201,11 @@ class prox_sock(object):
result = {}
result['lat_min'] = 999999999
result['lat_max'] = result['lat_avg'] = 0
- number_tasks_returning_stats = 0
result['buckets'] = [0] * 128
+ result['mis_ordered'] = 0
+ result['extent'] = 0
+ result['duplicate'] = 0
+ number_tasks_returning_stats = 0
self._send('lat all stats %s %s' % (','.join(map(str, cores)),
','.join(map(str, tasks))))
for core in cores:
@@ -226,9 +229,9 @@ class prox_sock(object):
result['lat_hz'] = int(stats[6])
#coreid = int(stats[7])
#taskid = int(stats[8])
- mis_ordered = int(stats[9])
- extent = int(stats[10])
- duplicate = int(stats[11])
+ result['mis_ordered'] += int(stats[9])
+ result['extent'] += int(stats[10])
+ result['duplicate'] += int(stats[11])
stats = self._recv().split(':')
if stats[0].startswith('error'):
RapidLog.critical("lat stats error: unexpected lat bucket \