#!/bin/bash function usage { echo "$0 [cpu-log]" exit 1 } picture=$1 scheduler=$2 #chmod 400 ./id_rsa ##path="/home/weihao/sledge/sledge_tree/runtime/tests" path="/home/njl/sledge/runtime/tests" ##test single $picture c5 50% max RPS (480) f1="${picture}_single_50.txt" server_log_file="execution_single_${picture}_50.log" ssh -o stricthostkeychecking=no njl@10.16.31.135"$path/start.sh $server_log_file >/dev/null 2>&1 &" ./test_rps.sh $f1 30 4 $picture.jpg 10000 2>&1 & pid1=$! wait $pid1 ssh -t -o stricthostkeychecking=no njl@10.16.31.135"$path/kill_sledge.sh" # f1="${picture}_single_60.txt" # server_log_file="execution_single_${picture}_60.log" # $path/start.sh $server_log_file >/dev/null 2>&1 & # echo "sledge is running" # ./test_rps.sh $f1 30 5 $picture.jpg 10000 2>&1 & # pid1=$! # wait $pid1 # $path/kill_sledge.sh # #test single $picture c5 70% max RPS # f1="${picture}_single_70.txt" # server_log_file="execution_single_${picture}_70.log" # $path/start.sh $server_log_file >/dev/null 2>&1 & # echo "sledge is running" # ./test_rps.sh $f1 30 6 $picture.jpg 10000 2>&1 & # pid1=$! # wait $pid1 # $path/kill_sledge.sh # f1="${picture}_single_80.txt" # server_log_file="execution_single_${picture}_80.log" # $path/start.sh $server_log_file >/dev/null 2>&1 & # echo "sledge is running" # ./test_rps.sh $f1 30 7 $picture.jpg 10000 2>&1 & # pid1=$! # wait $pid1 # $path/kill_sledge.sh # f1="${picture}_single_90.txt" # server_log_file="execution_single_${picture}_90.log" # $path/start.sh $server_log_file >/dev/null 2>&1 & # echo "sledge is running" # ./test_rps.sh $f1 30 8 $picture.jpg 10000 2>&1 & # pid1=$! # wait $pid1 # $path/kill_sledge.sh # #test single $picture c5 99% max RPS # f1="${picture}_single_99.txt" # server_log_file="execution_single_${picture}_99.log" # $path/start.sh $server_log_file >/dev/null 2>&1 & # echo "sledge is running" # ./test_rps.sh $f1 30 9 $picture.jpg 10000 2>&1 & # pid1=$! # wait $pid1 # $path/kill_sledge.sh # mv ${picture}_single_50.txt ~/meet_deadline/${picture}_llf/ # mv ${picture}_single_60.txt ~/meet_deadline/${picture}_llf/ # mv ${picture}_single_70.txt ~/meet_deadline/${picture}_llf/ # mv ${picture}_single_80.txt ~/meet_deadline/${picture}_llf/ # mv ${picture}_single_90.txt ~/meet_deadline/${picture}_llf/ # mv ${picture}_single_99.txt ~/meet_deadline/${picture}_llf/ # rm *.txt # python3 parse_parse_python.py $picture