diff options
author | 2019-04-12 11:20:58 +0200 | |
---|---|---|
committer | 2019-04-12 11:20:58 +0200 | |
commit | d4216dd28019256fd6363ed4269d540ef64ec23c (patch) | |
tree | 60f2fbae8433616b972c804e6dc9525e0757bd07 /VNFs/DPPD-PROX/helper-scripts/openstackrapid/prox_ctrl.py | |
parent | af95b812c39e7fa039b7041b6cb8aba0c5e88c02 (diff) |
Improved image building & new PROX
Bug fixes for the script for building an image via the packer tool. This
also installs a newer version of PROX with some bug fixes in PROX. The
*.test files have been simplified. Also introduced a new file
MachineMap.cfg to map test machines on actual VMs.
Change-Id: I69445327ef0a907bc8c1566aaa60c733418c541e
Signed-off-by: Luc Provoost <luc.provoost@intel.com>
Diffstat (limited to 'VNFs/DPPD-PROX/helper-scripts/openstackrapid/prox_ctrl.py')
-rw-r--r-- | VNFs/DPPD-PROX/helper-scripts/openstackrapid/prox_ctrl.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/VNFs/DPPD-PROX/helper-scripts/openstackrapid/prox_ctrl.py b/VNFs/DPPD-PROX/helper-scripts/openstackrapid/prox_ctrl.py index 70395097..3ee28c00 100644 --- a/VNFs/DPPD-PROX/helper-scripts/openstackrapid/prox_ctrl.py +++ b/VNFs/DPPD-PROX/helper-scripts/openstackrapid/prox_ctrl.py @@ -40,8 +40,8 @@ class prox_ctrl(object): def close(self): """Must be called before program termination.""" - for prox in self._proxsock: - prox.quit() +# for prox in self._proxsock: +# prox.quit() children = len(self._children) if children == 0: return @@ -193,7 +193,11 @@ class prox_sock(object): max_lat = max(int(stats[1]),max_lat) avg_lat += int(stats[2]) avg_lat = avg_lat/len(cores) - return min_lat, max_lat, avg_lat + self._send('stats latency(0).used') + used = float(self._recv()) + self._send('stats latency(0).total') + total = float(self._recv()) + return min_lat, max_lat, avg_lat, (used/total) def irq_stats(self, core, bucket, task=0): self._send('stats task.core(%s).task(%s).irq(%s)' % (core, task, bucket)) |