Fix scripts
This commit is contained in:
parent
e176314057
commit
8c5ea96ecd
3 changed files with 5 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
mkdir -p ./log
|
mkdir -p ./{res,log}
|
||||||
measlat -h 127.0.0.1 -p 9000 > /dev/null 2>&1 # Used to wait for connections
|
measlat -h 127.0.0.1 -p 9000 > /dev/null 2>&1 # Used to wait for connections
|
||||||
measlat -h 127.0.0.1 -p 9000 -c $1 -i $2 -s $3 > ./res/witness.csv 2> ./log/client-measlat-stderr.log
|
measlat -h 127.0.0.1 -p 9000 -c $1 -i $2 -s $3 > ./res/witness.csv 2> ./log/client-measlat-stderr.log
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
mkdir -p ./log
|
mkdir -p ./log
|
||||||
udpecho -p 9000 > ../log/server-udpecho-stdout.log 2> ../log/server-udpecho-stderr.log
|
udpecho -p 9000 > ./log/server-udpecho-stdout.log 2> ./log/server-udpecho-stderr.log
|
||||||
|
|
||||||
|
|
|
@ -9,8 +9,6 @@ COUNT=$2
|
||||||
INTERVAL=$3
|
INTERVAL=$3
|
||||||
SIZE=$4
|
SIZE=$4
|
||||||
ALLOWED_BOOTSTRAP=190
|
ALLOWED_BOOTSTRAP=190
|
||||||
ALLOWED_TIME=`expr $(expr ${COUNT} * ${INTERVAL}) / 1000 + ${ALLOWED_BOOTSTRAP}`
|
|
||||||
echo "Will run for ${ALLOWED_TIME} (count=$1, interval=$2)"
|
|
||||||
|
|
||||||
# Create folders
|
# Create folders
|
||||||
docker run \
|
docker run \
|
||||||
|
@ -29,9 +27,10 @@ docker run \
|
||||||
-v `pwd`/shared:/home/donar/shared \
|
-v `pwd`/shared:/home/donar/shared \
|
||||||
-v `pwd`/log:/home/donar/log \
|
-v `pwd`/log:/home/donar/log \
|
||||||
registry.gitlab.inria.fr/qdufour/donar \
|
registry.gitlab.inria.fr/qdufour/donar \
|
||||||
${XP_NAME}-server >/dev/null
|
${XP_NAME}-server
|
||||||
|
|
||||||
sleep 10
|
sleep 10
|
||||||
|
docker ps
|
||||||
|
|
||||||
# Run client
|
# Run client
|
||||||
docker run \
|
docker run \
|
||||||
|
@ -43,9 +42,7 @@ docker run \
|
||||||
-v `pwd`/shared:/home/donar/shared \
|
-v `pwd`/shared:/home/donar/shared \
|
||||||
-v `pwd`/log:/home/donar/log \
|
-v `pwd`/log:/home/donar/log \
|
||||||
registry.gitlab.inria.fr/qdufour/donar \
|
registry.gitlab.inria.fr/qdufour/donar \
|
||||||
${XP_NAME}-client $COUNT $INTERVAL $SIZE >/dev/null
|
${XP_NAME}-client $COUNT $INTERVAL $SIZE
|
||||||
|
|
||||||
#sleep $ALLOWED_TIME
|
|
||||||
|
|
||||||
# Kill
|
# Kill
|
||||||
#docker kill "$XP_ID-client" || true
|
#docker kill "$XP_ID-client" || true
|
||||||
|
|
Loading…
Reference in a new issue