5 echo "Usage: $0 [DEST] [USER] [OPTIMIZED]"
13 DATE
=`date +%Y/%m/%d-%H:%M`
15 LD_LIBRARY_PATH
=$ACE_ROOT/ace
16 export LD_LIBRARY_PATH
17 PATH
=/usr
/bin
:/bin
:$PATH
19 cd $TAO_ROOT/performance-tests
/Memory
/IORsize
21 # start the server. If OPT == 1 then start the optimized version, else
22 # the non-optimized version
25 then .
/server
-ORBSvcConf server.conf
&
31 server_start_size
=`cat /proc/$s_id/status | grep VmRSS | awk '{print $2}'`;
33 # Just sleep for 2 seconds.
35 # Check whether the server has started
42 # Wait till all the invocations are done
44 # Get the size once the client has made sufficient invocations.
45 s_invocations
=`cat /proc/$s_id/status | grep VmRSS | awk '{print $2}'`;
46 let "actual_server_growth=${s_invocations}-${server_start_size}";
49 echo $DATE $s_invocations >> $DEST/source
/server_opt_ior_size.txt
50 echo $DATE $actual_server_growth >> $DEST/source
/opt_ior_size.txt
52 echo $DATE $s_invocations >> $DEST/source
/server_ior_size.txt
53 echo $DATE $actual_server_growth >> $DEST/source
/actual_ior_size.txt
56 # Kill the server and client. We will look at better ways of doing
62 echo $file doesnt exist
67 STRING
="for 50000 IORs"
68 FILES
="server_opt opt server actual"
70 /usr
/bin
/tac ${i}_ior_size.txt
> $DEST/data
/${i}_ior_size.txt
71 /usr
/bin
/tail -5 ${i}_ior_size.txt
> $DEST/data
/LAST_
${i}_ior_size.txt
72 $ACE_ROOT/bin
/generate_topinfo_charts.sh
${i}_ior_size.txt $DEST/images/${i}_ior_size.png ${i}_ior_size.txt