-
Notifications
You must be signed in to change notification settings - Fork 1
/
test-simple.sh
executable file
·44 lines (43 loc) · 1.19 KB
/
test-simple.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
43
44
export root=/Users/snair/works
> $root/log.txt
for app in auction2
do
for granularity in 1
do
for mode in 17
do
for placement in dist
do
for op in c
do
for replica in z
do
cd dislocksim
export APP=$app
export GRANULARITY=$granularity
export LOCKTYPE=$mode
make dockdown
make dockrun &
P_PID=$!
sleep 60
chmod 777 latency-$placement.sh
./latency-$placement.sh
cd ..
cd YCSB
(
for location in paris tokyo singapore capetown newyork
do
mkdir -p $root/wlogs/$app/workload$op$replica/$granularity-$mode-$placement
./bin/ycsb run rest -s -P workloads/$app/workload$op$replica/$location > $root/wlogs/$app/workload$op$replica/$granularity-$mode-$placement/$location.txt & wait_pids+=($!)
done
wait "${wait_pids[@]}"
)
cd ..
kill $P_PID
echo "Done " $app $granularity $mode $placement $op $replica >> $root/log.txt
done
done
done
done
done
done