-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfull_sched_regress.sh
executable file
·42 lines (40 loc) · 2.08 KB
/
full_sched_regress.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/bash
BIN=$(dirname $0)
for f in $*; do
b=$(basename $f)
k=$(perl -e '($n,$s,$k,$d,$x) = split /\./, $ARGV[0]; print $k' ${b})
d=$(perl -e '($n,$s,$k,$d,$x) = split /\./, $ARGV[0]; print $d' ${b})
echo Running ${BIN}/sched.pl $f ...
if [ ! -e ${b}.ss ]; then
/usr/bin/time -f "\t%E real,\t%U user,\t%S sys:\t%C" ${BIN}/sched.pl -n ss -k $k -d $d $f -s > ${b}.ss
fi
#if [ "$k" -eq "1" ]; then
# if [ ! -e ${b}.l0.lpfs ]; then
# /usr/bin/time -f "\t%E real,\t%U user,\t%S sys:\t%C" ${BIN}/sched.pl -n lpfs -k $k -l 0 -d $d $f -s > ${b}.l0.lpfs
# fi
#fi
for (( l=1; l < k; l++ )); do
#if [ ! -e ${b}.l${l}.lpfs ]; then
# /usr/bin/time -f "\t%E real,\t%U user,\t%S sys:\t%C" ${BIN}/sched.pl -n lpfs -k $k -l $l -d $d $f -s > ${b}.l${l}.lpfs
#fi
#${BIN}/sched.pl -n lpfs -k $k -l $l -d $d $f -s -refill > ${b}.r.l${l}.lpfs
if [ ! -e ${b}.s.l${l}.lpfs ]; then
/usr/bin/time -f "\t%E real,\t%U user,\t%S sys:\t%C" ${BIN}/sched.pl -n lpfs -k $k -l $l -d $d $f -s -opp > ${b}.s.l${l}.lpfs
fi
if [ ! -e ${b}.rs.l${l}.lpfs ]; then
/usr/bin/time -f "\t%E real,\t%U user,\t%S sys:\t%C" ${BIN}/sched.pl -n lpfs -k $k -l $l -d $d $f -s -opp -refill > ${b}.rs.l${l}.lpfs
fi
done
if [ ! -e ${b}.o1.d1.s1.rcp ]; then
/usr/bin/time -f "\t%E real,\t%U user,\t%S sys:\t%C" ${BIN}/sched.pl -n rcp -k $k -d $d --op 1 --dist 1 --slack 1 -s $f > ${b}.o1.d1.s1.rcp
fi
if [ ! -e ${b}.o10.d1.s1.rcp ]; then
/usr/bin/time -f "\t%E real,\t%U user,\t%S sys:\t%C" ${BIN}/sched.pl -n rcp -k $k -d $d --op 10 --dist 1 --slack 1 -s $f > ${b}.o10.d1.s1.rcp
fi
if [ ! -e ${b}.o1.d10.s1.rcp ]; then
/usr/bin/time -f "\t%E real,\t%U user,\t%S sys:\t%C" ${BIN}/sched.pl -n rcp -k $k -d $d --op 1 --dist 10 --slack 1 -s $f > ${b}.o1.d10.s1.rcp
fi
if [ ! -e ${b}.o1.d1.s10.rcp ]; then
/usr/bin/time -f "\t%E real,\t%U user,\t%S sys:\t%C" ${BIN}/sched.pl -n rcp -k $k -d $d --op 1 --dist 1 --slack 10 -s $f > ${b}.o1.d1.s10.rcp
fi
done