parent
7841162eee
commit
d3568884fe
@ -0,0 +1,39 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
function usage {
|
||||||
|
echo "$0 [concurrency] [fib number]"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ $# != 2 ] ; then
|
||||||
|
usage
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
|
||||||
|
concurrency=$1
|
||||||
|
fib_num=$2
|
||||||
|
|
||||||
|
|
||||||
|
chmod 400 ./id_rsa
|
||||||
|
#test single c40
|
||||||
|
|
||||||
|
|
||||||
|
#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)
|
||||||
|
cores_list=(64 68 70)
|
||||||
|
ulimit -n 655350
|
||||||
|
|
||||||
|
|
||||||
|
path="/my_mount/self_to_local/sledge-serverless-framework/runtime/tests"
|
||||||
|
for(( i=0;i<${#cores_list[@]};i++ )) do
|
||||||
|
hey_log=${cores_list[i]}"-$fib_num-$concurrency.log" #8-38-100
|
||||||
|
server_log="server-"${cores_list[i]}"-$fib_num-$concurrency.log"
|
||||||
|
#./start.sh ${cores_list[i]} >/dev/null 2>&1 &
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/start.sh ${cores_list[i]} > $server_log 2>&1 &"
|
||||||
|
echo "sledge start with worker core ${cores_list[i]}"
|
||||||
|
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
|
||||||
|
#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
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "$path/kill_sledge.sh"
|
||||||
|
done
|
||||||
|
folder_name="$fib_num""_c$concurrency"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "mkdir $path/$folder_name"
|
||||||
|
ssh -o stricthostkeychecking=no -i ./id_rsa xiaosuGW@10.10.1.1 "mv *.log $path/$folder_name"
|
||||||
|
|
Loading…
Reference in new issue