System.exit(0);
}
- int[] mid = new int[16];
+ //int[] mid = new int[16];
+ int[] mid = new int[8];
+ /*
mid[0] = (128<<24)|(195<<16)|(136<<8)|162; //dc1
mid[1] = (128<<24)|(195<<16)|(136<<8)|162; //dc1
mid[2] = (128<<24)|(195<<16)|(136<<8)|163; //dc2
mid[13] = (128<<24)|(195<<16)|(136<<8)|168; //dc7
mid[14] = (128<<24)|(195<<16)|(136<<8)|169; //dc8
mid[15] = (128<<24)|(195<<16)|(136<<8)|169; //dc8
+ */
+ mid[0] = (128<<24)|(195<<16)|(136<<8)|162; //dc1
+ mid[1] = (128<<24)|(195<<16)|(136<<8)|163; //dc2
+ mid[2] = (128<<24)|(195<<16)|(136<<8)|164; //dc3
+ mid[3] = (128<<24)|(195<<16)|(136<<8)|165; //dc4
+ mid[4] = (128<<24)|(195<<16)|(136<<8)|166; //dc5
+ mid[5] = (128<<24)|(195<<16)|(136<<8)|167; //dc6
+ mid[6] = (128<<24)|(195<<16)|(136<<8)|168; //dc7
+ mid[7] = (128<<24)|(195<<16)|(136<<8)|169; //dc8
atomic {
//System.out.println("atomic 1");
RECOVERYDIR='recovery'
JAVASINGLEDIR='java'
WAITTIME=120
-KILLDELAY=15
+KILLDELAY=10
LOGDIR=~/research/Robust/src/Benchmarks/Recovery/runlog
DSTMDIR=${HOME}/research/Robust/src/Benchmarks/Prefetch/config
MACHINELIST='dc-1.calit2.uci.edu dc-2.calit2.uci.edu dc-3.calit2.uci.edu dc-4.calit2.uci.edu dc-5.calit2.uci.edu dc-6.calit2.uci.edu dc-7.calit2.uci.edu dc-8.calit2.uci.edu'
0 1 2 3 4 5 6
0 1 8 4 6 3 7
0 8 7 3 6 5 4
- 0 7 4 6 8 1 2 );
+ 0 7 4 6 8 1 2
+ 0 7 5 6 3 8 2 );
-#ORDER=( 0 1 8 4 6 3 7 );
+#ORDER=( 0 7 5 6 3 8 2 );
#
# killClients <fileName> <# of machines>
# Start machines
echo "Running machines"
let "k= $NUM_MACHINE"
+ if [ $k == 16 ]; then
+ k=8;
+ fi
DIR=`echo ${BASEDIR}\/${BM_DIR}\/${RECOVERYDIR}`;
echo "DIR = $DIR";
}
########### Sequential Failure case ##########
-function runFailureTest {
+function runSequentialFailureTest {
# Run java version
# j=1;
BM_DIR=${BM_NAME}
echo "------------------------ dc-$k is killed ------------------------"
killonemachine $fName $k
- let "delay= $RANDOM % $KILLDELAY + 4"
+ let "delay= $RANDOM % $KILLDELAY + 15"
sleep $delay
fi
done
#ORDER=( 0 1 8 4 6 3 7 );
#SINGLE_ORDER=( 1 8 4 6 3 2 7 5 );
- SINGLE_ORDER=( 8 4 );
+ SINGLE_ORDER=( 8 );
for machinename in ${SINGLE_ORDER[@]}
# runNormalTest $NUM_MACHINES 1
# echo "================================================================================"
-# echo "====================================== Failure Test ============================="
-# runFailureTest $NUM_MACHINES
-# echo "================================================================================="
-
- echo "====================================== Single Failure Test ============================="
- runSingleFailureTest $NUM_MACHINES
+ echo "====================================== Failure Test ============================="
+ runSequentialFailureTest $NUM_MACHINES
echo "================================================================================="
+# echo "====================================== Single Failure Test ============================="
+# runSingleFailureTest $NUM_MACHINES
+# echo "================================================================================="
+
# echo "=============== Running javasingle for ${BM_NAME} on 1 machines ================="
# javasingle 1 ${BM_NAME}
# cd $TOPDIR