X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;ds=sidebyside;f=runall.sh;h=482d1c21d467211c268a51110bf69291389653e6;hb=2b1e60a407dc6df4420e8be5ab784d1b20daa5b4;hp=3aa41af08b67e0f13ad0de8934f0ea2e9644b4f7;hpb=d109adc24233d359d54f25496c833332b405d182;p=urcu.git diff --git a/runall.sh b/runall.sh index 3aa41af..482d1c2 100755 --- a/runall.sh +++ b/runall.sh @@ -16,8 +16,6 @@ NUM_CPUS=8 echo Executing update fraction test -NR_READERS=$((${NUM_CPUS} - 1)) -NR_WRITERS=1 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 @@ -25,13 +23,18 @@ WDELAY_ARRAY="0 1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768 rm -f 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 +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 - #Test scalability : # x: vary number of readers from 0 to num cpus # y: ops/s @@ -56,7 +59,7 @@ done echo Executing reader C.S. length test -NR_READERS=8 +NR_READERS=${NUM_CPUS} NR_WRITERS=0 DURATION=10 #in loops.