aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@dhcp11667.dhcp.unc.edu>2009-01-12 10:18:42 -0500
committerBjoern Brandenburg <bbb@dhcp11667.dhcp.unc.edu>2009-01-12 10:18:42 -0500
commit8747d1b1cf6af2a1f7c9108c177b7b8764bda19e (patch)
tree1adb2c0c5a2bbc56507828497f09e2bbaf86aaf7
parent10514785b2690b443610afef558de6f7d4f72dd9 (diff)
setup labels and ranges correctly for each experiment
-rwxr-xr-xplot_ecrts38
1 files changed, 35 insertions, 3 deletions
diff --git a/plot_ecrts b/plot_ecrts
index 2b33575..f2af270 100755
--- a/plot_ecrts
+++ b/plot_ecrts
@@ -15,7 +15,7 @@ while true; do
15 esac 15 esac
16done 16done
17 17
18PLOTTER="plot_scatter $EPS_FLAG --lines --xrange 0.5 32.5 --yrange -0.05 1.05 --xticks 0 2 --yticks 0 0.1" 18PLOTTER="plot_scatter $EPS_FLAG --lines "
19 19
20function get_tmp_file { 20function get_tmp_file {
21 OS=`uname` 21 OS=`uname`
@@ -71,9 +71,41 @@ function plot_file {
71 ;; 71 ;;
72 esac 72 esac
73 done 73 done
74 YRANGE=" --yrange -0.05 1.05 --yticks 0 0.1"
75 case $AXIS in
76 ucap)
77 if [ "$SCHED" == "P-EDF" ]
78 then
79 XRANGE="--xrange 0.5 32.5 --xticks 0 2"
80 else
81 XRANGE="--xrange 0.5 14.5 --xticks 0 1"
82 fi
83 AXIS_LABEL="task set utilization (prior to inflation)"
84 ;;
85 res)
86 XRANGE="--xrange 0 5.5 --xticks 0 1"
87 AXIS_LABEL="average number of resources per task"
88 ;;
89 nest)
90 XRANGE="--xrange 0 0.55 --xticks 0 0.1"
91 AXIS_LABEL="probability of nested requests"
92 ;;
93 contention)
94 XRANGE="--xrange 25 575 --xticks 0 50"
95 AXIS_LABEL="requests per resource per second"
96 ;;
97 wratio)
98 XRANGE="--xrange 0 0.55 --xticks 0 0.1"
99 AXIS_LABEL="ratio of write requests"
100 ;;
101 *)
102 echo "Unkown axis: $AXIS."
103 AXIS_LABEL="$AXIS"
104 ;;
105 esac
74 TITLE="$TEST schedulability under $SCHED with$PARAMS" 106 TITLE="$TEST schedulability under $SCHED with$PARAMS"
75 echo $TITLE 107 RANGE="$XRANGE $YRANGE"
76 $PLOTTER "$NAME" "$AXIS" "Schedulability" "$TITLE" \ 108 $PLOTTER $RANGE "$NAME" "$AXIS_LABEL" "ratio of schedulable task sets" "$TITLE" \
77 $STRIPPED 1 2 "fair mutex" \ 109 $STRIPPED 1 2 "fair mutex" \
78 $STRIPPED 1 3 "task-fair RW" \ 110 $STRIPPED 1 3 "task-fair RW" \
79 $STRIPPED 1 4 "phase-fair RW" 111 $STRIPPED 1 4 "phase-fair RW"