-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_suite.sh
42 lines (42 loc) · 1.82 KB
/
run_suite.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
CUR_DIR=`pwd`
for i in 1 2 4 8; do
for nproxies in 1 2 4 8 16; do
nproxymachines=$(($nproxies*3))
nclients=$nproxies
for conc in 1 2 4 8 16 32 64; do
for max_log_size in 500000; do # unused
for j in `seq 1 `; do
echo Beginning run $j with $nclients clients conc $conc, $i shards and $nproxies proxies
sleep 3
while :
do
timestamp=`date +%s`
dir=results-$timestamp
python3 run_experiment.py $1 --outdir $dir --client_concurrency $conc --nproxies $nproxymachines \
--nproxy_threads 8 --nproxy_leaders $(($nproxies*8)) \
--nsequence_spaces $i --nclients $nclients
bash parse_datfiles.sh results | tee last-results
cd results/$dir
grep BUS proxy-*
# grep dequeueing proxy-* | head -1
# grep dequeueing proxy-* | tail -1
echo $nclients
if [ $nclients -ne `ls client-*.dat | wc -l` ]
then
cd $CUR_DIR
echo A client failed force removing results/$dir in 3 seconds.
sleep 3
rm -fr results/$dir
continue
fi
#grep 'BUS\|Total\|raw' proxy-*
cd $CUR_DIR
echo "Done run $j of concurrency $conc and $i shards max_log_size $max_log_size"
sleep 3
break
done
done
done
done
done
done