1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
|
#!/bin/sh
#
if [ $# -lt 1 ]; then
echo "Usage: $0 <DEST>"
exit 0
fi
DEST=$1
DATE=`date +%Y/%m/%d-%H:%M`
mkdir -p $DEST/images
mkdir -p $DEST/data
mkdir -p $DEST/source
COMPILER="gcc"
COMMON_TESTS="AMI DII DSI Deferred Single_Threaded Thread_Per_Connection Thread_Pool AMH_Single_Threaded"
SEQUENCE_TESTS="AMI DII DSI Deferred Single_Threaded Thread_Per_Connection Thread_Pool AMH_Single_Threaded"
SEQ_TEST_TYPE="octet long short char double longlong"
cd $DEST/source
/bin/sync
sleep 10
(
cd $ACE_ROOT/performance-tests/TCP;
./run_test.pl
) >tcp_test.log 2>&1
if grep -q 'Client throughput: ' tcp_test.log; then
(
echo -n $DATE " ";
awk '/^Client throughput:/ {print $3}' tcp_test.log
) >> TCP.txt;
fi
/bin/sync
sleep 10
(
cd $TAO_ROOT/performance-tests/Latency/Single_Threaded;
./default_configuration.pl > $DEST/source/Default.log 2>&1
)
if grep -q 'Total throughput: ' Default.log; then
(
echo -n $DATE " ";
awk '/^Total throughput:/ {print $3}' Default.log
) >> Default.txt
fi
/bin/sync
sleep 2
(
cd $TAO_ROOT/performance-tests/Sequence_Latency/Single_Threaded;
for i in $SEQ_TEST_TYPE; do
(
./default_configuration.pl -t $i > $DEST/source/Sequence_Default_${i}.log 2>&1
if grep -q 'Total throughput: ' $DEST/source/Sequence_Default_${i}.log; then
(
echo -n $DATE " ";
awk '/^Total throughput:/ {print $3}' $DEST/source/Sequence_Default_${i}.log
) >> $DEST/source/Sequence_Default_${i}.txt
fi
)
done
)
for i in $COMMON_TESTS; do
/bin/sync
sleep 10
(
cd $TAO_ROOT/performance-tests/Latency/${i};
./run_test.pl > $DEST/source/${i}.log 2>&1
)
if grep -q 'Total throughput: ' ${i}.log; then
(
echo -n $DATE " ";
awk '/^Total throughput:/ {print $3}' $DEST/source/${i}.log
) >> ${i}.txt
fi
done
for i in $SEQUENCE_TESTS; do
/bin/sync
sleep 10
(
cd $TAO_ROOT/performance-tests/Sequence_Latency/${i};
for j in $SEQ_TEST_TYPE; do
(
./run_test.pl -t $j > $DEST/source/Sequence_${i}_${j}.log 2>&1
if grep -q 'Total throughput: ' $DEST/source/Sequence_${i}_${j}.log; then
(
echo -n $DATE " ";
awk '/^Total throughput:/ {print $3}' $DEST/source/Sequence_${i}_${j}.log
) >> $DEST/source/Sequence_${i}_${j}.txt
fi
)
done
)
done
for i in $COMMON_TESTS TCP Default; do
$ACE_ROOT/bin/generate_performance_chart.sh ${i}.txt ${i}.png "$i" 1024,768
/bin/cp ${i}.png $DEST/images/${i}.png
/usr/bin/tac ${i}.txt > $DEST/data/${i}.txt
/usr/bin/tail -5 ${i}.txt > $DEST/data/LAST_${i}.txt
done
for i in $SEQ_TEST_TYPE ; do
$ACE_ROOT/bin/generate_performance_chart.sh Sequence_Default_${i}.txt Sequence_Default_${i}.png "Default Configuration for $i sequences" 1024,768
/bin/cp Sequence_Default_${i}.png $DEST/images/Sequence_Default_${i}.png
/usr/bin/tac $DEST/source/Sequence_Default_${i}.txt > $DEST/data/Sequence_Default_${i}.txt
/usr/bin/tail -5 $DEST/source/Sequence_Default_${i}.txt > $DEST/data/LAST_Sequence_Default_${i}.txt
done
for i in $SEQUENCE_TESTS; do
for j in $SEQ_TEST_TYPE; do
$ACE_ROOT/bin/generate_performance_chart.sh Sequence_${i}_${j}.txt Sequence_${i}_${j}.png "Sequence_$i_$j" 1024,768
/bin/cp Sequence_${i}_${j}.png $DEST/images/Sequence_${i}_${j}.png
/usr/bin/tac Sequence_${i}_${j}.txt > $DEST/data/Sequence_${i}_${j}.txt
/usr/bin/tail -5 Sequence_${i}_${j}.txt > $DEST/data/LAST_Sequence_${i}_${j}.txt
done
done
gnuplot <<_EOF_ >/dev/null 2>&1
set xdata time
set timefmt '%Y/%m/%d-%H:%M'
set xlabel 'Date (YYYYMMDD)'
set xtics rotate
set ylabel 'Throughput (Requests/Second)'
set yrange [0:]
set terminal png small size 1024,768 color
set output "/dev/null"
plot 'AMI.txt' using 1:2 title 'AMI' w l
replot 'DII.txt' using 1:2 title 'DII' w l
replot 'DSI.txt' using 1:2 title 'DSI' w l
replot 'Deferred.txt' using 1:2 title 'Deferred' w l
replot 'Single_Threaded.txt' using 1:2 title 'Single_Threaded' w l
replot 'Default.txt' using 1:2 title 'Single_Threaded (Defaults)' w l
replot 'Thread_Per_Connection.txt' using 1:2 title 'Thread_Per_Connection' w l
replot 'Thread_Pool.txt' using 1:2 title 'Thread_Pool' w l
replot 'AMH_Single_Threaded.txt' using 1:2 title 'AMH' w l
replot 'TCP.txt' using 1:2 title 'TCP/IP' w l
set output "All.png"
replot
exit
_EOF_
gnuplot <<_EOF_ >/dev/null 2>&1
set xdata time
set timefmt '%Y/%m/%d-%H:%M'
set xlabel 'Date (YYYYMMDD)'
set xtics rotate
set ylabel 'Throughput (Requests/Second)'
set yrange [0:]
set terminal png small size 1024,768 color
set output "/dev/null"
plot 'AMI.txt' using 1:2 title 'AMI' w l
replot 'DII.txt' using 1:2 title 'DII' w l
replot 'DSI.txt' using 1:2 title 'DSI' w l
replot 'Deferred.txt' using 1:2 title 'Deferred' w l
replot 'Single_Threaded.txt' using 1:2 title 'Single_Threaded' w l
replot 'Default.txt' using 1:2 title 'Single_Threaded (Defaults)' w l
replot 'Thread_Per_Connection.txt' using 1:2 title 'Thread_Per_Connection' w l
replot 'Thread_Pool.txt' using 1:2 title 'Thread_Pool' w l
replot 'AMH_Single_Threaded.txt' using 1:2 title 'AMH' w l
set output "CORBA.png"
replot
exit
_EOF_
/bin/cp CORBA.png All.png $DEST/images/
cd $DEST/data
/bin/uname -a > uname.txt
$COMPILER -v > gcc.txt 2>&1
$COMPILER -dumpversion > gccversion.txt 2>&1
/lib/libc.so.6 | sed -e 's/</\</g' -e 's/>/\>/g' > libc.txt
cat /proc/cpuinfo > cpuinfo.txt
cat /proc/meminfo > meminfo.txt
if [ -e "/etc/SuSE-release" ]; then
cat /etc/SuSE-release > linuxversion.txt
fi
if [ -e "/etc/redhat-release" ]; then
cat /etc/redhat-release > linuxversion.txt
fi
if [ -e "/etc/fedora-release" ]; then
cat /etc/fedora-release > linuxversion.txt
fi
cat $ACE_ROOT/ace/config.h > config.h.txt
cat $ACE_ROOT/include/makeinclude/platform_macros.GNU > platform_macros.GNU.txt
cat $ACE_ROOT/bin/MakeProjectCreator/config/default.features > default.features.txt
cp $ACE_ROOT/html/Stats/* $DEST
|