5 #set to number of active CPUS
9 #extra options, e.g. for setting affinity on even CPUs :
10 EXTRA_OPTS
=$
(for a
in $
(seq 0 2 127); do echo -n "-a ${a} "; done)
11 #EXTRA_OPTS=$(for a in $(seq 0 1 7); do echo -n "-a ${a} "; done)
15 # x: Vary writer C.S. length from 0 to 100 us
20 echo Executing writer C.S. length
test
22 NR_READERS
=$
((${NUM_CPUS} / 2))
23 NR_WRITERS
=$
((${NUM_CPUS} / 2))
27 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"
31 for WRITERCSLEN
in ${WRITERCSLEN_ARRAY}; do
32 echo "./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} -d ${WDELAY} -e ${WRITERCSLEN} | tee -a writercslen.log" >> runall.log
33 .
/runtests.sh
${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} -d ${WDELAY} -e ${WRITERCSLEN} |
tee -a writercslen.log
38 mkdir ppc64-writercslen
39 mv *.log ppc64-writercslen
/
40 #mkdir xeon-writercslen
41 #mv *.log xeon-writercslen/