-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrunall.sh
More file actions
111 lines (91 loc) · 2.78 KB
/
runall.sh
File metadata and controls
111 lines (91 loc) · 2.78 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
#!/bin/bash
RES_DIR=/root/test/result
curr_dir=$(pwd)
azure_mems=(48)
ali_mems=(48)
criu_azure_mems=(48)
criu_ali_mems=(48)
# check azure trace result
for mem in ${azure_mems[@]}; do
echo "azure mems: $mem"
if [ -d ${RES_DIR}/baseline-azure-${mem}g ]; then
echo "${RES_DIR}/baseline-azure-${mem}g exists!"
exit 1
fi
if [ -d ${RES_DIR}/switch-azure-${mem}g ]; then
echo "${RES_DIR}/switch-azure-${mem}g exists!"
exit 1
fi
done
for mem in ${criu_azure_mems[@]}; do
echo "criu azure mems: $mem"
if [ -d ${RES_DIR}/criu-azure-${mem}g ]; then
echo "${RES_DIR}/criu-azure-${mem}g exists!"
exit 1
fi
done
# check ali trace result
for mem in ${ali_mems[@]}; do
echo "ali mems: $mem"
if [ -d ${RES_DIR}/baseline-ali-${mem}g ]; then
echo "${RES_DIR}/baseline-ali-${mem}g exists!"
exit 1
fi
if [ -d ${RES_DIR}/switch-ali-${mem}g ]; then
echo "${RES_DIR}/switch-ali-${mem}g exists!"
exit 1
fi
done
for mem in ${criu_ali_mems[@]}; do
echo "criu ali mems: $mem"
if [ -d ${RES_DIR}/criu-ali-${mem}g ]; then
echo "${RES_DIR}/criu-ali-${mem}g exists!"
exit 1
fi
done
cd /root/test/faasd-testdriver
echo "generating azure trace..."
python gen_trace.py -w azure --dataset /root/downloads/azurefunction-dataset2019
cd $curr_dir
# since different criu version containers different kdat cache
# so we'd better run switch for all and then change to criu for efficiency
for mem in ${azure_mems[@]}; do
bash physical-test.sh switch-azure-${mem}g $mem
bash physical-collect-res.sh switch-azure-${mem}g
bash physical-test.sh baseline-azure-${mem}g $mem
bash physical-collect-res.sh baseline-azure-${mem}g
done
cd /root/test/faasd-testdriver
echo "generating ali trace..."
python gen_trace.py -w ali --dataset /root/downloads/data_training/dataSet_3
cd $curr_dir
for mem in ${ali_mems[@]}; do
bash physical-test.sh switch-ali-${mem}g $mem
bash physical-collect-res.sh switch-ali-${mem}g
bash physical-test.sh baseline-ali-${mem}g $mem
bash physical-collect-res.sh baseline-ali-${mem}g
done
# then we test criu
cd /root/test/faasd-testdriver
echo "generating azure trace..."
python gen_trace.py -w azure --dataset /root/downloads/azurefunction-dataset2019
cd $curr_dir
# since different criu version containers different kdat cache
# so we'd better run switch for all and then change to criu for efficiency
for mem in ${criu_azure_mems[@]}; do
bash physical-test.sh criu-azure-${mem}g $mem
bash physical-collect-res.sh criu-azure-${mem}g
done
cd /root/test/faasd-testdriver
echo "generating ali trace..."
python gen_trace.py -w ali --dataset /root/downloads/data_training/dataSet_3
cd $curr_dir
for mem in ${criu_ali_mems[@]}; do
bash physical-test.sh criu-ali-${mem}g $mem
bash physical-collect-res.sh criu-ali-${mem}g
done
sync
sync
sync
sleep 20
reboot