X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Frunpaul-phase7.sh;fp=tests%2Frunpaul-phase7.sh;h=7b98f2befa628cad190e1592e453f55bd1a0ed11;hb=a50a7b4333a5039f1471c0b7cfbfb3d6dc5379fb;hp=0000000000000000000000000000000000000000;hpb=31b598e0bb2fde285afa63986613e632e98b104d;p=urcu.git diff --git a/tests/runpaul-phase7.sh b/tests/runpaul-phase7.sh new file mode 100755 index 0000000..7b98f2b --- /dev/null +++ b/tests/runpaul-phase7.sh @@ -0,0 +1,41 @@ +#!/bin/sh + +#run all tests + +#set to number of active CPUS +#export NUM_CPUS=64 +export NUM_CPUS=8 + +#extra options, e.g. for setting affinity on even CPUs : +#EXTRA_OPTS=$(for a in $(seq 0 2 127); do echo -n "-a ${a} "; done) +EXTRA_OPTS=$(for a in $(seq 0 1 7); do echo -n "-a ${a} "; done) + +rm -f *.log + +# x: Vary writer C.S. length from 0 to 100 us +# y: reads/s +# 4 readers +# 4 writers + +echo Executing writer C.S. length test + +NR_READERS=$((${NUM_CPUS} / 2)) +NR_WRITERS=$((${NUM_CPUS} / 2)) +DURATION=10 +WDELAY=10 +#in loops. +WRITERCSLEN_ARRAY="0 1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768 65536 131072 262144 524288 1048576 2097152" + +rm -f writercslen.log + +for WRITERCSLEN in ${WRITERCSLEN_ARRAY}; do + echo "./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} -d ${WDELAY} -e ${WRITERCSLEN} | tee -a writercslen.log" >> runall.log + ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} -d ${WDELAY} -e ${WRITERCSLEN} | tee -a writercslen.log +done + + + +#mkdir ppc64-writercslen +#mv *.log ppc64-writercslen/ +mkdir xeon-writercslen +mv *.log xeon-writercslen/