aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Bastoni <bastoni@cs.unc.edu>2010-03-04 18:09:36 -0500
committerAndrea Bastoni <bastoni@cs.unc.edu>2010-03-04 18:09:36 -0500
commitf66c5c64dc8f884c65fc215b90c490bbfdd96b54 (patch)
treebf5498c333124fe94ded970e6875173b8e993dfd
parent6c6757681d65c4e4b547a0e03368c6b7cef78255 (diff)
Add PM test scripts
-rwxr-xr-xscripts/test_find11
-rw-r--r--scripts/test_get_arrays.py22
-rwxr-xr-xscripts/test_script44
-rwxr-xr-xscripts/test_single_taskset12
-rwxr-xr-xscripts/test_single_taskset_mtimes_long8
-rwxr-xr-xscripts/test_single_taskset_mtimes_short8
6 files changed, 105 insertions, 0 deletions
diff --git a/scripts/test_find b/scripts/test_find
new file mode 100755
index 0000000..6ef5921
--- /dev/null
+++ b/scripts/test_find
@@ -0,0 +1,11 @@
1#!/bin/bash
2TASK=0
3while read inputline;
4do
5 e=`echo $inputline | awk -F' ' '{print $1}'`
6 p=`echo $inputline | awk -F' ' '{print $2}'`
7 c=`echo $inputline | awk -F' ' '{print $3}'`
8 ./rt_launch -w $e $p -p $c find /
9 TASK=`expr $TASK + 1`
10done < uni1_050_0.ts-psn-edf
11./release_ts -d 5000
diff --git a/scripts/test_get_arrays.py b/scripts/test_get_arrays.py
new file mode 100644
index 0000000..a218b4e
--- /dev/null
+++ b/scripts/test_get_arrays.py
@@ -0,0 +1,22 @@
1#!/usr/bin/python
2# recall: PYTHONPATH=".." python test_get_arrays.py :)
3import sys, pm
4
5args = sys.argv[1:]
6if len(args) != 1:
7 print "Filename required"
8 sys.exit(-1)
9
10pm.load(args[0],0,4)
11x = pm.getPreemption()
12y = pm.getOnChipMigration()
13z = pm.getL2Migration()
14w = pm.getOffChipMigration()
15print "preemption: "
16print x
17print "samechip:"
18print y
19print "l2:"
20print z
21print "offchip"
22print w
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";
10for A in "GSN-EDF";
11do
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
44done
diff --git a/scripts/test_single_taskset b/scripts/test_single_taskset
new file mode 100755
index 0000000..232dc3b
--- /dev/null
+++ b/scripts/test_single_taskset
@@ -0,0 +1,12 @@
1#!/bin/bash
2rm -f res-*.bin
3TASK=0
4while read inputline;
5do
6 e=`echo $inputline | awk -F' ' '{print $1}'`
7 p=`echo $inputline | awk -F' ' '{print $2}'`
8 c=`echo $inputline | awk -F' ' '{print $3}'`
9 ./rt_launch -w $e $p -p $c ./pm_task ./res-$TASK.bin
10 TASK=`expr $TASK + 1`
11done < uni1_050_0.ts
12./release_ts -d 5000
diff --git a/scripts/test_single_taskset_mtimes_long b/scripts/test_single_taskset_mtimes_long
new file mode 100755
index 0000000..1b8100d
--- /dev/null
+++ b/scripts/test_single_taskset_mtimes_long
@@ -0,0 +1,8 @@
1#!/bin/bash
2for i in `seq 0 200` ; do
3 echo -n "$i) ";
4 ./test_single_taskset ;
5 sleep 100;
6 cat res-*.bin >> result-all-$i.bin
7done
8
diff --git a/scripts/test_single_taskset_mtimes_short b/scripts/test_single_taskset_mtimes_short
new file mode 100755
index 0000000..0ae2093
--- /dev/null
+++ b/scripts/test_single_taskset_mtimes_short
@@ -0,0 +1,8 @@
1#!/bin/bash
2for i in `seq 0 100` ; do
3 echo -n "$i) ";
4 ./test_single_taskset ;
5 sleep 20;
6 cat res-*.bin >> result-all-$i.bin
7done
8