Newer
Older
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
echo "[PERF] All scenario completed - Killing server and mbox"
# Kill the server
killServer
# Kill mboxes
killMbox
fi
# Save previous remote information to decide whether to start the server or not
prevRemote=$REMOTE
done
# Results
if [ -f $log ]
then
if [ $debug -eq 1 ]
then
echo "#Time to first byte Analysis" > $resFile
echo "#FileSize Rate Remote Duration" >> $resFile
fi
# fixing log file
cat $log | grep "Action" | cut -f 7 -d " " > .tmpMore
paste .tmp .tmpMore > .res
# Analyzing (corrected) log
match=`head -n 1 .res | awk '{print $1"_"$2"_"$3}'`
cat .res | awk -v S=$match -f stdev3.awk > $resFile
echo "[PERF] Results correctly written on file <<$resFile>>"
#rm .tmp .tmpMore
else
echo "[PERF] No file <<$log>> created, check for ERRORS!"
fi
;;
*)
;;
esac
# Cleanup
if [ $# -eq $totParam -a $expType -ne 9 ]
then
echo "[PERF] Resetting network parameters (after experiment)"
./network.sh 2
fi
# Kill the server
killServer
# Kill mboxes
killMbox