From a50a7b4333a5039f1471c0b7cfbfb3d6dc5379fb Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sun, 14 Feb 2010 09:06:47 -0500 Subject: [PATCH] tests: update summary Signed-off-by: Mathieu Desnoyers --- tests/runpaul-phase7.sh | 41 ++++++++++++++++++++++++++++++++++++++ tests/test_mutex.c | 4 ++-- tests/test_perthreadlock.c | 4 ++-- tests/test_qsbr.c | 4 ++-- tests/test_qsbr_gc.c | 4 ++-- tests/test_rwlock.c | 4 ++-- tests/test_urcu.c | 4 ++-- tests/test_urcu_assign.c | 4 ++-- tests/test_urcu_bp.c | 4 ++-- tests/test_urcu_defer.c | 4 ++-- tests/test_urcu_gc.c | 4 ++-- 11 files changed, 61 insertions(+), 20 deletions(-) create mode 100755 tests/runpaul-phase7.sh diff --git a/tests/runpaul-phase7.sh b/tests/runpaul-phase7.sh new file mode 100755 index 0000000..7b98f2b --- /dev/null +++ b/tests/runpaul-phase7.sh @@ -0,0 +1,41 @@ +#!/bin/sh + +#run all tests + +#set to number of active CPUS +#export NUM_CPUS=64 +export NUM_CPUS=8 + +#extra options, e.g. for setting affinity on even CPUs : +#EXTRA_OPTS=$(for a in $(seq 0 2 127); do echo -n "-a ${a} "; done) +EXTRA_OPTS=$(for a in $(seq 0 1 7); do echo -n "-a ${a} "; done) + +rm -f *.log + +# x: Vary writer C.S. length from 0 to 100 us +# y: reads/s +# 4 readers +# 4 writers + +echo Executing writer C.S. length test + +NR_READERS=$((${NUM_CPUS} / 2)) +NR_WRITERS=$((${NUM_CPUS} / 2)) +DURATION=10 +WDELAY=10 +#in loops. +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" + +rm -f writercslen.log + +for WRITERCSLEN in ${WRITERCSLEN_ARRAY}; do + echo "./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} -d ${WDELAY} -e ${WRITERCSLEN} | tee -a writercslen.log" >> runall.log + ./runtests.sh ${NR_READERS} ${NR_WRITERS} ${DURATION} ${EXTRA_OPTS} -d ${WDELAY} -e ${WRITERCSLEN} | tee -a writercslen.log +done + + + +#mkdir ppc64-writercslen +#mv *.log ppc64-writercslen/ +mkdir xeon-writercslen +mv *.log xeon-writercslen/ diff --git a/tests/test_mutex.c b/tests/test_mutex.c index f3139cc..46a9972 100644 --- a/tests/test_mutex.c +++ b/tests/test_mutex.c @@ -399,10 +399,10 @@ int main(int argc, char **argv) printf_verbose("total number of reads : %llu, writes %llu\n", tot_reads, tot_writes); - printf("SUMMARY %-25s testdur %4lu nr_readers %3u rdur %6lu " + printf("SUMMARY %-25s testdur %4lu nr_readers %3u rdur %6lu wdur %6lu " "nr_writers %3u " "wdelay %6lu nr_reads %12llu nr_writes %12llu nr_ops %12llu\n", - argv[0], duration, nr_readers, rduration, + argv[0], duration, nr_readers, rduration, wduration, nr_writers, wdelay, tot_reads, tot_writes, tot_reads + tot_writes); diff --git a/tests/test_perthreadlock.c b/tests/test_perthreadlock.c index 7fcf3e8..b573fb0 100644 --- a/tests/test_perthreadlock.c +++ b/tests/test_perthreadlock.c @@ -409,10 +409,10 @@ int main(int argc, char **argv) printf_verbose("total number of reads : %llu, writes %llu\n", tot_reads, tot_writes); - printf("SUMMARY %-25s testdur %4lu nr_readers %3u rdur %6lu " + printf("SUMMARY %-25s testdur %4lu nr_readers %3u rdur %6lu wdur %6lu " "nr_writers %3u " "wdelay %6lu nr_reads %12llu nr_writes %12llu nr_ops %12llu\n", - argv[0], duration, nr_readers, rduration, + argv[0], duration, nr_readers, rduration, wduration, nr_writers, wdelay, tot_reads, tot_writes, tot_reads + tot_writes); diff --git a/tests/test_qsbr.c b/tests/test_qsbr.c index 7c78b79..f3550a0 100644 --- a/tests/test_qsbr.c +++ b/tests/test_qsbr.c @@ -443,10 +443,10 @@ int main(int argc, char **argv) printf_verbose("total number of reads : %llu, writes %llu\n", tot_reads, tot_writes); - printf("SUMMARY %-25s testdur %4lu nr_readers %3u rdur %6lu " + printf("SUMMARY %-25s testdur %4lu nr_readers %3u rdur %6lu wdur %6lu " "nr_writers %3u " "wdelay %6lu nr_reads %12llu nr_writes %12llu nr_ops %12llu\n", - argv[0], duration, nr_readers, rduration, + argv[0], duration, nr_readers, rduration, wduration, nr_writers, wdelay, tot_reads, tot_writes, tot_reads + tot_writes); test_array_free(test_rcu_pointer); diff --git a/tests/test_qsbr_gc.c b/tests/test_qsbr_gc.c index dd7a5c4..1d74d1a 100644 --- a/tests/test_qsbr_gc.c +++ b/tests/test_qsbr_gc.c @@ -468,11 +468,11 @@ int main(int argc, char **argv) printf_verbose("total number of reads : %llu, writes %llu\n", tot_reads, tot_writes); - printf("SUMMARY %-25s testdur %4lu nr_readers %3u rdur %6lu " + printf("SUMMARY %-25s testdur %4lu nr_readers %3u rdur %6lu wdur %6lu " "nr_writers %3u " "wdelay %6lu nr_reads %12llu nr_writes %12llu nr_ops %12llu " "batch %u\n", - argv[0], duration, nr_readers, rduration, + argv[0], duration, nr_readers, rduration, wduration, nr_writers, wdelay, tot_reads, tot_writes, tot_reads + tot_writes, reclaim_batch); free(tid_reader); diff --git a/tests/test_rwlock.c b/tests/test_rwlock.c index 4629a44..e09917b 100644 --- a/tests/test_rwlock.c +++ b/tests/test_rwlock.c @@ -393,10 +393,10 @@ int main(int argc, char **argv) printf_verbose("total number of reads : %llu, writes %llu\n", tot_reads, tot_writes); - printf("SUMMARY %-25s testdur %4lu nr_readers %3u rdur %6lu " + printf("SUMMARY %-25s testdur %4lu nr_readers %3u rdur %6lu wdur %6lu " "nr_writers %3u " "wdelay %6lu nr_reads %12llu nr_writes %12llu nr_ops %12llu\n", - argv[0], duration, nr_readers, rduration, + argv[0], duration, nr_readers, rduration, wduration, nr_writers, wdelay, tot_reads, tot_writes, tot_reads + tot_writes); diff --git a/tests/test_urcu.c b/tests/test_urcu.c index 1ea9d07..d7993cb 100644 --- a/tests/test_urcu.c +++ b/tests/test_urcu.c @@ -440,10 +440,10 @@ int main(int argc, char **argv) printf_verbose("total number of reads : %llu, writes %llu\n", tot_reads, tot_writes); - printf("SUMMARY %-25s testdur %4lu nr_readers %3u rdur %6lu " + printf("SUMMARY %-25s testdur %4lu nr_readers %3u rdur %6lu wdur %6lu " "nr_writers %3u " "wdelay %6lu nr_reads %12llu nr_writes %12llu nr_ops %12llu\n", - argv[0], duration, nr_readers, rduration, + argv[0], duration, nr_readers, rduration, wduration, nr_writers, wdelay, tot_reads, tot_writes, tot_reads + tot_writes); test_array_free(test_rcu_pointer); diff --git a/tests/test_urcu_assign.c b/tests/test_urcu_assign.c index 663a4e8..87abea2 100644 --- a/tests/test_urcu_assign.c +++ b/tests/test_urcu_assign.c @@ -443,10 +443,10 @@ int main(int argc, char **argv) printf_verbose("total number of reads : %llu, writes %llu\n", tot_reads, tot_writes); - printf("SUMMARY %-25s testdur %4lu nr_readers %3u rdur %6lu " + printf("SUMMARY %-25s testdur %4lu nr_readers %3u rdur %6lu wdur %6lu " "nr_writers %3u " "wdelay %6lu nr_reads %12llu nr_writes %12llu nr_ops %12llu\n", - argv[0], duration, nr_readers, rduration, + argv[0], duration, nr_readers, rduration, wduration, nr_writers, wdelay, tot_reads, tot_writes, tot_reads + tot_writes); test_array_free(test_rcu_pointer); diff --git a/tests/test_urcu_bp.c b/tests/test_urcu_bp.c index d5653b0..7971154 100644 --- a/tests/test_urcu_bp.c +++ b/tests/test_urcu_bp.c @@ -440,10 +440,10 @@ int main(int argc, char **argv) printf_verbose("total number of reads : %llu, writes %llu\n", tot_reads, tot_writes); - printf("SUMMARY %-25s testdur %4lu nr_readers %3u rdur %6lu " + printf("SUMMARY %-25s testdur %4lu nr_readers %3u rdur %6lu wdur %6lu " "nr_writers %3u " "wdelay %6lu nr_reads %12llu nr_writes %12llu nr_ops %12llu\n", - argv[0], duration, nr_readers, rduration, + argv[0], duration, nr_readers, rduration, wduration, nr_writers, wdelay, tot_reads, tot_writes, tot_reads + tot_writes); test_array_free(test_rcu_pointer); diff --git a/tests/test_urcu_defer.c b/tests/test_urcu_defer.c index 59a0785..e15c466 100644 --- a/tests/test_urcu_defer.c +++ b/tests/test_urcu_defer.c @@ -423,10 +423,10 @@ int main(int argc, char **argv) printf_verbose("total number of reads : %llu, writes %llu\n", tot_reads, tot_writes); - printf("SUMMARY %-25s testdur %4lu nr_readers %3u rdur %6lu " + printf("SUMMARY %-25s testdur %4lu nr_readers %3u rdur %6lu wdur %6lu " "nr_writers %3u " "wdelay %6lu nr_reads %12llu nr_writes %12llu nr_ops %12llu\n", - argv[0], duration, nr_readers, rduration, + argv[0], duration, nr_readers, rduration, wduration, nr_writers, wdelay, tot_reads, tot_writes, tot_reads + tot_writes); free(tid_reader); diff --git a/tests/test_urcu_gc.c b/tests/test_urcu_gc.c index c7b2bda..9897dca 100644 --- a/tests/test_urcu_gc.c +++ b/tests/test_urcu_gc.c @@ -468,11 +468,11 @@ int main(int argc, char **argv) printf_verbose("total number of reads : %llu, writes %llu\n", tot_reads, tot_writes); - printf("SUMMARY %-25s testdur %4lu nr_readers %3u rdur %6lu " + printf("SUMMARY %-25s testdur %4lu nr_readers %3u rdur %6lu wdur %6lu " "nr_writers %3u " "wdelay %6lu nr_reads %12llu nr_writes %12llu nr_ops %12llu " "batch %u\n", - argv[0], duration, nr_readers, rduration, + argv[0], duration, nr_readers, rduration, wduration, nr_writers, wdelay, tot_reads, tot_writes, tot_reads + tot_writes, reclaim_batch); free(tid_reader); -- 2.34.1