From 1ba27201a284c8ee68561df8b04622ed624505c5 Mon Sep 17 00:00:00 2001 From: hwwang Date: Mon, 26 Aug 2024 16:20:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B5=8B=E8=AF=95=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 + runtime/tests/start.sh | 6 +- runtime/tests/start_test_single.sh | 104 ++++++++++++++++++++++++----- 3 files changed, 92 insertions(+), 20 deletions(-) diff --git a/.gitignore b/.gitignore index 2adb446..c9c14b4 100644 --- a/.gitignore +++ b/.gitignore @@ -56,6 +56,8 @@ runtime/tests/tmp/ runtime/tests/**/*.csv runtime/tests/**/*.txt runtime/tests/**/*.xlsx +runtime/tests/test_data/ +runtime/tests/**/*.log # Swap Files *.swp diff --git a/runtime/tests/start.sh b/runtime/tests/start.sh index d12e7a1..39f7e7b 100755 --- a/runtime/tests/start.sh +++ b/runtime/tests/start.sh @@ -21,9 +21,9 @@ echo $project_path path=`pwd` #export SLEDGE_DISABLE_PREEMPTION=true export SLEDGE_CPU_SPEED=2500 -export SLEDGE_SCHEDULER=EDF -export SLEDGE_SIGALRM_HANDLER=BROADCAST -#export SLEDGE_SIGALRM_HANDLER=TRIAGED +export SLEDGE_SCHEDULER=SRSF +#export SLEDGE_SIGALRM_HANDLER=BROADCAST +export SLEDGE_SIGALRM_HANDLER=TRIAGED export SLEDGE_NWORKERS=32 #export SLEDGE_SCHEDULER=EDF export SLEDGE_SANDBOX_PERF_LOG=$path/$output diff --git a/runtime/tests/start_test_single.sh b/runtime/tests/start_test_single.sh index 6be057d..c0de1da 100755 --- a/runtime/tests/start_test_single.sh +++ b/runtime/tests/start_test_single.sh @@ -8,53 +8,123 @@ function usage { chmod 400 ./id_rsa path="/home/weihao/sledge/sledge_tree/runtime/tests" -#test single c5 50% max RPS (500) +#test single 5k c5 50% max RPS (500) f1="5k_single_50.txt" server_log_file="execution_single_5k_50.log" $path/start.sh $server_log_file >/dev/null 2>&1 & echo "sledge is running" ./test_8c.sh $f1 120 50 5k.jpg 10006 2>&1 & -pid5=$! -wait -f $pid5 +pid1=$! +wait -f $pid1 $path/kill_sledge.sh -#test single c5 60% max RPS +#test single 5k c5 60% max RPS f1="5k_single_60.txt" server_log_file="execution_single_5k_60.log" $path/start.sh $server_log_file >/dev/null 2>&1 & echo "sledge is running" -./test_rps.sh $f1 30 60 5k.jpg 10006 2>&1 & +./test_rps.sh $f1 120 60 5k.jpg 10006 2>&1 & pid1=$! wait -f $pid1 $path/kill_sledge.sh -#test single c5 70% max RPS +#test single 5k c5 70% max RPS f1="5k_single_70.txt" server_log_file="execution_single_5k_70.log" $path/start.sh $server_log_file >/dev/null 2>&1 & echo "sledge is running" -./test_rps.sh $f1 30 70 5k.jpg 10006 2>&1 & -pid2=$! -wait -f $pid2 +./test_rps.sh $f1 120 70 5k.jpg 10006 2>&1 & +pid1=$! +wait -f $pid1 $path/kill_sledge.sh -#test single c5 80% max RPS +#test single 5k c5 80% max RPS f1="5k_single_80.txt" server_log_file="execution_single_5k_80.log" $path/start.sh $server_log_file >/dev/null 2>&1 & echo "sledge is running" -./test_rps.sh $f1 30 80 5k.jpg 10006 2>&1 & -pid3=$! -wait -f $pid3 +./test_rps.sh $f1 120 80 5k.jpg 10006 2>&1 & +pid1=$! +wait -f $pid1 $path/kill_sledge.sh -#test single c5 90% max RPS +#test single 5k c5 90% max RPS f1="5k_single_90.txt" server_log_file="execution_single_5k_90.log" $path/start.sh $server_log_file >/dev/null 2>&1 & echo "sledge is running" -./test_rps.sh $f1 30 90 5k.jpg 10006 2>&1 & -pid4=$! -wait -f $pid4 +./test_rps.sh $f1 120 90 5k.jpg 10006 2>&1 & +pid1=$! +wait -f $pid1 +$path/kill_sledge.sh + +#test single 5k c5 99% max RPS +f1="5k_single_99.txt" +server_log_file="execution_single_5k_99.log" +$path/start.sh $server_log_file >/dev/null 2>&1 & +echo "sledge is running" +./test_rps.sh $f1 120 100 5k.jpg 10006 2>&1 & +pid1=$! +wait -f $pid1 +$path/kill_sledge.sh + +#test single 105k c5 50% max RPS (135) +f1="105k_single_50.txt" +server_log_file="execution_single_105k_50.log" +$path/start.sh $server_log_file >/dev/null 2>&1 & +echo "sledge is running" +./test_8c.sh $f1 120 13 5k.jpg 10000 2>&1 & +pid2=$! +wait -f $pid2 +$path/kill_sledge.sh + +#test single 105k c5 60% max RPS +f1="105k_single_60.txt" +server_log_file="execution_single_105k_60.log" +$path/start.sh $server_log_file >/dev/null 2>&1 & +echo "sledge is running" +./test_8c.sh $f1 120 16 5k.jpg 10000 2>&1 & +pid2=$! +wait -f $pid2 +$path/kill_sledge.sh + +#test single 105k c5 70% max RPS +f1="105k_single_70.txt" +server_log_file="execution_single_105k_70.log" +$path/start.sh $server_log_file >/dev/null 2>&1 & +echo "sledge is running" +./test_8c.sh $f1 120 19 5k.jpg 10000 2>&1 & +pid2=$! +wait -f $pid2 +$path/kill_sledge.sh + +#test single 105k c5 80% max RPS +f1="105k_single_80.txt" +server_log_file="execution_single_105k_80.log" +$path/start.sh $server_log_file >/dev/null 2>&1 & +echo "sledge is running" +./test_8c.sh $f1 120 22 5k.jpg 10000 2>&1 & +pid2=$! +wait -f $pid2 +$path/kill_sledge.sh + +#test single 105k c5 90% max RPS +f1="105k_single_90.txt" +server_log_file="execution_single_105k_90.log" +$path/start.sh $server_log_file >/dev/null 2>&1 & +echo "sledge is running" +./test_8c.sh $f1 120 25 5k.jpg 10000 2>&1 & +pid2=$! +wait -f $pid2 +$path/kill_sledge.sh + +#test single 105k c5 99% max RPS +f1="105k_single_99.txt" +server_log_file="execution_single_105k_99.log" +$path/start.sh $server_log_file >/dev/null 2>&1 & +echo "sledge is running" +./test_8c.sh $f1 120 27 5k.jpg 10000 2>&1 & +pid2=$! +wait -f $pid2 $path/kill_sledge.sh