From c664bbedd7c74ef776b892d22cf3c2d1e9528895 Mon Sep 17 00:00:00 2001 From: Andrea Bastoni Date: Tue, 16 Mar 2010 17:14:50 -0400 Subject: Re-organize scripts directory and add some documentation --- scripts/pm_test_script | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100755 scripts/pm_test_script (limited to 'scripts/pm_test_script') diff --git a/scripts/pm_test_script b/scripts/pm_test_script new file mode 100755 index 0000000..c9034f8 --- /dev/null +++ b/scripts/pm_test_script @@ -0,0 +1,55 @@ +#!/bin/bash +# +# pm_test_script: +# Batch script for running (all?) pm benchmarking experiments. +# Run it as root! +# +# Some assumptions and hints: +# _works easily if copied in the main liblitmus directory +# _need the Makefile in wip-pm-ovd litmus2010 branch to compile +# smoothly +# _assume a pm_raw_results directory under liblitmus to store +# raw results +# _assume tasksets are stored in several directories under +# liblitmus with the name: PLUGIN-ts/uni1_TASKSETSIZE_[0..9].ts +# e.g., GSN-EDF-ts/uni1_450_8.ts +# +# Original script by John Calandrino 2008 +# Changes by Andrea Bastoni 2010 +# +#for A in "PFAIR" "GSN-EDF" "C-EDF" "PSN-EDF"; +for A in "GSN-EDF"; +do + echo "Setting plugin $A..." +# ./setsched $A + sleep 1 + + for W in 1024; + do + echo "Experiments for WSS of `expr $W`KB" + DEFINE=-DWSS=$W make + sleep 1 + for X in `seq -w 50 50 450`; # Number of tasks + do + for Y in `seq 0 9`; # Taskset number + do + # Read task set from some source and start all tasks. + TASK=0 + while read inputline; + do + e=`echo $inputline | awk -F' ' '{print $1}'` + p=`echo $inputline | awk -F' ' '{print $2}'` + c=`echo $inputline | awk -F' ' '{print $3}'` + ./rt_launch -w $e $p -p $c ./pm_task ./pm_raw_results/results_`expr $A`_`expr $W`_`expr $X`_`expr $Y`_`expr $TASK`.raw + TASK=`expr $TASK + 1` + done < `expr $A`-ts/uni1_`expr $X`_`expr $Y`.ts + ./release_ts -d 5000 + # Sleep for 150 seconds. This includes ~60 seconds + # of run time followed by 90 seconds of "tear down" time. + # NOTE: may need to sleep longer than this... + sleep 150 + killall pm_task + done + done + done +done -- cgit v1.2.2