Update test
[urcu.git] / runall.sh
CommitLineData
9e31d0f0
MD
1#!/bin/sh
2
3#run all tests
4
5#set to number of active CPUS
6NUM_CPUS=8
7
8#extra options, e.g. for setting affinity on even CPUs :
9#EXTRA_OPTS=$(for a in $(seq 0 2 63); do echo -n "-a ${a} "; done)
10
11
12#Vary update fraction
13#x: vary update fraction from 0 to 0.0001
14 #fix number of readers and reader C.S. length, vary delay between updates
15#y: ops/s
16
17echo Executing update fraction test
18
19NR_READERS=$((${NUM_CPUS} - 1))
20NR_WRITERS=1
21DURATION=10
22WDELAY_ARRAY="0 1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768
d109adc2
MD
23 65536 131072 262144 524288 1048576 2097152 4194304 8388608
24 16777216 33554432 67108864 134217728"
9e31d0f0
MD
25
26rm -f update-fraction.log
27
28for WDELAY in ${WDELAY_ARRAY}; do
29 ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} -d ${WDELAY} ${EXTRA_OPTS} | tee -a update-fraction.log
30done
d109adc2
MD
31# Also run with no active writer for 0% update fraction
32./runtests.sh ${NR_READERS} 0 ${DURATION} ${EXTRA_OPTS} | tee -a update-fraction.log
9e31d0f0
MD
33
34
35#Test scalability :
36# x: vary number of readers from 0 to num cpus
37# y: ops/s
38# 0 writer.
39
40echo Executing scalability test
41
42NR_WRITERS=0
43DURATION=10
44
45rm -f scalability.log
46
47for NR_READERS in $(seq 1 ${NUM_CPUS}); do
48 ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS}| tee -a scalability.log
49done
50
51
52# x: Vary reader C.S. length from 0 to 100 us
53# y: ops/s
54# 8 readers
55# 0 writers
56
57echo Executing reader C.S. length test
58
59NR_READERS=8
60NR_WRITERS=0
61DURATION=10
62#in loops.
63READERCSLEN_ARRAY="0 1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768"
64
65rm -f readercslen.log
66
67for READERCSLEN in ${READERCSLEN_ARRAY}; do
68 ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} -c ${READERCSLEN} | tee -a readercslen.log
69done
This page took 0.024207 seconds and 4 git commands to generate.