Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / orbsvcs / tests / EC_Multiple / gen_utilization
blobad0941c1fd7651e33a3ce0e1fa97a7a0ac9856fa
1 #!/bin/sh
3 HP_WORKLOADS="60 65 70 72 74 76 78 80 81 82 83 84 85 86 87 88 89 90"
6 for w in $HP_WORKLOADS; do
7 echo $w
8 ./histo.pl -k 'Laxity\[LCL,LP' UTL.LCL.${w}.log > UTL.XLCL.${w}.LP.histo
9 ./histo.pl -k 'Laxity\[LCL,HP' UTL.LCL.${w}.log > UTL.XLCL.${w}.HP.histo
10 ./histo.pl -k 'Laxity\[LCL,LP' UTL.ECM1.${w}.log UTL.ECM2.${w}.log > UTL.LCL.${w}.LP.histo
11 ./histo.pl -k 'Laxity\[LCL,HP' UTL.ECM1.${w}.log UTL.ECM2.${w}.log > UTL.LCL.${w}.HP.histo
12 done
14 HP_MSGS=200
15 HP_CONSUMERS=1
17 LP_WORKLOAD=500
18 LP_MSGS=50
19 LP_CONSUMERS=1
21 WORK_USEC=118
23 # awk '{print $1, 100 * ($1 * 200 + 500 * 50) * 118 / $2}' |
25 grep 'Min' UTL.XLCL.*.LP.histo |
26 sed -e 's/UTL.XLCL.//' -e s'/.LP.histo:Min://' -e 's/,//g' |
27 awk '{print $1, $6, $2, $4}' |
28 sort -n > UTL.XLCL.LP.LAX.data
30 grep 'Min' UTL.XLCL.*.HP.histo |
31 sed -e 's/UTL.XLCL.//' -e s'/.HP.histo:Min://' -e 's/,//g' |
32 awk '{print $1, $6, $2, $4}' |
33 sort -n > UTL.XLCL.HP.LAX.data
35 grep 'Min' UTL.LCL.*.LP.histo |
36 sed -e 's/UTL.LCL.//' -e s'/.LP.histo:Min://' -e 's/,//g' |
37 awk '{print $1, $6, $2, $4}' |
38 sort -n > UTL.LCL.LP.LAX.data
40 grep 'Min' UTL.LCL.*.HP.histo |
41 sed -e 's/UTL.LCL.//' -e s'/.HP.histo:Min://' -e 's/,//g' |
42 awk '{print $1, $6, $2, $4}' |
43 sort -n > UTL.LCL.HP.LAX.data
45 cat UTL.LCL.LP.LAX.data |
46 awk '{print ($1 * 4 + 500) * 118 / 1000, $2, $3, $4}' > UTL.LCL.LP.data
47 cat UTL.XLCL.LP.LAX.data |
48 awk '{print ($1 * 4 + 500) * 118 / 1000, $2, $3, $4}' > UTL.XLCL.LP.data
49 cat UTL.LCL.HP.LAX.data |
50 awk '{print ($1 * 4 + 500) * 118 / 1000, $2, $3, $4}' > UTL.LCL.HP.data
51 cat UTL.XLCL.HP.LAX.data |
52 awk '{print ($1 * 4 + 500) * 118 / 1000, $2, $3, $4}' > UTL.XLCL.HP.data
54 exit 0
56 gnuplot <<_EOF_
57 set grid xtics ytics
58 set terminal postscript eps color
59 set xlabel "CPU Utilization (percentage)"
61 set ylabel "Minimum laxity for low-priority task"
62 set output "UTL.LCL.eps"
63 plot 'UTL.LCL.data' w l
64 #set terminal x11
65 #plot 'UTL.LCL.data' w l
66 #pause 2
68 _EOF_
70 for i in UTL.*.eps; do
71 b=`basename $i .eps`
72 gs -sDEVICE=jpeg -g640x480 -r110x110 -sNOPAUSE \
73 -sOutputFile="${b}.jpg" ${b}.eps quit.ps
74 done
76 grep 'Time\[LCL,HP' UTL.LCL.*.log | sed -e 's/UTL.LCL.//' -e s'/.log:Time\[.*\]://' | awk '{if ($1 != 0) {print $2 / $1 / 200}}'