3 HP_CONSUMERS
="1 5 10 20"
4 # The number of high priority consumers.
7 # The number of high priority suppliers
9 for s
in $HP_SUPPLIERS; do
10 for c
in $HP_CONSUMERS; do
11 grep TOTAL THR.LCL.S
${s}.C
${c}.
*.log |
12 sed -e "s/THR.LCL.S${s}.C${c}.I//" -e 's/\.log:Time\[TOTAL\]://' |
13 nawk
-v f
=$s '{print 1000000 / $1, $2 * f / 500 / $1}' |
14 sort -n > THR.LCL.S
${s}.C
${c}.data
18 cat >/tmp
/genthr.$$
<<EOF
20 set ylabel "Effective/Expected Event Rate"
21 set xlabel "Event Rate (Hz)"
22 set output "THR.LCL.eps"
23 set terminal postscript eps color
26 for s
in $HP_SUPPLIERS; do
27 for c
in $HP_CONSUMERS; do
28 cat >>/tmp
/genthr.$$
<<EOF
29 replot 'THR.LCL.S${s}.C${c}.data' title "$s supp. $c cons." w l
34 gnuplot
< /tmp
/genthr.$$
36 for i
in THR.
*.eps
; do
38 gs
-sDEVICE=jpeg
-g640x480 -r110x110 -sNOPAUSE \
39 -sOutputFile="${b}.jpg" ${b}.eps quit.ps