move whether atomic byte/short exists to uatomic_arch_*.h
[urcu.git] / tests / runpaul-phase7.sh
CommitLineData
a50a7b43
MD
1#!/bin/sh
2
3#run all tests
4
5#set to number of active CPUS
4543556a
MD
6export NUM_CPUS=64
7#export NUM_CPUS=8
a50a7b43
MD
8
9#extra options, e.g. for setting affinity on even CPUs :
4543556a
MD
10EXTRA_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
13rm -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
20echo Executing writer C.S. length test
21
22NR_READERS=$((${NUM_CPUS} / 2))
23NR_WRITERS=$((${NUM_CPUS} / 2))
24DURATION=10
25WDELAY=10
26#in loops.
27WRITERCSLEN_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
29rm -f writercslen.log
30
31for 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
34done
35
36
37
4543556a
MD
38mkdir ppc64-writercslen
39mv *.log ppc64-writercslen/
40#mkdir xeon-writercslen
41#mv *.log xeon-writercslen/
This page took 0.023802 seconds and 4 git commands to generate.