5 #set to number of active CPUS
8 #extra options, e.g. for setting affinity on even CPUs :
9 #EXTRA_OPTS=$(for a in $(seq 0 2 127); do echo -n "-a ${a} "; done)
13 #x: vary update fraction from 0 to 0.0001
14 #fix number of readers and reader C.S. length, vary delay between updates
17 echo Executing update fraction
test
20 WDELAY_ARRAY
="0 1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768
21 65536 131072 262144 524288 1048576 2097152 4194304 8388608
22 16777216 33554432 67108864 134217728"
23 NR_WRITERS
=$
((${NUM_CPUS} / 2))
25 rm -f update-fraction.log
27 NR_READERS
=$
((${NUM_CPUS} - ${NR_WRITERS}))
28 for WDELAY
in ${WDELAY_ARRAY}; do
29 .
/runtests.sh
${NR_READERS} ${NR_WRITERS} ${DURATION} -d ${WDELAY} ${EXTRA_OPTS} |
tee -a update-fraction.log
33 # x: vary number of readers from 0 to num cpus
37 echo Executing scalability
test
44 for NR_READERS
in $
(seq 1 ${NUM_CPUS}); do
45 .
/runtests.sh
${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS}|
tee -a scalability.log
49 # x: Vary reader C.S. length from 0 to 100 us
54 echo Executing reader C.S. length
test
56 NR_READERS
=${NUM_CPUS}
60 READERCSLEN_ARRAY
="0 1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768 65536 131072 262144 524288 1048576 2097152"
64 for READERCSLEN
in ${READERCSLEN_ARRAY}; do
65 .
/runtests.sh
${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} -c ${READERCSLEN} |
tee -a readercslen.log