Commit | Line | Data |
---|---|---|
a50a7b43 MD |
1 | #!/bin/sh |
2 | ||
3 | #run all tests | |
4 | ||
5 | #set to number of active CPUS | |
4543556a MD |
6 | export NUM_CPUS=64 |
7 | #export NUM_CPUS=8 | |
a50a7b43 MD |
8 | |
9 | #extra options, e.g. for setting affinity on even CPUs : | |
4543556a MD |
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) | |
a50a7b43 MD |
12 | |
13 | rm -f *.log | |
14 | ||
15 | # x: Vary writer C.S. length from 0 to 100 us | |
16 | # y: reads/s | |
17 | # 4 readers | |
18 | # 4 writers | |
19 | ||
20 | echo Executing writer C.S. length test | |
21 | ||
22 | NR_READERS=$((${NUM_CPUS} / 2)) | |
23 | NR_WRITERS=$((${NUM_CPUS} / 2)) | |
24 | DURATION=10 | |
25 | WDELAY=10 | |
26 | #in loops. | |
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" | |
28 | ||
29 | rm -f writercslen.log | |
30 | ||
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 | |
34 | done | |
35 | ||
36 | ||
37 | ||
4543556a MD |
38 | mkdir ppc64-writercslen |
39 | mv *.log ppc64-writercslen/ | |
40 | #mkdir xeon-writercslen | |
41 | #mv *.log xeon-writercslen/ |