4 LP_CONSUMERS
="1 10 100 200 300 500 1000"
6 for s
in $HP_SUPPLIERS; do
9 for c
in $LP_CONSUMERS; do
12 echo Consumer
= $c, LAST
= $l
14 echo DYN.LCL.S
${s}.C
${c}.log
16 .
/histo.pl
-k 'Latency\[LCL,HP00' DYN.LCL.S
${s}.C${c}.log >DYN.LCL.S${s}.C${c}.FIRST.histo
17 .
/histo.pl
-k "Latency\[LCL,HP${l}" DYN.LCL.S${s}.C${c}.log >DYN.LCL.S${s}.C${c}.LAST.histo
18 ./histo.pl -k "Latency\
[LCL
,HP
" DYN.LCL.S${s}.C${c}.log >DYN.LCL.S${s}.C${c}.histo
22 for f in DYN.*.histo; do
23 b=`basename $f .histo`
24 tail +3 $f | sort -n > ${b}.data
28 grep Min DYN.${i}.*.FIRST.histo |
29 sed -e "s
/DYN.
$i.S
//" -e 's/\.C/ /' -e 's/.FIRST.histo:/ /' -e 's/\,/ /g' |
30 awk '{print $1, $2, $4, $6, $8, $10}' |
31 sort -k 1n -k 2n > DYN.${i}.FIRST.tbl
32 grep Min DYN.${i}.*.LAST.histo |
33 sed -e "s
/DYN.
$i.S
//" -e 's/\.C/ /' -e 's/.LAST.histo:/ /' -e 's/\,/ /g' |
34 awk '{print $1, $2, $4, $6, $8, $10}' |
35 sort -k 1n -k 2n > DYN.${i}.LAST.tbl
36 paste DYN.${i}.FIRST.tbl DYN.${i}.LAST.tbl |
37 awk '{print $1, $2, $3, $4, $5, $6, $9, $10, $11, $12}' > DYN.${i}.tbl
41 grep Min `ls DYN.${i}.*.histo | grep -v FIRST | grep -v LAST` |
42 sed -e "s
/DYN.
$i.S
//" -e 's/\.C/ /' -e 's/.histo:/ /' -e 's/\,/ /g' |
43 awk '{print $1, $2, $4, $6, $8, $10}' |
44 sort -k 1n -k 2n > DYN.${i}.tbl
47 for s in $HP_SUPPLIERS; do
50 set ylabel "Relative frequency
"
51 set xlabel "Latency
(usecs
) [$s suppliers
, local events
]"
52 set terminal postscript eps color
53 set output "DYN.LCL.S
${s}.eps
"
54 plot 'DYN.LCL.S${s}.C1.data' w i
56 plot 'DYN.LCL.S${s}.C1.data' w i
61 for i in DYN.*.eps; do
63 gs -sDEVICE=jpeg -g640x480 -r110x110 -sNOPAUSE \
64 -sOutputFile="${b}.jpg
" ${b}.eps quit.ps