Skip to content

Commit d356888

Browse files
committed
upload test_on_remote.sh
1 parent 7841162 commit d356888

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

runtime/tests/test_on_remote.sh

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/bin/bash
2+
function usage {
3+
echo "$0 [concurrency] [fib number]"
4+
exit 1
5+
}
6+
7+
if [ $# != 2 ] ; then
8+
usage
9+
exit 1;
10+
fi
11+
12+
concurrency=$1
13+
fib_num=$2
14+
15+
16+
chmod 400 ./id_rsa
17+
#test single c40
18+
19+
20+
#cores_list=(1 2 4 6 8 10 12 14 16 18 20 24 28 32 36 40 44 48 52 56 60 64 68 70)
21+
cores_list=(64 68 70)
22+
ulimit -n 655350
23+
24+
25+
path="/my_mount/self_to_local/sledge-serverless-framework/runtime/tests"
26+
for(( i=0;i<${#cores_list[@]};i++ )) do
27+
hey_log=${cores_list[i]}"-$fib_num-$concurrency.log" #8-38-100
28+
server_log="server-"${cores_list[i]}"-$fib_num-$concurrency.log"
29+
#./start.sh ${cores_list[i]} >/dev/null 2>&1 &
30+
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh ${cores_list[i]} > $server_log 2>&1 &"
31+
echo "sledge start with worker core ${cores_list[i]}"
32+
hey -disable-compression -disable-keepalive -disable-redirects -z "60"s -c "$concurrency" -m POST -d "$fib_num" "http://10.10.1.1:10030/fib" > $hey_log
33+
#taskset --cpu-list 80-159 hey -disable-compression -disable-keepalive -disable-redirects -z "60"s -c "$concurrency" "http://127.0.0.1:10030/fib" > $hey_log
34+
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
35+
done
36+
folder_name="$fib_num""_c$concurrency"
37+
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "mkdir $path/$folder_name"
38+
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "mv *.log $path/$folder_name"
39+

0 commit comments

Comments
 (0)