diff options
| author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-03-04 18:09:36 -0500 |
|---|---|---|
| committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-03-04 18:09:36 -0500 |
| commit | f66c5c64dc8f884c65fc215b90c490bbfdd96b54 (patch) | |
| tree | bf5498c333124fe94ded970e6875173b8e993dfd /scripts/test_script | |
| parent | 6c6757681d65c4e4b547a0e03368c6b7cef78255 (diff) | |
Add PM test scripts
Diffstat (limited to 'scripts/test_script')
| -rwxr-xr-x | scripts/test_script | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/scripts/test_script b/scripts/test_script new file mode 100755 index 0000000..1bef33a --- /dev/null +++ b/scripts/test_script | |||
| @@ -0,0 +1,44 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | # | ||
| 3 | # Original script by John Calandrino 2008 | ||
| 4 | # Changes by Andrea Bastoni 2010 | ||
| 5 | # | ||
| 6 | # Batch script for running all benchmarking experiments. | ||
| 7 | # Run it as root! | ||
| 8 | # | ||
| 9 | #for A in "PFAIR" "GSN-EDF" "C-EDF" "PSN-EDF"; | ||
| 10 | for A in "GSN-EDF"; | ||
| 11 | do | ||
| 12 | echo "Setting plugin $A..." | ||
| 13 | # ./setsched $A | ||
| 14 | sleep 1 | ||
| 15 | |||
| 16 | for W in 1024; | ||
| 17 | do | ||
| 18 | echo "Experiments for WSS of `expr $W`KB" | ||
| 19 | DEFINE=-DWSS=$W make | ||
| 20 | sleep 1 | ||
| 21 | for X in `seq -w 50 50 450`; # Number of tasks | ||
| 22 | do | ||
| 23 | for Y in `seq 0 9`; # Taskset number | ||
| 24 | do | ||
| 25 | # Read task set from some source and start all tasks. | ||
| 26 | TASK=0 | ||
| 27 | while read inputline; | ||
| 28 | do | ||
| 29 | e=`echo $inputline | awk -F' ' '{print $1}'` | ||
| 30 | p=`echo $inputline | awk -F' ' '{print $2}'` | ||
| 31 | c=`echo $inputline | awk -F' ' '{print $3}'` | ||
| 32 | ./rt_launch -w $e $p -p $c ./pm_task ../pm_raw_results/results_`expr $A`_`expr $W`_`expr $X`_`expr $Y`_`expr $TASK`.raw | ||
| 33 | TASK=`expr $TASK + 1` | ||
| 34 | done < `expr $A`-ts/uni1_`expr $X`_`expr $Y`.ts | ||
| 35 | ./release_ts -d 5000 | ||
| 36 | # Sleep for 150 seconds. This includes ~60 seconds | ||
| 37 | # of run time followed by 90 seconds of "tear down" time. | ||
| 38 | # NOTE: may need to sleep longer than this... | ||
| 39 | sleep 150 | ||
| 40 | killall pm_task | ||
| 41 | done | ||
| 42 | done | ||
| 43 | done | ||
| 44 | done | ||
