New PROX commit ID and bug fix 18/69618/1
authorLuc Provoost <luc.provoost@intel.com>
Fri, 31 Jan 2020 17:06:02 +0000 (12:06 -0500)
committerLuc Provoost <luc.provoost@intel.com>
Fri, 31 Jan 2020 17:06:02 +0000 (12:06 -0500)
Updated deploycentos.sh with latest PROX commit ID and took another code
review comment into account.

Change-Id: Iedfa695be7496459d990f36e2dc00c8890b19fb3
Signed-off-by: Luc Provoost <luc.provoost@intel.com>
VNFs/DPPD-PROX/helper-scripts/rapid/deploycentostools.sh
VNFs/DPPD-PROX/helper-scripts/rapid/runrapid.py

index 96a90de..1d260d6 100644 (file)
@@ -20,7 +20,7 @@ WORK_DIR="/home/centos" # Directory where the packer tool has copied some files
                        # Runtime scripts are assuming ${WORK_DIR} as the directory for PROX. Check the rundir variable in runrapid.py. Should be the same!
                        # This variable is defined in 4 different places and should have the same value: centos.json, deploycentos.sh, check_prox_system_setup.sh and runrapid.py
 DPDK_VERSION="19.05"
-PROX_COMMIT="2cd03b79"
+PROX_COMMIT="b71a4cfd"
 PROX_CHECKOUT="git checkout ${PROX_COMMIT}"
 ## Next line is overruling the PROX_COMMIT and will replace the version with a very specific patch. Should be commented out
 ##     if you want to use a committed version of PROX
index f6bb950..124a234 100755 (executable)
@@ -413,7 +413,7 @@ def run_iteration(gensock, sutsock, requested_duration,flow_number,size,speed):
                                sample_count += bucket
                                if sample_count > tot_lat_samples * LAT_PERCENTILE:
                                        break
-                       percentile_max = (percentile == len(buckets))
+                       percentile_max = (percentile == len(buckets_total))
                        percentile = percentile *  float(2 ** BUCKET_SIZE_EXP) / (float(lat_hz)/float(10**6))
                        pps_req_tx = (tot_tx + tot_drop - tot_rx)/tot_core_measurement_duration/1000000.0 # tot_drop is all packets dropped by all tasks. This includes packets dropped at the generator task + packets dropped by the nop task. In steady state, this equals to the number of packets received by this VM
                        pps_tx = tot_tx/tot_core_measurement_duration/1000000.0 # tot_tx is all generated packets actually accepted by the interface