Update update fraction test
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Sat, 13 Jun 2009 18:51:02 +0000 (14:51 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Sat, 13 Jun 2009 18:51:02 +0000 (14:51 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
runall.sh

index 482d1c21d467211c268a51110bf69291389653e6..7dafbd7878092f9dd0278a2b40fe233402919050 100755 (executable)
--- a/runall.sh
+++ b/runall.sh
@@ -20,20 +20,14 @@ DURATION=10
 WDELAY_ARRAY="0 1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768
               65536 131072 262144 524288 1048576 2097152 4194304 8388608
               16777216 33554432 67108864 134217728"
+NR_WRITERS=$((${NUM_CPUS} / 2))
 
 rm -f update-fraction.log
 
-for NR_WRITERS in $(seq 1 ${NUM_CPUS}); do
-       NR_READERS=$((${NUM_CPUS} - ${NR_WRITERS}))
-       for WDELAY in ${WDELAY_ARRAY}; do
-               ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d ${WDELAY} ${EXTRA_OPTS} | tee -a update-fraction.log
-       done
-done
-
-# Also run with no active writer for 0% update fraction
-NR_WRITERS=0
 NR_READERS=$((${NUM_CPUS} - ${NR_WRITERS}))
-./runtests.sh ${NR_READERS} 0 ${DURATION} ${EXTRA_OPTS} | tee -a update-fraction.log
+for WDELAY in ${WDELAY_ARRAY}; do
+       ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d ${WDELAY} ${EXTRA_OPTS} | tee -a update-fraction.log
+done
 
 #Test scalability :
 # x: vary number of readers from 0 to num cpus
This page took 0.025869 seconds and 4 git commands to generate.