Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / orbsvcs / tests / EC_Multiple / run_utilization
blob833d4b27d92a660bcd590b97ef9c78d037980e4a
1 #!/bin/sh
3 HP_WORKLOADS="0 60 65 70 72 74 76 78 80 81 82 83 84 85 86 87 88 89 90"
4 HP_MSGS=200
5 HP_CONSUMERS=1
6 HP_INTERVAL=25000
8 LP_WORKLOAD=500
9 LP_MSGS=50
10 LP_CONSUMERS=1
11 LP_INTERVAL=100000
13 /bin/rm -f NameService.ior NameService.pid EC1.pid EC2.pid EC.pid
15 # Generate the baseline data, i.e. shortcircuit the EC.
17 for w in $HP_WORKLOADS; do
18 echo Local EC test $w
19 ../../Naming_Service/Naming_Service \
20 -o NameService.ior -p NameService.pid >/dev/null 2>&1 &
21 sleep 2
22 NameService=`cat NameService.ior`
23 export NameService
24 ./EC_Multiple -l ECM1 -s runtime -p ECM1.pid \
25 -w 1,${LP_CONSUMERS},${LP_WORKLOAD},${LP_INTERVAL},${LP_MSGS},3,4,3,4 \
26 -h 1,${HP_CONSUMERS},${w},${HP_INTERVAL},${HP_MSGS},1,2,1,2 > \
27 UTL.LCL.${w}.log 2>&1
29 kill `cat NameService.pid`
31 ../../Naming_Service/Naming_Service \
32 -o NameService.ior -p NameService.pid >/dev/null 2>&1 &
33 sleep 2
34 NameService=`cat NameService.ior`
35 export NameService
37 ./EC_Multiple -l ECM1 -r ECM2 -s runtime -p ECM1.pid \
38 -w 1,${LP_CONSUMERS},${LP_WORKLOAD},${LP_INTERVAL},${LP_MSGS},1,2,1,3 \
39 -h 1,${HP_CONSUMERS},${w},${HP_INTERVAL},${HP_MSGS},4,5,4,6 > \
40 UTL.ECM1.${w}.log 2>&1 &
41 ./EC_Multiple -l ECM2 -r ECM1 -s runtime -p ECM2.pid \
42 -w 1,${LP_CONSUMERS},${LP_WORKLOAD},${LP_INTERVAL},${LP_MSGS},7,3,7,2 \
43 -h 1,${HP_CONSUMERS},${w},${HP_INTERVAL},${HP_MSGS},8,6,8,5 > \
44 UTL.ECM2.${w}.log 2>&1 &
46 sleep 2
47 wait `cat ECM1.pid`
48 wait `cat ECM2.pid`
49 kill `cat NameService.pid`
51 done
53 exit 0