diff --git a/moobench/build.gradle b/benchmark/build.gradle similarity index 100% rename from moobench/build.gradle rename to benchmark/build.gradle diff --git a/moobench/src/main/java/moobench/application/MonitoredClass.java b/benchmark/src/main/java/moobench/application/MonitoredClass.java similarity index 100% rename from moobench/src/main/java/moobench/application/MonitoredClass.java rename to benchmark/src/main/java/moobench/application/MonitoredClass.java diff --git a/moobench/src/main/java/moobench/application/MonitoredClassSimple.java b/benchmark/src/main/java/moobench/application/MonitoredClassSimple.java similarity index 100% rename from moobench/src/main/java/moobench/application/MonitoredClassSimple.java rename to benchmark/src/main/java/moobench/application/MonitoredClassSimple.java diff --git a/moobench/src/main/java/moobench/application/MonitoredClassThreaded.java b/benchmark/src/main/java/moobench/application/MonitoredClassThreaded.java similarity index 100% rename from moobench/src/main/java/moobench/application/MonitoredClassThreaded.java rename to benchmark/src/main/java/moobench/application/MonitoredClassThreaded.java diff --git a/moobench/src/main/java/moobench/benchmark/BenchmarkMain.java b/benchmark/src/main/java/moobench/benchmark/BenchmarkMain.java similarity index 100% rename from moobench/src/main/java/moobench/benchmark/BenchmarkMain.java rename to benchmark/src/main/java/moobench/benchmark/BenchmarkMain.java diff --git a/moobench/src/main/java/moobench/benchmark/BenchmarkParameter.java b/benchmark/src/main/java/moobench/benchmark/BenchmarkParameter.java similarity index 100% rename from moobench/src/main/java/moobench/benchmark/BenchmarkParameter.java rename to benchmark/src/main/java/moobench/benchmark/BenchmarkParameter.java diff --git a/moobench/src/main/java/moobench/benchmark/BenchmarkingThread.java b/benchmark/src/main/java/moobench/benchmark/BenchmarkingThread.java similarity index 100% rename from moobench/src/main/java/moobench/benchmark/BenchmarkingThread.java rename to benchmark/src/main/java/moobench/benchmark/BenchmarkingThread.java diff --git a/moobench/src/main/java/moobench/benchmark/BenchmarkingThreadMilli.java b/benchmark/src/main/java/moobench/benchmark/BenchmarkingThreadMilli.java similarity index 100% rename from moobench/src/main/java/moobench/benchmark/BenchmarkingThreadMilli.java rename to benchmark/src/main/java/moobench/benchmark/BenchmarkingThreadMilli.java diff --git a/moobench/src/main/java/moobench/benchmark/BenchmarkingThreadNano.java b/benchmark/src/main/java/moobench/benchmark/BenchmarkingThreadNano.java similarity index 100% rename from moobench/src/main/java/moobench/benchmark/BenchmarkingThreadNano.java rename to benchmark/src/main/java/moobench/benchmark/BenchmarkingThreadNano.java diff --git a/frameworks/Kieker/bin/benchmark-ci.sh b/frameworks/Kieker/bin/benchmark-ci.sh deleted file mode 100644 index e9f59540e75fa5ab341fc6618d80b81a8eeeb119..0000000000000000000000000000000000000000 --- a/frameworks/Kieker/bin/benchmark-ci.sh +++ /dev/null @@ -1,212 +0,0 @@ -#!/bin/bash - -JAVABIN="" - -RSCRIPTDIR=r/ -BASEDIR=./ -RESULTSDIR="${BASEDIR}tmp/results-kieker/" - -SLEEPTIME=30 ## 30 -NUM_LOOPS=10 ## 10 -THREADS=1 ## 1 -RECURSIONDEPTH=10 ## 10 -TOTALCALLS=2000000 ## 2000000 -METHODTIME=0 ## 500000 - -MOREPARAMS="--quickstart" -MOREPARAMS="${MOREPARAMS} -r kieker.Logger" - -TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEPTIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSIONDEPTH} + 50 \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} ` -echo "Experiment will take circa ${TIME} seconds." - -echo "Removing and recreating '$RESULTSDIR'" -(rm -rf ${RESULTSDIR}) && mkdir ${RESULTSDIR} -#mkdir ${RESULTSDIR}stat/ - -# Clear kieker.log and initialize logging -rm -f ${BASEDIR}kieker.log -touch ${BASEDIR}kieker.log - -RAWFN="${RESULTSDIR}raw" - -JAVAARGS="-server" -JAVAARGS="${JAVAARGS} -d64" -JAVAARGS="${JAVAARGS} -Xms1G -Xmx4G" -#JAVAARGS="${JAVAARGS} -verbose:gc -XX:+PrintCompilation" -#JAVAARGS="${JAVAARGS} -XX:+PrintInlining" -#JAVAARGS="${JAVAARGS} -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation" -#JAVAARGS="${JAVAARGS} -Djava.compiler=NONE" -JAR="-jar MooBench.jar -a mooBench.monitoredApplication.MonitoredClassSimple" - -JAVAARGS_NOINSTR="${JAVAARGS}" -JAVAARGS_LTW="${JAVAARGS} -javaagent:${BASEDIR}lib/kieker-1.10-SNAPSHOT_aspectj.jar -Dorg.aspectj.weaver.showWeaveInfo=false -Daj.weaving.verbose=false -Dkieker.monitoring.skipDefaultAOPConfiguration=true -Dorg.aspectj.weaver.loadtime.configuration=META-INF/kieker.aop.xml" -JAVAARGS_KIEKER_DEACTV="${JAVAARGS_LTW} -Dkieker.monitoring.enabled=false -Dkieker.monitoring.writer=kieker.monitoring.writer.DummyWriter" -JAVAARGS_KIEKER_NOLOGGING="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.DummyWriter" -JAVAARGS_KIEKER_LOGGING_ASCII="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.AsyncFsWriter -Dkieker.monitoring.writer.filesystem.AsyncFsWriter.customStoragePath=${BASEDIR}tmp" -JAVAARGS_KIEKER_LOGGING_BIN="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.AsyncBinaryFsWriter -Dkieker.monitoring.writer.filesystem.AsyncBinaryFsWriter.customStoragePath=${BASEDIR}tmp" -JAVAARGS_KIEKER_LOGGING_TCP="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.tcp.TCPWriter" - -## Write configuration -uname -a >${RESULTSDIR}configuration.txt -${JAVABIN}java ${JAVAARGS} -version 2>>${RESULTSDIR}configuration.txt -echo "JAVAARGS: ${JAVAARGS}" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "Runtime: circa ${TIME} seconds" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "SLEEPTIME=${SLEEPTIME}" >>${RESULTSDIR}configuration.txt -echo "NUM_LOOPS=${NUM_LOOPS}" >>${RESULTSDIR}configuration.txt -echo "TOTALCALLS=${TOTALCALLS}" >>${RESULTSDIR}configuration.txt -echo "METHODTIME=${METHODTIME}" >>${RESULTSDIR}configuration.txt -echo "THREADS=${THREADS}" >>${RESULTSDIR}configuration.txt -echo "RECURSIONDEPTH=${RECURSIONDEPTH}" >>${RESULTSDIR}configuration.txt -sync - -## Execute Benchmark -for ((i=1;i<=${NUM_LOOPS};i+=1)); do - j=${RECURSIONDEPTH} - k=0 - echo "## Starting iteration ${i}/${NUM_LOOPS}" - echo "## Starting iteration ${i}/${NUM_LOOPS}" >>${BASEDIR}kieker.log - - # No instrumentation - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No instrumentation" - echo " # ${i}.${j}.${k} No instrumentation" >>${BASEDIR}kieker.log - #sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_NOINSTR} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - #kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Deactivated probe - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Deactivated probe" - echo " # ${i}.${j}.${k} Deactivated probe" >>${BASEDIR}kieker.log - #sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_DEACTV} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - #kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # No logging - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No logging (null writer)" - echo " # ${i}.${j}.${k} No logging (null writer)" >>${BASEDIR}kieker.log - #sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_NOLOGGING} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - #kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Logging - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Logging (ASCII)" - echo " # ${i}.${j}.${k} Logging (ASCII)" >>${BASEDIR}kieker.log - # sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_LOGGING_ASCII} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - #pkill sar - du -h ${BASEDIR}tmp/kieker-* - rm -rf ${BASEDIR}tmp/kieker-* - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Logging (Bin)" - echo " # ${i}.${j}.${k} Logging (Bin)" >>${BASEDIR}kieker.log - # sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_LOGGING_BIN} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - #pkill sar - du -h ${BASEDIR}tmp/kieker-* - rm -rf ${BASEDIR}tmp/kieker-* - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Logging (TCP)" - echo " # ${i}.${j}.${k} Logging (TCP)" >>${BASEDIR}kieker.log - # sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java -classpath MooBench.jar kieker.tcp.TestExperiment0 >> ${BASEDIR}kieker.tcp.log & - ${JAVABIN}java ${JAVAARGS_KIEKER_LOGGING_TCP} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - #pkill sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - -done -#zip -jqr ${RESULTSDIR}stat.zip ${RESULTSDIR}stat -#rm -rf ${RESULTSDIR}stat/ -mv ${BASEDIR}kieker.log ${RESULTSDIR}kieker.log -[ -f ${RESULTSDIR}hotspot-1-${RECURSIONDEPTH}-1.log ] && grep "<task " ${RESULTSDIR}hotspot-*.log >${RESULTSDIR}log.log -[ -f ${BASEDIR}errorlog.txt ] && mv ${BASEDIR}errorlog.txt ${RESULTSDIR} - -## Generate Results file -R --vanilla --silent <<EOF -results_fn="${RAWFN}" -outtxt_fn="${RESULTSDIR}results-text.txt" -outcsv_fn="${RESULTSDIR}results-text.csv" -configs.loop=${NUM_LOOPS} -configs.recursion=c(${RECURSIONDEPTH}) -configs.labels=c("No Probe","Deactivated Probe","Collecting Data","Writer (ASCII)", "Writer (Bin)", "Writer (TCP)") -results.count=${TOTALCALLS} -results.skip=${TOTALCALLS}/2 -source("${RSCRIPTDIR}stats.csv.r") -EOF - -## Clean up raw results -zip -jqr ${RESULTSDIR}results.zip ${RAWFN}* -rm -f ${RAWFN}* -[ -f ${BASEDIR}nohup.out ] && cp ${BASEDIR}nohup.out ${RESULTSDIR} -[ -f ${BASEDIR}nohup.out ] && > ${BASEDIR}nohup.out diff --git a/frameworks/Kieker/bin/benchmark-disk-writer-0.91-oer.sh b/frameworks/Kieker/bin/benchmark-disk-writer-0.91-oer.sh deleted file mode 100644 index fd037c05454f42169fa4cc8731d8a0bd1ef34ce3..0000000000000000000000000000000000000000 --- a/frameworks/Kieker/bin/benchmark-disk-writer-0.91-oer.sh +++ /dev/null @@ -1,170 +0,0 @@ -#!/bin/bash - -JAVABIN="" - -RSCRIPTDIR=r/ -BASEDIR=./ -RESULTSDIR="${BASEDIR}tmp/results-benchmark-kieker-disk-0.91-oer/" - -#SLEEPTIME=30 ## 30 -#NUM_LOOPS=10 ## 10 -#THREADS=1 ## 1 -#RECURSIONDEPTH=10 ## 10 -#TOTALCALLS=2000000 ## 2000000 -#METHODTIME=0 ## 0 - -#MOREPARAMS="--quickstart" -MOREPARAMS="${MOREPARAMS} -r kieker.Logger" - -TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEPTIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSIONDEPTH} + 50 \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} ` -echo "Experiment will take circa ${TIME} seconds." - -echo "Removing and recreating '$RESULTSDIR'" -(rm -rf ${RESULTSDIR}) && mkdir ${RESULTSDIR} -mkdir ${RESULTSDIR}stat/ - -# Clear kieker.log and initialize logging -rm -f ${BASEDIR}kieker.log -touch ${BASEDIR}kieker.log - -RAWFN="${RESULTSDIR}raw" - -JAVAARGS="-server" -JAVAARGS="${JAVAARGS} -d64" -JAVAARGS="${JAVAARGS} -Xms1G -Xmx4G" -JAVAARGS="${JAVAARGS} -verbose:gc -XX:+PrintCompilation" -#JAVAARGS="${JAVAARGS} -XX:+PrintInlining" -#JAVAARGS="${JAVAARGS} -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation" -#JAVAARGS="${JAVAARGS} -Djava.compiler=NONE" -JAR="-jar MooBench.jar" - -JAVAARGS_NOINSTR="${JAVAARGS}" -JAVAARGS_LTW="${JAVAARGS} -javaagent:${BASEDIR}lib/kieker-0.91_aspectj.jar -Dorg.aspectj.weaver.showWeaveInfo=false -Daj.weaving.verbose=false" -JAVAARGS_KIEKER_DEACTV="${JAVAARGS_LTW} -Dtpmon.configuration=META-INF/tpmon.properties.disabled" -JAVAARGS_KIEKER_NOLOGGING="${JAVAARGS_LTW} -Dtpmon.configuration=META-INF/tpmon.properties.collect" -JAVAARGS_KIEKER_LOGGING1="${JAVAARGS_LTW} -Dtpmon.configuration=META-INF/tpmon.properties.writer -Dtpmon.customStoragePath=${BASEDIR}tmp" - -## Write configuration -uname -a >${RESULTSDIR}configuration.txt -${JAVABIN}java ${JAVAARGS} -version 2>>${RESULTSDIR}configuration.txt -echo "JAVAARGS: ${JAVAARGS}" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "Runtime: circa ${TIME} seconds" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "SLEEPTIME=${SLEEPTIME}" >>${RESULTSDIR}configuration.txt -echo "NUM_LOOPS=${NUM_LOOPS}" >>${RESULTSDIR}configuration.txt -echo "TOTALCALLS=${TOTALCALLS}" >>${RESULTSDIR}configuration.txt -echo "METHODTIME=${METHODTIME}" >>${RESULTSDIR}configuration.txt -echo "THREADS=${THREADS}" >>${RESULTSDIR}configuration.txt -echo "RECURSIONDEPTH=${RECURSIONDEPTH}" >>${RESULTSDIR}configuration.txt -sync - -## Execute Benchmark -for ((i=1;i<=${NUM_LOOPS};i+=1)); do - j=${RECURSIONDEPTH} - k=0 - echo "## Starting iteration ${i}/${NUM_LOOPS}" - echo "## Starting iteration ${i}/${NUM_LOOPS}" >>${BASEDIR}kieker.log - - # No instrumentation - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No instrumentation" - echo " # ${i}.${j}.${k} No instrumentation" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_NOINSTR} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Deactivated probe - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Deactivated probe" - echo " # ${i}.${j}.${k} Deactivated probe" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_DEACTV} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # No logging - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No logging (null writer)" - echo " # ${i}.${j}.${k} No logging (null writer)" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_NOLOGGING} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Logging 1 - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Logging 1" - echo " # ${i}.${j}.${k} Logging 1" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_LOGGING1} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - rm -rf ${BASEDIR}tmp/tpmon-* - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - -done -zip -jqr ${RESULTSDIR}stat.zip ${RESULTSDIR}stat -rm -rf ${RESULTSDIR}stat/ -mv ${BASEDIR}kieker.log ${RESULTSDIR}kieker.log -[ -f ${RESULTSDIR}hotspot-1-${RECURSIONDEPTH}-1.log ] && grep "<task " ${RESULTSDIR}hotspot-*.log >${RESULTSDIR}log.log -[ -f ${BASEDIR}errorlog.txt ] && mv ${BASEDIR}errorlog.txt ${RESULTSDIR} - -## Generate Results file -# Bars -R --vanilla --silent <<EOF -results_fn="${RAWFN}" -outtxt_fn="${RESULTSDIR}results-text.txt" -configs.loop=${NUM_LOOPS} -configs.recursion=c(${RECURSIONDEPTH}) -configs.labels=c("No Probe","Deactivated Probe","Collecting Data","Writer") -results.count=${TOTALCALLS} -results.skip=${TOTALCALLS}/2 -source("${RSCRIPTDIR}stats.r") -EOF - -## Clean up raw results -zip -jqr ${RESULTSDIR}results.zip ${RAWFN}* -rm -f ${RAWFN}* -[ -f ${BASEDIR}nohup.out ] && cp ${BASEDIR}nohup.out ${RESULTSDIR} -[ -f ${BASEDIR}nohup.out ] && > ${BASEDIR}nohup.out diff --git a/frameworks/Kieker/bin/benchmark-disk-writer-0.95a-oer.sh b/frameworks/Kieker/bin/benchmark-disk-writer-0.95a-oer.sh deleted file mode 100644 index 4465a157c79f7a0223a742eba62c28c95689128d..0000000000000000000000000000000000000000 --- a/frameworks/Kieker/bin/benchmark-disk-writer-0.95a-oer.sh +++ /dev/null @@ -1,170 +0,0 @@ -#!/bin/bash - -JAVABIN="" - -RSCRIPTDIR=r/ -BASEDIR=./ -RESULTSDIR="${BASEDIR}tmp/results-benchmark-kieker-disk-0.95a-oer/" - -#SLEEPTIME=30 ## 30 -#NUM_LOOPS=10 ## 10 -#THREADS=1 ## 1 -#RECURSIONDEPTH=10 ## 10 -#TOTALCALLS=2000000 ## 2000000 -#METHODTIME=0 ## 0 - -#MOREPARAMS="--quickstart" -MOREPARAMS="${MOREPARAMS} -r kieker.Logger" - -TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEPTIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSIONDEPTH} + 50 \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} ` -echo "Experiment will take circa ${TIME} seconds." - -echo "Removing and recreating '$RESULTSDIR'" -(rm -rf ${RESULTSDIR}) && mkdir ${RESULTSDIR} -mkdir ${RESULTSDIR}stat/ - -# Clear kieker.log and initialize logging -rm -f ${BASEDIR}kieker.log -touch ${BASEDIR}kieker.log - -RAWFN="${RESULTSDIR}raw" - -JAVAARGS="-server" -JAVAARGS="${JAVAARGS} -d64" -JAVAARGS="${JAVAARGS} -Xms1G -Xmx4G" -JAVAARGS="${JAVAARGS} -verbose:gc -XX:+PrintCompilation" -#JAVAARGS="${JAVAARGS} -XX:+PrintInlining" -#JAVAARGS="${JAVAARGS} -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation" -#JAVAARGS="${JAVAARGS} -Djava.compiler=NONE" -JAR="-jar MooBench.jar" - -JAVAARGS_NOINSTR="${JAVAARGS}" -JAVAARGS_LTW="${JAVAARGS} -javaagent:${BASEDIR}lib/kieker-0.95a_aspectj.jar -Dorg.aspectj.weaver.showWeaveInfo=false -Daj.weaving.verbose=false" -JAVAARGS_KIEKER_DEACTV="${JAVAARGS_LTW} -Dtpmon.configuration=META-INF/tpmon.properties.disabled" -JAVAARGS_KIEKER_NOLOGGING="${JAVAARGS_LTW} -Dtpmon.configuration=META-INF/tpmon.properties.collect" -JAVAARGS_KIEKER_LOGGING1="${JAVAARGS_LTW} -Dtpmon.configuration=META-INF/tpmon.properties.writer -Dtpmon.customStoragePath=${BASEDIR}tmp" - -## Write configuration -uname -a >${RESULTSDIR}configuration.txt -${JAVABIN}java ${JAVAARGS} -version 2>>${RESULTSDIR}configuration.txt -echo "JAVAARGS: ${JAVAARGS}" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "Runtime: circa ${TIME} seconds" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "SLEEPTIME=${SLEEPTIME}" >>${RESULTSDIR}configuration.txt -echo "NUM_LOOPS=${NUM_LOOPS}" >>${RESULTSDIR}configuration.txt -echo "TOTALCALLS=${TOTALCALLS}" >>${RESULTSDIR}configuration.txt -echo "METHODTIME=${METHODTIME}" >>${RESULTSDIR}configuration.txt -echo "THREADS=${THREADS}" >>${RESULTSDIR}configuration.txt -echo "RECURSIONDEPTH=${RECURSIONDEPTH}" >>${RESULTSDIR}configuration.txt -sync - -## Execute Benchmark -for ((i=1;i<=${NUM_LOOPS};i+=1)); do - j=${RECURSIONDEPTH} - k=0 - echo "## Starting iteration ${i}/${NUM_LOOPS}" - echo "## Starting iteration ${i}/${NUM_LOOPS}" >>${BASEDIR}kieker.log - - # No instrumentation - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No instrumentation" - echo " # ${i}.${j}.${k} No instrumentation" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_NOINSTR} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Deactivated probe - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Deactivated probe" - echo " # ${i}.${j}.${k} Deactivated probe" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_DEACTV} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # No logging - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No logging (null writer)" - echo " # ${i}.${j}.${k} No logging (null writer)" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_NOLOGGING} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Logging 1 - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Logging 1" - echo " # ${i}.${j}.${k} Logging 1" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_LOGGING1} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - rm -rf ${BASEDIR}tmp/tpmon-* - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - -done -zip -jqr ${RESULTSDIR}stat.zip ${RESULTSDIR}stat -rm -rf ${RESULTSDIR}stat/ -mv ${BASEDIR}kieker.log ${RESULTSDIR}kieker.log -[ -f ${RESULTSDIR}hotspot-1-${RECURSIONDEPTH}-1.log ] && grep "<task " ${RESULTSDIR}hotspot-*.log >${RESULTSDIR}log.log -[ -f ${BASEDIR}errorlog.txt ] && mv ${BASEDIR}errorlog.txt ${RESULTSDIR} - -## Generate Results file -# Bars -R --vanilla --silent <<EOF -results_fn="${RAWFN}" -outtxt_fn="${RESULTSDIR}results-text.txt" -configs.loop=${NUM_LOOPS} -configs.recursion=c(${RECURSIONDEPTH}) -configs.labels=c("No Probe","Deactivated Probe","Collecting Data","Writer") -results.count=${TOTALCALLS} -results.skip=${TOTALCALLS}/2 -source("${RSCRIPTDIR}stats.r") -EOF - -## Clean up raw results -zip -jqr ${RESULTSDIR}results.zip ${RAWFN}* -rm -f ${RAWFN}* -[ -f ${BASEDIR}nohup.out ] && cp ${BASEDIR}nohup.out ${RESULTSDIR} -[ -f ${BASEDIR}nohup.out ] && > ${BASEDIR}nohup.out diff --git a/frameworks/Kieker/bin/benchmark-disk-writer-1.0-oer.sh b/frameworks/Kieker/bin/benchmark-disk-writer-1.0-oer.sh deleted file mode 100644 index 394d4ab207183e47275444846af1bae73490d43a..0000000000000000000000000000000000000000 --- a/frameworks/Kieker/bin/benchmark-disk-writer-1.0-oer.sh +++ /dev/null @@ -1,170 +0,0 @@ -#!/bin/bash - -JAVABIN="" - -RSCRIPTDIR=r/ -BASEDIR=./ -RESULTSDIR="${BASEDIR}tmp/results-benchmark-kieker-disk-1.0-oer/" - -#SLEEPTIME=30 ## 30 -#NUM_LOOPS=10 ## 10 -#THREADS=1 ## 1 -#RECURSIONDEPTH=10 ## 10 -#TOTALCALLS=2000000 ## 2000000 -#METHODTIME=0 ## 0 - -#MOREPARAMS="--quickstart" -MOREPARAMS="${MOREPARAMS} -r kieker.Logger" - -TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEPTIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSIONDEPTH} + 50 \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} ` -echo "Experiment will take circa ${TIME} seconds." - -echo "Removing and recreating '$RESULTSDIR'" -(rm -rf ${RESULTSDIR}) && mkdir ${RESULTSDIR} -mkdir ${RESULTSDIR}stat/ - -# Clear kieker.log and initialize logging -rm -f ${BASEDIR}kieker.log -touch ${BASEDIR}kieker.log - -RAWFN="${RESULTSDIR}raw" - -JAVAARGS="-server" -JAVAARGS="${JAVAARGS} -d64" -JAVAARGS="${JAVAARGS} -Xms1G -Xmx4G" -JAVAARGS="${JAVAARGS} -verbose:gc -XX:+PrintCompilation" -#JAVAARGS="${JAVAARGS} -XX:+PrintInlining" -#JAVAARGS="${JAVAARGS} -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation" -#JAVAARGS="${JAVAARGS} -Djava.compiler=NONE" -JAR="-jar MooBench.jar" - -JAVAARGS_NOINSTR="${JAVAARGS}" -JAVAARGS_LTW="${JAVAARGS} -javaagent:${BASEDIR}lib/kieker-1.0_aspectj.jar -Dorg.aspectj.weaver.showWeaveInfo=false -Daj.weaving.verbose=false" -JAVAARGS_KIEKER_DEACTV="${JAVAARGS_LTW} -Dtpmon.configuration=META-INF/tpmon.properties.disabled" -JAVAARGS_KIEKER_NOLOGGING="${JAVAARGS_LTW} -Dtpmon.configuration=META-INF/tpmon.properties.collect" -JAVAARGS_KIEKER_LOGGING1="${JAVAARGS_LTW} -Dtpmon.configuration=META-INF/tpmon.properties.writer -Dtpmon.customStoragePath=${BASEDIR}tmp" - -## Write configuration -uname -a >${RESULTSDIR}configuration.txt -${JAVABIN}java ${JAVAARGS} -version 2>>${RESULTSDIR}configuration.txt -echo "JAVAARGS: ${JAVAARGS}" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "Runtime: circa ${TIME} seconds" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "SLEEPTIME=${SLEEPTIME}" >>${RESULTSDIR}configuration.txt -echo "NUM_LOOPS=${NUM_LOOPS}" >>${RESULTSDIR}configuration.txt -echo "TOTALCALLS=${TOTALCALLS}" >>${RESULTSDIR}configuration.txt -echo "METHODTIME=${METHODTIME}" >>${RESULTSDIR}configuration.txt -echo "THREADS=${THREADS}" >>${RESULTSDIR}configuration.txt -echo "RECURSIONDEPTH=${RECURSIONDEPTH}" >>${RESULTSDIR}configuration.txt -sync - -## Execute Benchmark -for ((i=1;i<=${NUM_LOOPS};i+=1)); do - j=${RECURSIONDEPTH} - k=0 - echo "## Starting iteration ${i}/${NUM_LOOPS}" - echo "## Starting iteration ${i}/${NUM_LOOPS}" >>${BASEDIR}kieker.log - - # No instrumentation - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No instrumentation" - echo " # ${i}.${j}.${k} No instrumentation" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_NOINSTR} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Deactivated probe - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Deactivated probe" - echo " # ${i}.${j}.${k} Deactivated probe" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_DEACTV} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # No logging - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No logging (null writer)" - echo " # ${i}.${j}.${k} No logging (null writer)" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_NOLOGGING} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Logging 1 - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Logging 1" - echo " # ${i}.${j}.${k} Logging 1" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_LOGGING1} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - rm -rf ${BASEDIR}tmp/tpmon-* - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - -done -zip -jqr ${RESULTSDIR}stat.zip ${RESULTSDIR}stat -rm -rf ${RESULTSDIR}stat/ -mv ${BASEDIR}kieker.log ${RESULTSDIR}kieker.log -[ -f ${RESULTSDIR}hotspot-1-${RECURSIONDEPTH}-1.log ] && grep "<task " ${RESULTSDIR}hotspot-*.log >${RESULTSDIR}log.log -[ -f ${BASEDIR}errorlog.txt ] && mv ${BASEDIR}errorlog.txt ${RESULTSDIR} - -## Generate Results file -# Bars -R --vanilla --silent <<EOF -results_fn="${RAWFN}" -outtxt_fn="${RESULTSDIR}results-text.txt" -configs.loop=${NUM_LOOPS} -configs.recursion=c(${RECURSIONDEPTH}) -configs.labels=c("No Probe","Deactivated Probe","Collecting Data","Writer") -results.count=${TOTALCALLS} -results.skip=${TOTALCALLS}/2 -source("${RSCRIPTDIR}stats.r") -EOF - -## Clean up raw results -zip -jqr ${RESULTSDIR}results.zip ${RAWFN}* -rm -f ${RAWFN}* -[ -f ${BASEDIR}nohup.out ] && cp ${BASEDIR}nohup.out ${RESULTSDIR} -[ -f ${BASEDIR}nohup.out ] && > ${BASEDIR}nohup.out diff --git a/frameworks/Kieker/bin/benchmark-disk-writer-1.1-oer.sh b/frameworks/Kieker/bin/benchmark-disk-writer-1.1-oer.sh deleted file mode 100644 index 40284bfe5557d1fad6902a631fcc59b9ffe8a5db..0000000000000000000000000000000000000000 --- a/frameworks/Kieker/bin/benchmark-disk-writer-1.1-oer.sh +++ /dev/null @@ -1,170 +0,0 @@ -#!/bin/bash - -JAVABIN="" - -RSCRIPTDIR=r/ -BASEDIR=./ -RESULTSDIR="${BASEDIR}tmp/results-benchmark-kieker-disk-1.1-oer/" - -#SLEEPTIME=30 ## 30 -#NUM_LOOPS=10 ## 10 -#THREADS=1 ## 1 -#RECURSIONDEPTH=10 ## 10 -#TOTALCALLS=2000000 ## 2000000 -#METHODTIME=0 ## 0 - -#MOREPARAMS="--quickstart" -MOREPARAMS="${MOREPARAMS} -r kieker.Logger" - -TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEPTIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSIONDEPTH} + 50 \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} ` -echo "Experiment will take circa ${TIME} seconds." - -echo "Removing and recreating '$RESULTSDIR'" -(rm -rf ${RESULTSDIR}) && mkdir ${RESULTSDIR} -mkdir ${RESULTSDIR}stat/ - -# Clear kieker.log and initialize logging -rm -f ${BASEDIR}kieker.log -touch ${BASEDIR}kieker.log - -RAWFN="${RESULTSDIR}raw" - -JAVAARGS="-server" -JAVAARGS="${JAVAARGS} -d64" -JAVAARGS="${JAVAARGS} -Xms1G -Xmx4G" -JAVAARGS="${JAVAARGS} -verbose:gc -XX:+PrintCompilation" -#JAVAARGS="${JAVAARGS} -XX:+PrintInlining" -#JAVAARGS="${JAVAARGS} -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation" -#JAVAARGS="${JAVAARGS} -Djava.compiler=NONE" -JAR="-jar MooBench.jar" - -JAVAARGS_NOINSTR="${JAVAARGS}" -JAVAARGS_LTW="${JAVAARGS} -javaagent:${BASEDIR}lib/kieker-1.1_aspectj.jar -Dorg.aspectj.weaver.showWeaveInfo=false -Daj.weaving.verbose=false" -JAVAARGS_KIEKER_DEACTV="${JAVAARGS_LTW} -Dtpmon.configuration=META-INF/tpmon.properties.disabled" -JAVAARGS_KIEKER_NOLOGGING="${JAVAARGS_LTW} -Dtpmon.configuration=META-INF/tpmon.properties.collect" -JAVAARGS_KIEKER_LOGGING1="${JAVAARGS_LTW} -Dtpmon.configuration=META-INF/tpmon.properties.writer -Dtpmon.customStoragePath=${BASEDIR}tmp" - -## Write configuration -uname -a >${RESULTSDIR}configuration.txt -${JAVABIN}java ${JAVAARGS} -version 2>>${RESULTSDIR}configuration.txt -echo "JAVAARGS: ${JAVAARGS}" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "Runtime: circa ${TIME} seconds" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "SLEEPTIME=${SLEEPTIME}" >>${RESULTSDIR}configuration.txt -echo "NUM_LOOPS=${NUM_LOOPS}" >>${RESULTSDIR}configuration.txt -echo "TOTALCALLS=${TOTALCALLS}" >>${RESULTSDIR}configuration.txt -echo "METHODTIME=${METHODTIME}" >>${RESULTSDIR}configuration.txt -echo "THREADS=${THREADS}" >>${RESULTSDIR}configuration.txt -echo "RECURSIONDEPTH=${RECURSIONDEPTH}" >>${RESULTSDIR}configuration.txt -sync - -## Execute Benchmark -for ((i=1;i<=${NUM_LOOPS};i+=1)); do - j=${RECURSIONDEPTH} - k=0 - echo "## Starting iteration ${i}/${NUM_LOOPS}" - echo "## Starting iteration ${i}/${NUM_LOOPS}" >>${BASEDIR}kieker.log - - # No instrumentation - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No instrumentation" - echo " # ${i}.${j}.${k} No instrumentation" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_NOINSTR} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Deactivated probe - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Deactivated probe" - echo " # ${i}.${j}.${k} Deactivated probe" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_DEACTV} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # No logging - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No logging (null writer)" - echo " # ${i}.${j}.${k} No logging (null writer)" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_NOLOGGING} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Logging 1 - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Logging 1" - echo " # ${i}.${j}.${k} Logging 1" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_LOGGING1} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - rm -rf ${BASEDIR}tmp/tpmon-* - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - -done -zip -jqr ${RESULTSDIR}stat.zip ${RESULTSDIR}stat -rm -rf ${RESULTSDIR}stat/ -mv ${BASEDIR}kieker.log ${RESULTSDIR}kieker.log -[ -f ${RESULTSDIR}hotspot-1-${RECURSIONDEPTH}-1.log ] && grep "<task " ${RESULTSDIR}hotspot-*.log >${RESULTSDIR}log.log -[ -f ${BASEDIR}errorlog.txt ] && mv ${BASEDIR}errorlog.txt ${RESULTSDIR} - -## Generate Results file -# Bars -R --vanilla --silent <<EOF -results_fn="${RAWFN}" -outtxt_fn="${RESULTSDIR}results-text.txt" -configs.loop=${NUM_LOOPS} -configs.recursion=c(${RECURSIONDEPTH}) -configs.labels=c("No Probe","Deactivated Probe","Collecting Data","Writer") -results.count=${TOTALCALLS} -results.skip=${TOTALCALLS}/2 -source("${RSCRIPTDIR}stats.r") -EOF - -## Clean up raw results -zip -jqr ${RESULTSDIR}results.zip ${RAWFN}* -rm -f ${RAWFN}* -[ -f ${BASEDIR}nohup.out ] && cp ${BASEDIR}nohup.out ${RESULTSDIR} -[ -f ${BASEDIR}nohup.out ] && > ${BASEDIR}nohup.out diff --git a/frameworks/Kieker/bin/benchmark-disk-writer-1.2-oer.sh b/frameworks/Kieker/bin/benchmark-disk-writer-1.2-oer.sh deleted file mode 100644 index f5c0bf79634f8416ff2cebd334aee97c5a3375ff..0000000000000000000000000000000000000000 --- a/frameworks/Kieker/bin/benchmark-disk-writer-1.2-oer.sh +++ /dev/null @@ -1,170 +0,0 @@ -#!/bin/bash - -JAVABIN="" - -RSCRIPTDIR=r/ -BASEDIR=./ -RESULTSDIR="${BASEDIR}tmp/results-benchmark-kieker-disk-1.2-oer/" - -#SLEEPTIME=30 ## 30 -#NUM_LOOPS=10 ## 10 -#THREADS=1 ## 1 -#RECURSIONDEPTH=10 ## 10 -#TOTALCALLS=2000000 ## 2000000 -#METHODTIME=0 ## 0 - -#MOREPARAMS="--quickstart" -MOREPARAMS="${MOREPARAMS} -r kieker.Logger" - -TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEPTIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSIONDEPTH} + 50 \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} ` -echo "Experiment will take circa ${TIME} seconds." - -echo "Removing and recreating '$RESULTSDIR'" -(rm -rf ${RESULTSDIR}) && mkdir ${RESULTSDIR} -mkdir ${RESULTSDIR}stat/ - -# Clear kieker.log and initialize logging -rm -f ${BASEDIR}kieker.log -touch ${BASEDIR}kieker.log - -RAWFN="${RESULTSDIR}raw" - -JAVAARGS="-server" -JAVAARGS="${JAVAARGS} -d64" -JAVAARGS="${JAVAARGS} -Xms1G -Xmx4G" -JAVAARGS="${JAVAARGS} -verbose:gc -XX:+PrintCompilation" -#JAVAARGS="${JAVAARGS} -XX:+PrintInlining" -#JAVAARGS="${JAVAARGS} -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation" -#JAVAARGS="${JAVAARGS} -Djava.compiler=NONE" -JAR="-jar MooBench.jar" - -JAVAARGS_NOINSTR="${JAVAARGS}" -JAVAARGS_LTW="${JAVAARGS} -javaagent:${BASEDIR}lib/kieker-1.2_aspectj.jar -Dorg.aspectj.weaver.showWeaveInfo=false -Daj.weaving.verbose=false" -JAVAARGS_KIEKER_DEACTV="${JAVAARGS_LTW} -Dkieker.monitoring.configuration=META-INF/kieker.monitoring.properties.disabled" -JAVAARGS_KIEKER_NOLOGGING="${JAVAARGS_LTW} -Dkieker.monitoring.configuration=META-INF/kieker.monitoring.properties.collect" -JAVAARGS_KIEKER_LOGGING1="${JAVAARGS_LTW} -Dkieker.monitoring.configuration=META-INF/kieker.monitoring.properties.writer -Dkieker.monitoring.customStoragePath=${BASEDIR}tmp" - -## Write configuration -uname -a >${RESULTSDIR}configuration.txt -${JAVABIN}java ${JAVAARGS} -version 2>>${RESULTSDIR}configuration.txt -echo "JAVAARGS: ${JAVAARGS}" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "Runtime: circa ${TIME} seconds" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "SLEEPTIME=${SLEEPTIME}" >>${RESULTSDIR}configuration.txt -echo "NUM_LOOPS=${NUM_LOOPS}" >>${RESULTSDIR}configuration.txt -echo "TOTALCALLS=${TOTALCALLS}" >>${RESULTSDIR}configuration.txt -echo "METHODTIME=${METHODTIME}" >>${RESULTSDIR}configuration.txt -echo "THREADS=${THREADS}" >>${RESULTSDIR}configuration.txt -echo "RECURSIONDEPTH=${RECURSIONDEPTH}" >>${RESULTSDIR}configuration.txt -sync - -## Execute Benchmark -for ((i=1;i<=${NUM_LOOPS};i+=1)); do - j=${RECURSIONDEPTH} - k=0 - echo "## Starting iteration ${i}/${NUM_LOOPS}" - echo "## Starting iteration ${i}/${NUM_LOOPS}" >>${BASEDIR}kieker.log - - # No instrumentation - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No instrumentation" - echo " # ${i}.${j}.${k} No instrumentation" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_NOINSTR} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Deactivated probe - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Deactivated probe" - echo " # ${i}.${j}.${k} Deactivated probe" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_DEACTV} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # No logging - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No logging (null writer)" - echo " # ${i}.${j}.${k} No logging (null writer)" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_NOLOGGING} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Logging 1 - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Logging 1" - echo " # ${i}.${j}.${k} Logging 1" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_LOGGING1} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - rm -rf ${BASEDIR}tmp/tpmon-* - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - -done -zip -jqr ${RESULTSDIR}stat.zip ${RESULTSDIR}stat -rm -rf ${RESULTSDIR}stat/ -mv ${BASEDIR}kieker.log ${RESULTSDIR}kieker.log -[ -f ${RESULTSDIR}hotspot-1-${RECURSIONDEPTH}-1.log ] && grep "<task " ${RESULTSDIR}hotspot-*.log >${RESULTSDIR}log.log -[ -f ${BASEDIR}errorlog.txt ] && mv ${BASEDIR}errorlog.txt ${RESULTSDIR} - -## Generate Results file -# Bars -R --vanilla --silent <<EOF -results_fn="${RAWFN}" -outtxt_fn="${RESULTSDIR}results-text.txt" -configs.loop=${NUM_LOOPS} -configs.recursion=c(${RECURSIONDEPTH}) -configs.labels=c("No Probe","Deactivated Probe","Collecting Data","Writer") -results.count=${TOTALCALLS} -results.skip=${TOTALCALLS}/2 -source("${RSCRIPTDIR}stats.r") -EOF - -## Clean up raw results -zip -jqr ${RESULTSDIR}results.zip ${RAWFN}* -rm -f ${RAWFN}* -[ -f ${BASEDIR}nohup.out ] && cp ${BASEDIR}nohup.out ${RESULTSDIR} -[ -f ${BASEDIR}nohup.out ] && > ${BASEDIR}nohup.out diff --git a/frameworks/Kieker/bin/benchmark-disk-writer-1.3-oer.sh b/frameworks/Kieker/bin/benchmark-disk-writer-1.3-oer.sh deleted file mode 100644 index b0bb0011c0d225145b903629c9f1eb0f9b1cec4b..0000000000000000000000000000000000000000 --- a/frameworks/Kieker/bin/benchmark-disk-writer-1.3-oer.sh +++ /dev/null @@ -1,170 +0,0 @@ -#!/bin/bash - -JAVABIN="" - -RSCRIPTDIR=r/ -BASEDIR=./ -RESULTSDIR="${BASEDIR}tmp/results-benchmark-kieker-disk-1.3-oer/" - -#SLEEPTIME=30 ## 30 -#NUM_LOOPS=10 ## 10 -#THREADS=1 ## 1 -#RECURSIONDEPTH=10 ## 10 -#TOTALCALLS=2000000 ## 2000000 -#METHODTIME=0 ## 0 - -#MOREPARAMS="--quickstart" -MOREPARAMS="${MOREPARAMS} -r kieker.Logger" - -TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEPTIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSIONDEPTH} + 50 \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} ` -echo "Experiment will take circa ${TIME} seconds." - -echo "Removing and recreating '$RESULTSDIR'" -(rm -rf ${RESULTSDIR}) && mkdir ${RESULTSDIR} -mkdir ${RESULTSDIR}stat/ - -# Clear kieker.log and initialize logging -rm -f ${BASEDIR}kieker.log -touch ${BASEDIR}kieker.log - -RAWFN="${RESULTSDIR}raw" - -JAVAARGS="-server" -JAVAARGS="${JAVAARGS} -d64" -JAVAARGS="${JAVAARGS} -Xms1G -Xmx4G" -JAVAARGS="${JAVAARGS} -verbose:gc -XX:+PrintCompilation" -#JAVAARGS="${JAVAARGS} -XX:+PrintInlining" -#JAVAARGS="${JAVAARGS} -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation" -#JAVAARGS="${JAVAARGS} -Djava.compiler=NONE" -JAR="-jar MooBench.jar" - -JAVAARGS_NOINSTR="${JAVAARGS}" -JAVAARGS_LTW="${JAVAARGS} -javaagent:${BASEDIR}lib/kieker-1.3_aspectj.jar -Dorg.aspectj.weaver.showWeaveInfo=false -Daj.weaving.verbose=false" -JAVAARGS_KIEKER_DEACTV="${JAVAARGS_LTW} -Dkieker.monitoring.enabled=false -Dkieker.monitoring.writer=kieker.monitoring.writer.DummyWriter" -JAVAARGS_KIEKER_NOLOGGING="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.DummyWriter" -JAVAARGS_KIEKER_LOGGING1="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.AsyncFsWriter -Dkieker.monitoring.writer.filesystem.AsyncFsWriter.storeInJavaIoTmpdir=false -Dkieker.monitoring.writer.filesystem.AsyncFsWriter.customStoragePath=${BASEDIR}tmp" - -## Write configuration -uname -a >${RESULTSDIR}configuration.txt -${JAVABIN}java ${JAVAARGS} -version 2>>${RESULTSDIR}configuration.txt -echo "JAVAARGS: ${JAVAARGS}" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "Runtime: circa ${TIME} seconds" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "SLEEPTIME=${SLEEPTIME}" >>${RESULTSDIR}configuration.txt -echo "NUM_LOOPS=${NUM_LOOPS}" >>${RESULTSDIR}configuration.txt -echo "TOTALCALLS=${TOTALCALLS}" >>${RESULTSDIR}configuration.txt -echo "METHODTIME=${METHODTIME}" >>${RESULTSDIR}configuration.txt -echo "THREADS=${THREADS}" >>${RESULTSDIR}configuration.txt -echo "RECURSIONDEPTH=${RECURSIONDEPTH}" >>${RESULTSDIR}configuration.txt -sync - -## Execute Benchmark -for ((i=1;i<=${NUM_LOOPS};i+=1)); do - j=${RECURSIONDEPTH} - k=0 - echo "## Starting iteration ${i}/${NUM_LOOPS}" - echo "## Starting iteration ${i}/${NUM_LOOPS}" >>${BASEDIR}kieker.log - - # No instrumentation - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No instrumentation" - echo " # ${i}.${j}.${k} No instrumentation" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_NOINSTR} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Deactivated probe - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Deactivated probe" - echo " # ${i}.${j}.${k} Deactivated probe" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_DEACTV} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # No logging - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No logging (null writer)" - echo " # ${i}.${j}.${k} No logging (null writer)" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_NOLOGGING} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Logging 1 - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Logging 1" - echo " # ${i}.${j}.${k} Logging 1" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_LOGGING1} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - rm -rf ${BASEDIR}tmp/kieker-* - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - -done -zip -jqr ${RESULTSDIR}stat.zip ${RESULTSDIR}stat -rm -rf ${RESULTSDIR}stat/ -mv ${BASEDIR}kieker.log ${RESULTSDIR}kieker.log -[ -f ${RESULTSDIR}hotspot-1-${RECURSIONDEPTH}-1.log ] && grep "<task " ${RESULTSDIR}hotspot-*.log >${RESULTSDIR}log.log -[ -f ${BASEDIR}errorlog.txt ] && mv ${BASEDIR}errorlog.txt ${RESULTSDIR} - -## Generate Results file -# Bars -R --vanilla --silent <<EOF -results_fn="${RAWFN}" -outtxt_fn="${RESULTSDIR}results-text.txt" -configs.loop=${NUM_LOOPS} -configs.recursion=c(${RECURSIONDEPTH}) -configs.labels=c("No Probe","Deactivated Probe","Collecting Data","Writer") -results.count=${TOTALCALLS} -results.skip=${TOTALCALLS}/2 -source("${RSCRIPTDIR}stats.r") -EOF - -## Clean up raw results -zip -jqr ${RESULTSDIR}results.zip ${RAWFN}* -rm -f ${RAWFN}* -[ -f ${BASEDIR}nohup.out ] && cp ${BASEDIR}nohup.out ${RESULTSDIR} -[ -f ${BASEDIR}nohup.out ] && > ${BASEDIR}nohup.out diff --git a/frameworks/Kieker/bin/benchmark-disk-writer-1.4-oer.sh b/frameworks/Kieker/bin/benchmark-disk-writer-1.4-oer.sh deleted file mode 100644 index 83f2e32cd79d9a14f8b49981df10818523971aa9..0000000000000000000000000000000000000000 --- a/frameworks/Kieker/bin/benchmark-disk-writer-1.4-oer.sh +++ /dev/null @@ -1,170 +0,0 @@ -#!/bin/bash - -JAVABIN="" - -RSCRIPTDIR=r/ -BASEDIR=./ -RESULTSDIR="${BASEDIR}tmp/results-benchmark-kieker-disk-1.4-oer/" - -#SLEEPTIME=30 ## 30 -#NUM_LOOPS=10 ## 10 -#THREADS=1 ## 1 -#RECURSIONDEPTH=10 ## 10 -#TOTALCALLS=2000000 ## 2000000 -#METHODTIME=0 ## 0 - -#MOREPARAMS="--quickstart" -MOREPARAMS="${MOREPARAMS} -r kieker.Logger" - -TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEPTIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSIONDEPTH} + 50 \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} ` -echo "Experiment will take circa ${TIME} seconds." - -echo "Removing and recreating '$RESULTSDIR'" -(rm -rf ${RESULTSDIR}) && mkdir ${RESULTSDIR} -mkdir ${RESULTSDIR}stat/ - -# Clear kieker.log and initialize logging -rm -f ${BASEDIR}kieker.log -touch ${BASEDIR}kieker.log - -RAWFN="${RESULTSDIR}raw" - -JAVAARGS="-server" -JAVAARGS="${JAVAARGS} -d64" -JAVAARGS="${JAVAARGS} -Xms1G -Xmx4G" -JAVAARGS="${JAVAARGS} -verbose:gc -XX:+PrintCompilation" -#JAVAARGS="${JAVAARGS} -XX:+PrintInlining" -#JAVAARGS="${JAVAARGS} -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation" -#JAVAARGS="${JAVAARGS} -Djava.compiler=NONE" -JAR="-jar MooBench.jar" - -JAVAARGS_NOINSTR="${JAVAARGS}" -JAVAARGS_LTW="${JAVAARGS} -javaagent:${BASEDIR}lib/kieker-1.4_aspectj.jar -Dorg.aspectj.weaver.showWeaveInfo=false -Daj.weaving.verbose=false" -JAVAARGS_KIEKER_DEACTV="${JAVAARGS_LTW} -Dkieker.monitoring.enabled=false -Dkieker.monitoring.writer=kieker.monitoring.writer.DummyWriter" -JAVAARGS_KIEKER_NOLOGGING="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.DummyWriter" -JAVAARGS_KIEKER_LOGGING1="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.AsyncFsWriter -Dkieker.monitoring.writer.filesystem.AsyncFsWriter.storeInJavaIoTmpdir=false -Dkieker.monitoring.writer.filesystem.AsyncFsWriter.customStoragePath=${BASEDIR}tmp" - -## Write configuration -uname -a >${RESULTSDIR}configuration.txt -${JAVABIN}java ${JAVAARGS} -version 2>>${RESULTSDIR}configuration.txt -echo "JAVAARGS: ${JAVAARGS}" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "Runtime: circa ${TIME} seconds" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "SLEEPTIME=${SLEEPTIME}" >>${RESULTSDIR}configuration.txt -echo "NUM_LOOPS=${NUM_LOOPS}" >>${RESULTSDIR}configuration.txt -echo "TOTALCALLS=${TOTALCALLS}" >>${RESULTSDIR}configuration.txt -echo "METHODTIME=${METHODTIME}" >>${RESULTSDIR}configuration.txt -echo "THREADS=${THREADS}" >>${RESULTSDIR}configuration.txt -echo "RECURSIONDEPTH=${RECURSIONDEPTH}" >>${RESULTSDIR}configuration.txt -sync - -## Execute Benchmark -for ((i=1;i<=${NUM_LOOPS};i+=1)); do - j=${RECURSIONDEPTH} - k=0 - echo "## Starting iteration ${i}/${NUM_LOOPS}" - echo "## Starting iteration ${i}/${NUM_LOOPS}" >>${BASEDIR}kieker.log - - # No instrumentation - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No instrumentation" - echo " # ${i}.${j}.${k} No instrumentation" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_NOINSTR} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Deactivated probe - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Deactivated probe" - echo " # ${i}.${j}.${k} Deactivated probe" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_DEACTV} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # No logging - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No logging (null writer)" - echo " # ${i}.${j}.${k} No logging (null writer)" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_NOLOGGING} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Logging 1 - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Logging 1" - echo " # ${i}.${j}.${k} Logging 1" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_LOGGING1} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - rm -rf ${BASEDIR}tmp/kieker-* - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - -done -zip -jqr ${RESULTSDIR}stat.zip ${RESULTSDIR}stat -rm -rf ${RESULTSDIR}stat/ -mv ${BASEDIR}kieker.log ${RESULTSDIR}kieker.log -[ -f ${RESULTSDIR}hotspot-1-${RECURSIONDEPTH}-1.log ] && grep "<task " ${RESULTSDIR}hotspot-*.log >${RESULTSDIR}log.log -[ -f ${BASEDIR}errorlog.txt ] && mv ${BASEDIR}errorlog.txt ${RESULTSDIR} - -## Generate Results file -# Bars -R --vanilla --silent <<EOF -results_fn="${RAWFN}" -outtxt_fn="${RESULTSDIR}results-text.txt" -configs.loop=${NUM_LOOPS} -configs.recursion=c(${RECURSIONDEPTH}) -configs.labels=c("No Probe","Deactivated Probe","Collecting Data","Writer") -results.count=${TOTALCALLS} -results.skip=${TOTALCALLS}/2 -source("${RSCRIPTDIR}stats.r") -EOF - -## Clean up raw results -zip -jqr ${RESULTSDIR}results.zip ${RAWFN}* -rm -f ${RAWFN}* -[ -f ${BASEDIR}nohup.out ] && cp ${BASEDIR}nohup.out ${RESULTSDIR} -[ -f ${BASEDIR}nohup.out ] && > ${BASEDIR}nohup.out diff --git a/frameworks/Kieker/bin/benchmark-disk-writer-1.5-event.sh b/frameworks/Kieker/bin/benchmark-disk-writer-1.5-event.sh deleted file mode 100644 index b920f0c3404756038c94966f6ace53e3900184e2..0000000000000000000000000000000000000000 --- a/frameworks/Kieker/bin/benchmark-disk-writer-1.5-event.sh +++ /dev/null @@ -1,191 +0,0 @@ -#!/bin/bash - -JAVABIN="" - -RSCRIPTDIR=r/ -BASEDIR=./ -RESULTSDIR="${BASEDIR}tmp/results-benchmark-kieker-disk-1.5-event/" - -#SLEEPTIME=30 ## 30 -#NUM_LOOPS=10 ## 10 -#THREADS=1 ## 1 -#RECURSIONDEPTH=10 ## 10 -#TOTALCALLS=2000000 ## 2000000 -#METHODTIME=0 ## 0 - -#MOREPARAMS="--quickstart" -MOREPARAMS="${MOREPARAMS} -r kieker.Logger" - -TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEPTIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSIONDEPTH} + 50 \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} ` -echo "Experiment will take circa ${TIME} seconds." - -echo "Removing and recreating '$RESULTSDIR'" -(rm -rf ${RESULTSDIR}) && mkdir ${RESULTSDIR} -mkdir ${RESULTSDIR}stat/ - -# Clear kieker.log and initialize logging -rm -f ${BASEDIR}kieker.log -touch ${BASEDIR}kieker.log - -RAWFN="${RESULTSDIR}raw" - -JAVAARGS="-server" -JAVAARGS="${JAVAARGS} -d64" -JAVAARGS="${JAVAARGS} -Xms1G -Xmx4G" -JAVAARGS="${JAVAARGS} -verbose:gc -XX:+PrintCompilation" -#JAVAARGS="${JAVAARGS} -XX:+PrintInlining" -#JAVAARGS="${JAVAARGS} -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation" -#JAVAARGS="${JAVAARGS} -Djava.compiler=NONE" -JAR="-jar MooBench.jar" - -JAVAARGS_NOINSTR="${JAVAARGS}" -JAVAARGS_LTW="${JAVAARGS} -javaagent:${BASEDIR}lib/kieker-1.5_aspectj.jar -Dorg.aspectj.weaver.showWeaveInfo=false -Daj.weaving.verbose=false -Dorg.aspectj.weaver.loadtime.configuration=META-INF/kieker.aop.xml" -JAVAARGS_KIEKER_DEACTV="${JAVAARGS_LTW} -Dkieker.monitoring.enabled=false -Dkieker.monitoring.writer=kieker.monitoring.writer.DummyWriter" -JAVAARGS_KIEKER_NOLOGGING="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.DummyWriter" -JAVAARGS_KIEKER_LOGGING1="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.AsyncFsWriter -Dkieker.monitoring.writer.filesystem.AsyncFsWriter.storeInJavaIoTmpdir=false -Dkieker.monitoring.writer.filesystem.AsyncFsWriter.customStoragePath=${BASEDIR}tmp" -JAVAARGS_KIEKER_LOGGING2="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.AsyncBinaryFsWriter -Dkieker.monitoring.writer.filesystem.AsyncBinaryFsWriter.storeInJavaIoTmpdir=false -Dkieker.monitoring.writer.filesystem.AsyncBinaryFsWriter.customStoragePath=${BASEDIR}tmp" - -## Write configuration -uname -a >${RESULTSDIR}configuration.txt -${JAVABIN}java ${JAVAARGS} -version 2>>${RESULTSDIR}configuration.txt -echo "JAVAARGS: ${JAVAARGS}" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "Runtime: circa ${TIME} seconds" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "SLEEPTIME=${SLEEPTIME}" >>${RESULTSDIR}configuration.txt -echo "NUM_LOOPS=${NUM_LOOPS}" >>${RESULTSDIR}configuration.txt -echo "TOTALCALLS=${TOTALCALLS}" >>${RESULTSDIR}configuration.txt -echo "METHODTIME=${METHODTIME}" >>${RESULTSDIR}configuration.txt -echo "THREADS=${THREADS}" >>${RESULTSDIR}configuration.txt -echo "RECURSIONDEPTH=${RECURSIONDEPTH}" >>${RESULTSDIR}configuration.txt -sync - -## Execute Benchmark -for ((i=1;i<=${NUM_LOOPS};i+=1)); do - j=${RECURSIONDEPTH} - k=0 - echo "## Starting iteration ${i}/${NUM_LOOPS}" - echo "## Starting iteration ${i}/${NUM_LOOPS}" >>${BASEDIR}kieker.log - - # No instrumentation - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No instrumentation" - echo " # ${i}.${j}.${k} No instrumentation" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_NOINSTR} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Deactivated probe - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Deactivated probe" - echo " # ${i}.${j}.${k} Deactivated probe" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_DEACTV} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # No logging - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No logging (null writer)" - echo " # ${i}.${j}.${k} No logging (null writer)" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_NOLOGGING} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Logging 1 - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Logging 1" - echo " # ${i}.${j}.${k} Logging 1" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_LOGGING1} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - rm -rf ${BASEDIR}tmp/kieker-* - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Logging 2 - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Logging 2" - echo " # ${i}.${j}.${k} Logging 2" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_LOGGING2} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - rm -rf ${BASEDIR}tmp/kieker-* - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - -done -zip -jqr ${RESULTSDIR}stat.zip ${RESULTSDIR}stat -rm -rf ${RESULTSDIR}stat/ -mv ${BASEDIR}kieker.log ${RESULTSDIR}kieker.log -[ -f ${RESULTSDIR}hotspot-1-${RECURSIONDEPTH}-1.log ] && grep "<task " ${RESULTSDIR}hotspot-*.log >${RESULTSDIR}log.log -[ -f ${BASEDIR}errorlog.txt ] && mv ${BASEDIR}errorlog.txt ${RESULTSDIR} - -## Generate Results file -# Bars -R --vanilla --silent <<EOF -results_fn="${RAWFN}" -outtxt_fn="${RESULTSDIR}results-text.txt" -configs.loop=${NUM_LOOPS} -configs.recursion=c(${RECURSIONDEPTH}) -configs.labels=c("No Probe","Deactivated Probe","Collecting Data","Writer1","Writer2") -results.count=${TOTALCALLS} -results.skip=${TOTALCALLS}/2 -source("${RSCRIPTDIR}stats.r") -EOF - -## Clean up raw results -zip -jqr ${RESULTSDIR}results.zip ${RAWFN}* -rm -f ${RAWFN}* -[ -f ${BASEDIR}nohup.out ] && cp ${BASEDIR}nohup.out ${RESULTSDIR} -[ -f ${BASEDIR}nohup.out ] && > ${BASEDIR}nohup.out diff --git a/frameworks/Kieker/bin/benchmark-disk-writer-1.5-oer.sh b/frameworks/Kieker/bin/benchmark-disk-writer-1.5-oer.sh deleted file mode 100644 index 8161298035ed37818bb538d34c995530e51429f0..0000000000000000000000000000000000000000 --- a/frameworks/Kieker/bin/benchmark-disk-writer-1.5-oer.sh +++ /dev/null @@ -1,191 +0,0 @@ -#!/bin/bash - -JAVABIN="" - -RSCRIPTDIR=r/ -BASEDIR=./ -RESULTSDIR="${BASEDIR}tmp/results-benchmark-kieker-disk-1.5-oer/" - -#SLEEPTIME=30 ## 30 -#NUM_LOOPS=10 ## 10 -#THREADS=1 ## 1 -#RECURSIONDEPTH=10 ## 10 -#TOTALCALLS=2000000 ## 2000000 -#METHODTIME=0 ## 0 - -#MOREPARAMS="--quickstart" -MOREPARAMS="${MOREPARAMS} -r kieker.Logger" - -TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEPTIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSIONDEPTH} + 50 \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} ` -echo "Experiment will take circa ${TIME} seconds." - -echo "Removing and recreating '$RESULTSDIR'" -(rm -rf ${RESULTSDIR}) && mkdir ${RESULTSDIR} -mkdir ${RESULTSDIR}stat/ - -# Clear kieker.log and initialize logging -rm -f ${BASEDIR}kieker.log -touch ${BASEDIR}kieker.log - -RAWFN="${RESULTSDIR}raw" - -JAVAARGS="-server" -JAVAARGS="${JAVAARGS} -d64" -JAVAARGS="${JAVAARGS} -Xms1G -Xmx4G" -JAVAARGS="${JAVAARGS} -verbose:gc -XX:+PrintCompilation" -#JAVAARGS="${JAVAARGS} -XX:+PrintInlining" -#JAVAARGS="${JAVAARGS} -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation" -#JAVAARGS="${JAVAARGS} -Djava.compiler=NONE" -JAR="-jar MooBench.jar" - -JAVAARGS_NOINSTR="${JAVAARGS}" -JAVAARGS_LTW="${JAVAARGS} -javaagent:${BASEDIR}lib/kieker-1.5_aspectj.jar -Dorg.aspectj.weaver.showWeaveInfo=false -Daj.weaving.verbose=false -Dorg.aspectj.weaver.loadtime.configuration=META-INF/kieker.legacy.aop.xml" -JAVAARGS_KIEKER_DEACTV="${JAVAARGS_LTW} -Dkieker.monitoring.enabled=false -Dkieker.monitoring.writer=kieker.monitoring.writer.DummyWriter" -JAVAARGS_KIEKER_NOLOGGING="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.DummyWriter" -JAVAARGS_KIEKER_LOGGING1="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.AsyncFsWriter -Dkieker.monitoring.writer.filesystem.AsyncFsWriter.storeInJavaIoTmpdir=false -Dkieker.monitoring.writer.filesystem.AsyncFsWriter.customStoragePath=${BASEDIR}tmp" -JAVAARGS_KIEKER_LOGGING2="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.AsyncBinaryFsWriter -Dkieker.monitoring.writer.filesystem.AsyncBinaryFsWriter.storeInJavaIoTmpdir=false -Dkieker.monitoring.writer.filesystem.AsyncBinaryFsWriter.customStoragePath=${BASEDIR}tmp" - -## Write configuration -uname -a >${RESULTSDIR}configuration.txt -${JAVABIN}java ${JAVAARGS} -version 2>>${RESULTSDIR}configuration.txt -echo "JAVAARGS: ${JAVAARGS}" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "Runtime: circa ${TIME} seconds" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "SLEEPTIME=${SLEEPTIME}" >>${RESULTSDIR}configuration.txt -echo "NUM_LOOPS=${NUM_LOOPS}" >>${RESULTSDIR}configuration.txt -echo "TOTALCALLS=${TOTALCALLS}" >>${RESULTSDIR}configuration.txt -echo "METHODTIME=${METHODTIME}" >>${RESULTSDIR}configuration.txt -echo "THREADS=${THREADS}" >>${RESULTSDIR}configuration.txt -echo "RECURSIONDEPTH=${RECURSIONDEPTH}" >>${RESULTSDIR}configuration.txt -sync - -## Execute Benchmark -for ((i=1;i<=${NUM_LOOPS};i+=1)); do - j=${RECURSIONDEPTH} - k=0 - echo "## Starting iteration ${i}/${NUM_LOOPS}" - echo "## Starting iteration ${i}/${NUM_LOOPS}" >>${BASEDIR}kieker.log - - # No instrumentation - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No instrumentation" - echo " # ${i}.${j}.${k} No instrumentation" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_NOINSTR} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Deactivated probe - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Deactivated probe" - echo " # ${i}.${j}.${k} Deactivated probe" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_DEACTV} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # No logging - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No logging (null writer)" - echo " # ${i}.${j}.${k} No logging (null writer)" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_NOLOGGING} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Logging 1 - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Logging 1" - echo " # ${i}.${j}.${k} Logging 1" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_LOGGING1} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - rm -rf ${BASEDIR}tmp/kieker-* - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Logging 2 - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Logging 2" - echo " # ${i}.${j}.${k} Logging 2" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_LOGGING2} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - rm -rf ${BASEDIR}tmp/kieker-* - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - -done -zip -jqr ${RESULTSDIR}stat.zip ${RESULTSDIR}stat -rm -rf ${RESULTSDIR}stat/ -mv ${BASEDIR}kieker.log ${RESULTSDIR}kieker.log -[ -f ${RESULTSDIR}hotspot-1-${RECURSIONDEPTH}-1.log ] && grep "<task " ${RESULTSDIR}hotspot-*.log >${RESULTSDIR}log.log -[ -f ${BASEDIR}errorlog.txt ] && mv ${BASEDIR}errorlog.txt ${RESULTSDIR} - -## Generate Results file -# Bars -R --vanilla --silent <<EOF -results_fn="${RAWFN}" -outtxt_fn="${RESULTSDIR}results-text.txt" -configs.loop=${NUM_LOOPS} -configs.recursion=c(${RECURSIONDEPTH}) -configs.labels=c("No Probe","Deactivated Probe","Collecting Data","Writer1","Writer2") -results.count=${TOTALCALLS} -results.skip=${TOTALCALLS}/2 -source("${RSCRIPTDIR}stats.r") -EOF - -## Clean up raw results -zip -jqr ${RESULTSDIR}results.zip ${RAWFN}* -rm -f ${RAWFN}* -[ -f ${BASEDIR}nohup.out ] && cp ${BASEDIR}nohup.out ${RESULTSDIR} -[ -f ${BASEDIR}nohup.out ] && > ${BASEDIR}nohup.out diff --git a/frameworks/Kieker/bin/benchmark-disk-writer-1.6-event.sh b/frameworks/Kieker/bin/benchmark-disk-writer-1.6-event.sh deleted file mode 100644 index d3a63dd0b863fe76af5e657ae38b4d61ba221174..0000000000000000000000000000000000000000 --- a/frameworks/Kieker/bin/benchmark-disk-writer-1.6-event.sh +++ /dev/null @@ -1,191 +0,0 @@ -#!/bin/bash - -JAVABIN="" - -RSCRIPTDIR=r/ -BASEDIR=./ -RESULTSDIR="${BASEDIR}tmp/results-benchmark-kieker-disk-1.6-event/" - -#SLEEPTIME=30 ## 30 -#NUM_LOOPS=10 ## 10 -#THREADS=1 ## 1 -#RECURSIONDEPTH=10 ## 10 -#TOTALCALLS=2000000 ## 2000000 -#METHODTIME=0 ## 0 - -#MOREPARAMS="--quickstart" -MOREPARAMS="${MOREPARAMS} -r kieker.Logger" - -TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEPTIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSIONDEPTH} + 50 \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} ` -echo "Experiment will take circa ${TIME} seconds." - -echo "Removing and recreating '$RESULTSDIR'" -(rm -rf ${RESULTSDIR}) && mkdir ${RESULTSDIR} -mkdir ${RESULTSDIR}stat/ - -# Clear kieker.log and initialize logging -rm -f ${BASEDIR}kieker.log -touch ${BASEDIR}kieker.log - -RAWFN="${RESULTSDIR}raw" - -JAVAARGS="-server" -JAVAARGS="${JAVAARGS} -d64" -JAVAARGS="${JAVAARGS} -Xms1G -Xmx4G" -JAVAARGS="${JAVAARGS} -verbose:gc -XX:+PrintCompilation" -#JAVAARGS="${JAVAARGS} -XX:+PrintInlining" -#JAVAARGS="${JAVAARGS} -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation" -#JAVAARGS="${JAVAARGS} -Djava.compiler=NONE" -JAR="-jar MooBench.jar" - -JAVAARGS_NOINSTR="${JAVAARGS}" -JAVAARGS_LTW="${JAVAARGS} -javaagent:${BASEDIR}lib/kieker-1.6_aspectj.jar -Dorg.aspectj.weaver.showWeaveInfo=false -Daj.weaving.verbose=false -Dorg.aspectj.weaver.loadtime.configuration=META-INF/kieker.aop.xml" -JAVAARGS_KIEKER_DEACTV="${JAVAARGS_LTW} -Dkieker.monitoring.enabled=false -Dkieker.monitoring.writer=kieker.monitoring.writer.DummyWriter" -JAVAARGS_KIEKER_NOLOGGING="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.DummyWriter" -JAVAARGS_KIEKER_LOGGING1="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.AsyncFsWriter -Dkieker.monitoring.writer.filesystem.AsyncFsWriter.storeInJavaIoTmpdir=false -Dkieker.monitoring.writer.filesystem.AsyncFsWriter.customStoragePath=${BASEDIR}tmp" -JAVAARGS_KIEKER_LOGGING2="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.AsyncBinaryFsWriter -Dkieker.monitoring.writer.filesystem.AsyncBinaryFsWriter.storeInJavaIoTmpdir=false -Dkieker.monitoring.writer.filesystem.AsyncBinaryFsWriter.customStoragePath=${BASEDIR}tmp" - -## Write configuration -uname -a >${RESULTSDIR}configuration.txt -${JAVABIN}java ${JAVAARGS} -version 2>>${RESULTSDIR}configuration.txt -echo "JAVAARGS: ${JAVAARGS}" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "Runtime: circa ${TIME} seconds" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "SLEEPTIME=${SLEEPTIME}" >>${RESULTSDIR}configuration.txt -echo "NUM_LOOPS=${NUM_LOOPS}" >>${RESULTSDIR}configuration.txt -echo "TOTALCALLS=${TOTALCALLS}" >>${RESULTSDIR}configuration.txt -echo "METHODTIME=${METHODTIME}" >>${RESULTSDIR}configuration.txt -echo "THREADS=${THREADS}" >>${RESULTSDIR}configuration.txt -echo "RECURSIONDEPTH=${RECURSIONDEPTH}" >>${RESULTSDIR}configuration.txt -sync - -## Execute Benchmark -for ((i=1;i<=${NUM_LOOPS};i+=1)); do - j=${RECURSIONDEPTH} - k=0 - echo "## Starting iteration ${i}/${NUM_LOOPS}" - echo "## Starting iteration ${i}/${NUM_LOOPS}" >>${BASEDIR}kieker.log - - # No instrumentation - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No instrumentation" - echo " # ${i}.${j}.${k} No instrumentation" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_NOINSTR} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Deactivated probe - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Deactivated probe" - echo " # ${i}.${j}.${k} Deactivated probe" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_DEACTV} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # No logging - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No logging (null writer)" - echo " # ${i}.${j}.${k} No logging (null writer)" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_NOLOGGING} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Logging 1 - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Logging 1" - echo " # ${i}.${j}.${k} Logging 1" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_LOGGING1} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - rm -rf ${BASEDIR}tmp/kieker-* - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Logging 2 - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Logging 2" - echo " # ${i}.${j}.${k} Logging 2" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_LOGGING2} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - rm -rf ${BASEDIR}tmp/kieker-* - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - -done -zip -jqr ${RESULTSDIR}stat.zip ${RESULTSDIR}stat -rm -rf ${RESULTSDIR}stat/ -mv ${BASEDIR}kieker.log ${RESULTSDIR}kieker.log -[ -f ${RESULTSDIR}hotspot-1-${RECURSIONDEPTH}-1.log ] && grep "<task " ${RESULTSDIR}hotspot-*.log >${RESULTSDIR}log.log -[ -f ${BASEDIR}errorlog.txt ] && mv ${BASEDIR}errorlog.txt ${RESULTSDIR} - -## Generate Results file -# Bars -R --vanilla --silent <<EOF -results_fn="${RAWFN}" -outtxt_fn="${RESULTSDIR}results-text.txt" -configs.loop=${NUM_LOOPS} -configs.recursion=c(${RECURSIONDEPTH}) -configs.labels=c("No Probe","Deactivated Probe","Collecting Data","Writer1","Writer2") -results.count=${TOTALCALLS} -results.skip=${TOTALCALLS}/2 -source("${RSCRIPTDIR}stats.r") -EOF - -## Clean up raw results -zip -jqr ${RESULTSDIR}results.zip ${RAWFN}* -rm -f ${RAWFN}* -[ -f ${BASEDIR}nohup.out ] && cp ${BASEDIR}nohup.out ${RESULTSDIR} -[ -f ${BASEDIR}nohup.out ] && > ${BASEDIR}nohup.out diff --git a/frameworks/Kieker/bin/benchmark-disk-writer-1.6-oer.sh b/frameworks/Kieker/bin/benchmark-disk-writer-1.6-oer.sh deleted file mode 100644 index 4c36de852264b596e44869a3a38598be1b96cd0a..0000000000000000000000000000000000000000 --- a/frameworks/Kieker/bin/benchmark-disk-writer-1.6-oer.sh +++ /dev/null @@ -1,191 +0,0 @@ -#!/bin/bash - -JAVABIN="" - -RSCRIPTDIR=r/ -BASEDIR=./ -RESULTSDIR="${BASEDIR}tmp/results-benchmark-kieker-disk-1.6-oer/" - -#SLEEPTIME=30 ## 30 -#NUM_LOOPS=10 ## 10 -#THREADS=1 ## 1 -#RECURSIONDEPTH=10 ## 10 -#TOTALCALLS=2000000 ## 2000000 -#METHODTIME=0 ## 0 - -#MOREPARAMS="--quickstart" -MOREPARAMS="${MOREPARAMS} -r kieker.Logger" - -TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEPTIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSIONDEPTH} + 50 \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} ` -echo "Experiment will take circa ${TIME} seconds." - -echo "Removing and recreating '$RESULTSDIR'" -(rm -rf ${RESULTSDIR}) && mkdir ${RESULTSDIR} -mkdir ${RESULTSDIR}stat/ - -# Clear kieker.log and initialize logging -rm -f ${BASEDIR}kieker.log -touch ${BASEDIR}kieker.log - -RAWFN="${RESULTSDIR}raw" - -JAVAARGS="-server" -JAVAARGS="${JAVAARGS} -d64" -JAVAARGS="${JAVAARGS} -Xms1G -Xmx4G" -JAVAARGS="${JAVAARGS} -verbose:gc -XX:+PrintCompilation" -#JAVAARGS="${JAVAARGS} -XX:+PrintInlining" -#JAVAARGS="${JAVAARGS} -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation" -#JAVAARGS="${JAVAARGS} -Djava.compiler=NONE" -JAR="-jar MooBench.jar" - -JAVAARGS_NOINSTR="${JAVAARGS}" -JAVAARGS_LTW="${JAVAARGS} -javaagent:${BASEDIR}lib/kieker-1.6_aspectj.jar -Dorg.aspectj.weaver.showWeaveInfo=false -Daj.weaving.verbose=false -Dorg.aspectj.weaver.loadtime.configuration=META-INF/kieker.legacy.aop.xml" -JAVAARGS_KIEKER_DEACTV="${JAVAARGS_LTW} -Dkieker.monitoring.enabled=false -Dkieker.monitoring.writer=kieker.monitoring.writer.DummyWriter" -JAVAARGS_KIEKER_NOLOGGING="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.DummyWriter" -JAVAARGS_KIEKER_LOGGING1="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.AsyncFsWriter -Dkieker.monitoring.writer.filesystem.AsyncFsWriter.storeInJavaIoTmpdir=false -Dkieker.monitoring.writer.filesystem.AsyncFsWriter.customStoragePath=${BASEDIR}tmp" -JAVAARGS_KIEKER_LOGGING2="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.AsyncBinaryFsWriter -Dkieker.monitoring.writer.filesystem.AsyncBinaryFsWriter.storeInJavaIoTmpdir=false -Dkieker.monitoring.writer.filesystem.AsyncBinaryFsWriter.customStoragePath=${BASEDIR}tmp" - -## Write configuration -uname -a >${RESULTSDIR}configuration.txt -${JAVABIN}java ${JAVAARGS} -version 2>>${RESULTSDIR}configuration.txt -echo "JAVAARGS: ${JAVAARGS}" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "Runtime: circa ${TIME} seconds" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "SLEEPTIME=${SLEEPTIME}" >>${RESULTSDIR}configuration.txt -echo "NUM_LOOPS=${NUM_LOOPS}" >>${RESULTSDIR}configuration.txt -echo "TOTALCALLS=${TOTALCALLS}" >>${RESULTSDIR}configuration.txt -echo "METHODTIME=${METHODTIME}" >>${RESULTSDIR}configuration.txt -echo "THREADS=${THREADS}" >>${RESULTSDIR}configuration.txt -echo "RECURSIONDEPTH=${RECURSIONDEPTH}" >>${RESULTSDIR}configuration.txt -sync - -## Execute Benchmark -for ((i=1;i<=${NUM_LOOPS};i+=1)); do - j=${RECURSIONDEPTH} - k=0 - echo "## Starting iteration ${i}/${NUM_LOOPS}" - echo "## Starting iteration ${i}/${NUM_LOOPS}" >>${BASEDIR}kieker.log - - # No instrumentation - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No instrumentation" - echo " # ${i}.${j}.${k} No instrumentation" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_NOINSTR} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Deactivated probe - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Deactivated probe" - echo " # ${i}.${j}.${k} Deactivated probe" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_DEACTV} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # No logging - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No logging (null writer)" - echo " # ${i}.${j}.${k} No logging (null writer)" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_NOLOGGING} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Logging 1 - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Logging 1" - echo " # ${i}.${j}.${k} Logging 1" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_LOGGING1} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - rm -rf ${BASEDIR}tmp/kieker-* - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Logging 2 - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Logging 2" - echo " # ${i}.${j}.${k} Logging 2" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_LOGGING2} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - rm -rf ${BASEDIR}tmp/kieker-* - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - -done -zip -jqr ${RESULTSDIR}stat.zip ${RESULTSDIR}stat -rm -rf ${RESULTSDIR}stat/ -mv ${BASEDIR}kieker.log ${RESULTSDIR}kieker.log -[ -f ${RESULTSDIR}hotspot-1-${RECURSIONDEPTH}-1.log ] && grep "<task " ${RESULTSDIR}hotspot-*.log >${RESULTSDIR}log.log -[ -f ${BASEDIR}errorlog.txt ] && mv ${BASEDIR}errorlog.txt ${RESULTSDIR} - -## Generate Results file -# Bars -R --vanilla --silent <<EOF -results_fn="${RAWFN}" -outtxt_fn="${RESULTSDIR}results-text.txt" -configs.loop=${NUM_LOOPS} -configs.recursion=c(${RECURSIONDEPTH}) -configs.labels=c("No Probe","Deactivated Probe","Collecting Data","Writer1","Writer2") -results.count=${TOTALCALLS} -results.skip=${TOTALCALLS}/2 -source("${RSCRIPTDIR}stats.r") -EOF - -## Clean up raw results -zip -jqr ${RESULTSDIR}results.zip ${RAWFN}* -rm -f ${RAWFN}* -[ -f ${BASEDIR}nohup.out ] && cp ${BASEDIR}nohup.out ${RESULTSDIR} -[ -f ${BASEDIR}nohup.out ] && > ${BASEDIR}nohup.out diff --git a/frameworks/Kieker/bin/benchmark-disk-writer-1.7-event.sh b/frameworks/Kieker/bin/benchmark-disk-writer-1.7-event.sh deleted file mode 100644 index 49cae2d6e0b974f2cb61db5b36af8a43acec44bc..0000000000000000000000000000000000000000 --- a/frameworks/Kieker/bin/benchmark-disk-writer-1.7-event.sh +++ /dev/null @@ -1,191 +0,0 @@ -#!/bin/bash - -JAVABIN="" - -RSCRIPTDIR=r/ -BASEDIR=./ -RESULTSDIR="${BASEDIR}tmp/results-benchmark-kieker-disk-1.7-event/" - -#SLEEPTIME=30 ## 30 -#NUM_LOOPS=10 ## 10 -#THREADS=1 ## 1 -#RECURSIONDEPTH=10 ## 10 -#TOTALCALLS=2000000 ## 2000000 -#METHODTIME=0 ## 0 - -#MOREPARAMS="--quickstart" -MOREPARAMS="${MOREPARAMS} -r kieker.Logger" - -TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEPTIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSIONDEPTH} + 50 \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} ` -echo "Experiment will take circa ${TIME} seconds." - -echo "Removing and recreating '$RESULTSDIR'" -(rm -rf ${RESULTSDIR}) && mkdir ${RESULTSDIR} -mkdir ${RESULTSDIR}stat/ - -# Clear kieker.log and initialize logging -rm -f ${BASEDIR}kieker.log -touch ${BASEDIR}kieker.log - -RAWFN="${RESULTSDIR}raw" - -JAVAARGS="-server" -JAVAARGS="${JAVAARGS} -d64" -JAVAARGS="${JAVAARGS} -Xms1G -Xmx4G" -JAVAARGS="${JAVAARGS} -verbose:gc -XX:+PrintCompilation" -#JAVAARGS="${JAVAARGS} -XX:+PrintInlining" -#JAVAARGS="${JAVAARGS} -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation" -#JAVAARGS="${JAVAARGS} -Djava.compiler=NONE" -JAR="-jar MooBench.jar" - -JAVAARGS_NOINSTR="${JAVAARGS}" -JAVAARGS_LTW="${JAVAARGS} -javaagent:${BASEDIR}lib/kieker-1.7_aspectj.jar -Dorg.aspectj.weaver.showWeaveInfo=false -Daj.weaving.verbose=false -Dorg.aspectj.weaver.loadtime.configuration=META-INF/kieker.aop.xml" -JAVAARGS_KIEKER_DEACTV="${JAVAARGS_LTW} -Dkieker.monitoring.enabled=false -Dkieker.monitoring.writer=kieker.monitoring.writer.DummyWriter" -JAVAARGS_KIEKER_NOLOGGING="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.DummyWriter" -JAVAARGS_KIEKER_LOGGING1="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.AsyncFsWriter -Dkieker.monitoring.writer.filesystem.AsyncFsWriter.storeInJavaIoTmpdir=false -Dkieker.monitoring.writer.filesystem.AsyncFsWriter.customStoragePath=${BASEDIR}tmp" -JAVAARGS_KIEKER_LOGGING2="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.AsyncBinaryFsWriter -Dkieker.monitoring.writer.filesystem.AsyncBinaryFsWriter.storeInJavaIoTmpdir=false -Dkieker.monitoring.writer.filesystem.AsyncBinaryFsWriter.customStoragePath=${BASEDIR}tmp" - -## Write configuration -uname -a >${RESULTSDIR}configuration.txt -${JAVABIN}java ${JAVAARGS} -version 2>>${RESULTSDIR}configuration.txt -echo "JAVAARGS: ${JAVAARGS}" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "Runtime: circa ${TIME} seconds" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "SLEEPTIME=${SLEEPTIME}" >>${RESULTSDIR}configuration.txt -echo "NUM_LOOPS=${NUM_LOOPS}" >>${RESULTSDIR}configuration.txt -echo "TOTALCALLS=${TOTALCALLS}" >>${RESULTSDIR}configuration.txt -echo "METHODTIME=${METHODTIME}" >>${RESULTSDIR}configuration.txt -echo "THREADS=${THREADS}" >>${RESULTSDIR}configuration.txt -echo "RECURSIONDEPTH=${RECURSIONDEPTH}" >>${RESULTSDIR}configuration.txt -sync - -## Execute Benchmark -for ((i=1;i<=${NUM_LOOPS};i+=1)); do - j=${RECURSIONDEPTH} - k=0 - echo "## Starting iteration ${i}/${NUM_LOOPS}" - echo "## Starting iteration ${i}/${NUM_LOOPS}" >>${BASEDIR}kieker.log - - # No instrumentation - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No instrumentation" - echo " # ${i}.${j}.${k} No instrumentation" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_NOINSTR} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Deactivated probe - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Deactivated probe" - echo " # ${i}.${j}.${k} Deactivated probe" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_DEACTV} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # No logging - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No logging (null writer)" - echo " # ${i}.${j}.${k} No logging (null writer)" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_NOLOGGING} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Logging 1 - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Logging 1" - echo " # ${i}.${j}.${k} Logging 1" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_LOGGING1} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - rm -rf ${BASEDIR}tmp/kieker-* - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Logging 2 - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Logging 2" - echo " # ${i}.${j}.${k} Logging 2" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_LOGGING2} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - rm -rf ${BASEDIR}tmp/kieker-* - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - -done -zip -jqr ${RESULTSDIR}stat.zip ${RESULTSDIR}stat -rm -rf ${RESULTSDIR}stat/ -mv ${BASEDIR}kieker.log ${RESULTSDIR}kieker.log -[ -f ${RESULTSDIR}hotspot-1-${RECURSIONDEPTH}-1.log ] && grep "<task " ${RESULTSDIR}hotspot-*.log >${RESULTSDIR}log.log -[ -f ${BASEDIR}errorlog.txt ] && mv ${BASEDIR}errorlog.txt ${RESULTSDIR} - -## Generate Results file -# Bars -R --vanilla --silent <<EOF -results_fn="${RAWFN}" -outtxt_fn="${RESULTSDIR}results-text.txt" -configs.loop=${NUM_LOOPS} -configs.recursion=c(${RECURSIONDEPTH}) -configs.labels=c("No Probe","Deactivated Probe","Collecting Data","Writer1","Writer2") -results.count=${TOTALCALLS} -results.skip=${TOTALCALLS}/2 -source("${RSCRIPTDIR}stats.r") -EOF - -## Clean up raw results -zip -jqr ${RESULTSDIR}results.zip ${RAWFN}* -rm -f ${RAWFN}* -[ -f ${BASEDIR}nohup.out ] && cp ${BASEDIR}nohup.out ${RESULTSDIR} -[ -f ${BASEDIR}nohup.out ] && > ${BASEDIR}nohup.out diff --git a/frameworks/Kieker/bin/benchmark-disk-writer-1.7-oer.sh b/frameworks/Kieker/bin/benchmark-disk-writer-1.7-oer.sh deleted file mode 100644 index b918a5c37f1400f934545465b7740dc645c88fc3..0000000000000000000000000000000000000000 --- a/frameworks/Kieker/bin/benchmark-disk-writer-1.7-oer.sh +++ /dev/null @@ -1,191 +0,0 @@ -#!/bin/bash - -JAVABIN="" - -RSCRIPTDIR=r/ -BASEDIR=./ -RESULTSDIR="${BASEDIR}tmp/results-benchmark-kieker-disk-1.7-oer/" - -#SLEEPTIME=30 ## 30 -#NUM_LOOPS=10 ## 10 -#THREADS=1 ## 1 -#RECURSIONDEPTH=10 ## 10 -#TOTALCALLS=2000000 ## 2000000 -#METHODTIME=0 ## 0 - -#MOREPARAMS="--quickstart" -MOREPARAMS="${MOREPARAMS} -r kieker.Logger" - -TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEPTIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSIONDEPTH} + 50 \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} ` -echo "Experiment will take circa ${TIME} seconds." - -echo "Removing and recreating '$RESULTSDIR'" -(rm -rf ${RESULTSDIR}) && mkdir ${RESULTSDIR} -mkdir ${RESULTSDIR}stat/ - -# Clear kieker.log and initialize logging -rm -f ${BASEDIR}kieker.log -touch ${BASEDIR}kieker.log - -RAWFN="${RESULTSDIR}raw" - -JAVAARGS="-server" -JAVAARGS="${JAVAARGS} -d64" -JAVAARGS="${JAVAARGS} -Xms1G -Xmx4G" -JAVAARGS="${JAVAARGS} -verbose:gc -XX:+PrintCompilation" -#JAVAARGS="${JAVAARGS} -XX:+PrintInlining" -#JAVAARGS="${JAVAARGS} -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation" -#JAVAARGS="${JAVAARGS} -Djava.compiler=NONE" -JAR="-jar MooBench.jar" - -JAVAARGS_NOINSTR="${JAVAARGS}" -JAVAARGS_LTW="${JAVAARGS} -javaagent:${BASEDIR}lib/kieker-1.7_aspectj.jar -Dorg.aspectj.weaver.showWeaveInfo=false -Daj.weaving.verbose=false -Dorg.aspectj.weaver.loadtime.configuration=META-INF/kieker.legacy.aop.xml" -JAVAARGS_KIEKER_DEACTV="${JAVAARGS_LTW} -Dkieker.monitoring.enabled=false -Dkieker.monitoring.writer=kieker.monitoring.writer.DummyWriter" -JAVAARGS_KIEKER_NOLOGGING="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.DummyWriter" -JAVAARGS_KIEKER_LOGGING1="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.AsyncFsWriter -Dkieker.monitoring.writer.filesystem.AsyncFsWriter.storeInJavaIoTmpdir=false -Dkieker.monitoring.writer.filesystem.AsyncFsWriter.customStoragePath=${BASEDIR}tmp" -JAVAARGS_KIEKER_LOGGING2="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.AsyncBinaryFsWriter -Dkieker.monitoring.writer.filesystem.AsyncBinaryFsWriter.storeInJavaIoTmpdir=false -Dkieker.monitoring.writer.filesystem.AsyncBinaryFsWriter.customStoragePath=${BASEDIR}tmp" - -## Write configuration -uname -a >${RESULTSDIR}configuration.txt -${JAVABIN}java ${JAVAARGS} -version 2>>${RESULTSDIR}configuration.txt -echo "JAVAARGS: ${JAVAARGS}" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "Runtime: circa ${TIME} seconds" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "SLEEPTIME=${SLEEPTIME}" >>${RESULTSDIR}configuration.txt -echo "NUM_LOOPS=${NUM_LOOPS}" >>${RESULTSDIR}configuration.txt -echo "TOTALCALLS=${TOTALCALLS}" >>${RESULTSDIR}configuration.txt -echo "METHODTIME=${METHODTIME}" >>${RESULTSDIR}configuration.txt -echo "THREADS=${THREADS}" >>${RESULTSDIR}configuration.txt -echo "RECURSIONDEPTH=${RECURSIONDEPTH}" >>${RESULTSDIR}configuration.txt -sync - -## Execute Benchmark -for ((i=1;i<=${NUM_LOOPS};i+=1)); do - j=${RECURSIONDEPTH} - k=0 - echo "## Starting iteration ${i}/${NUM_LOOPS}" - echo "## Starting iteration ${i}/${NUM_LOOPS}" >>${BASEDIR}kieker.log - - # No instrumentation - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No instrumentation" - echo " # ${i}.${j}.${k} No instrumentation" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_NOINSTR} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Deactivated probe - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Deactivated probe" - echo " # ${i}.${j}.${k} Deactivated probe" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_DEACTV} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # No logging - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No logging (null writer)" - echo " # ${i}.${j}.${k} No logging (null writer)" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_NOLOGGING} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Logging 1 - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Logging 1" - echo " # ${i}.${j}.${k} Logging 1" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_LOGGING1} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - rm -rf ${BASEDIR}tmp/kieker-* - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Logging 2 - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Logging 2" - echo " # ${i}.${j}.${k} Logging 2" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_LOGGING2} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - rm -rf ${BASEDIR}tmp/kieker-* - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - -done -zip -jqr ${RESULTSDIR}stat.zip ${RESULTSDIR}stat -rm -rf ${RESULTSDIR}stat/ -mv ${BASEDIR}kieker.log ${RESULTSDIR}kieker.log -[ -f ${RESULTSDIR}hotspot-1-${RECURSIONDEPTH}-1.log ] && grep "<task " ${RESULTSDIR}hotspot-*.log >${RESULTSDIR}log.log -[ -f ${BASEDIR}errorlog.txt ] && mv ${BASEDIR}errorlog.txt ${RESULTSDIR} - -## Generate Results file -# Bars -R --vanilla --silent <<EOF -results_fn="${RAWFN}" -outtxt_fn="${RESULTSDIR}results-text.txt" -configs.loop=${NUM_LOOPS} -configs.recursion=c(${RECURSIONDEPTH}) -configs.labels=c("No Probe","Deactivated Probe","Collecting Data","Writer1","Writer2") -results.count=${TOTALCALLS} -results.skip=${TOTALCALLS}/2 -source("${RSCRIPTDIR}stats.r") -EOF - -## Clean up raw results -zip -jqr ${RESULTSDIR}results.zip ${RAWFN}* -rm -f ${RAWFN}* -[ -f ${BASEDIR}nohup.out ] && cp ${BASEDIR}nohup.out ${RESULTSDIR} -[ -f ${BASEDIR}nohup.out ] && > ${BASEDIR}nohup.out diff --git a/frameworks/Kieker/bin/benchmark-disk-writer-1.8-event.sh b/frameworks/Kieker/bin/benchmark-disk-writer-1.8-event.sh deleted file mode 100644 index ef04b7967b5cdb53147877e519ae6e714996e5ae..0000000000000000000000000000000000000000 --- a/frameworks/Kieker/bin/benchmark-disk-writer-1.8-event.sh +++ /dev/null @@ -1,191 +0,0 @@ -#!/bin/bash - -JAVABIN="" - -RSCRIPTDIR=r/ -BASEDIR=./ -RESULTSDIR="${BASEDIR}tmp/results-benchmark-kieker-disk-1.8-event/" - -#SLEEPTIME=30 ## 30 -#NUM_LOOPS=10 ## 10 -#THREADS=1 ## 1 -#RECURSIONDEPTH=10 ## 10 -#TOTALCALLS=2000000 ## 2000000 -#METHODTIME=0 ## 0 - -#MOREPARAMS="--quickstart" -MOREPARAMS="${MOREPARAMS} -r kieker.Logger" - -TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEPTIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSIONDEPTH} + 50 \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} ` -echo "Experiment will take circa ${TIME} seconds." - -echo "Removing and recreating '$RESULTSDIR'" -(rm -rf ${RESULTSDIR}) && mkdir ${RESULTSDIR} -mkdir ${RESULTSDIR}stat/ - -# Clear kieker.log and initialize logging -rm -f ${BASEDIR}kieker.log -touch ${BASEDIR}kieker.log - -RAWFN="${RESULTSDIR}raw" - -JAVAARGS="-server" -JAVAARGS="${JAVAARGS} -d64" -JAVAARGS="${JAVAARGS} -Xms1G -Xmx4G" -JAVAARGS="${JAVAARGS} -verbose:gc -XX:+PrintCompilation" -#JAVAARGS="${JAVAARGS} -XX:+PrintInlining" -#JAVAARGS="${JAVAARGS} -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation" -#JAVAARGS="${JAVAARGS} -Djava.compiler=NONE" -JAR="-jar MooBench.jar" - -JAVAARGS_NOINSTR="${JAVAARGS}" -JAVAARGS_LTW="${JAVAARGS} -javaagent:${BASEDIR}lib/kieker-1.8_aspectj.jar -Dorg.aspectj.weaver.showWeaveInfo=false -Daj.weaving.verbose=false -Dorg.aspectj.weaver.loadtime.configuration=META-INF/kieker.aop.xml" -JAVAARGS_KIEKER_DEACTV="${JAVAARGS_LTW} -Dkieker.monitoring.enabled=false -Dkieker.monitoring.writer=kieker.monitoring.writer.DummyWriter" -JAVAARGS_KIEKER_NOLOGGING="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.DummyWriter" -JAVAARGS_KIEKER_LOGGING1="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.AsyncFsWriter -Dkieker.monitoring.writer.filesystem.AsyncFsWriter.customStoragePath=${BASEDIR}tmp" -JAVAARGS_KIEKER_LOGGING2="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.AsyncBinaryFsWriter -Dkieker.monitoring.writer.filesystem.AsyncBinaryFsWriter.customStoragePath=${BASEDIR}tmp" - -## Write configuration -uname -a >${RESULTSDIR}configuration.txt -${JAVABIN}java ${JAVAARGS} -version 2>>${RESULTSDIR}configuration.txt -echo "JAVAARGS: ${JAVAARGS}" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "Runtime: circa ${TIME} seconds" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "SLEEPTIME=${SLEEPTIME}" >>${RESULTSDIR}configuration.txt -echo "NUM_LOOPS=${NUM_LOOPS}" >>${RESULTSDIR}configuration.txt -echo "TOTALCALLS=${TOTALCALLS}" >>${RESULTSDIR}configuration.txt -echo "METHODTIME=${METHODTIME}" >>${RESULTSDIR}configuration.txt -echo "THREADS=${THREADS}" >>${RESULTSDIR}configuration.txt -echo "RECURSIONDEPTH=${RECURSIONDEPTH}" >>${RESULTSDIR}configuration.txt -sync - -## Execute Benchmark -for ((i=1;i<=${NUM_LOOPS};i+=1)); do - j=${RECURSIONDEPTH} - k=0 - echo "## Starting iteration ${i}/${NUM_LOOPS}" - echo "## Starting iteration ${i}/${NUM_LOOPS}" >>${BASEDIR}kieker.log - - # No instrumentation - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No instrumentation" - echo " # ${i}.${j}.${k} No instrumentation" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_NOINSTR} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Deactivated probe - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Deactivated probe" - echo " # ${i}.${j}.${k} Deactivated probe" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_DEACTV} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # No logging - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No logging (null writer)" - echo " # ${i}.${j}.${k} No logging (null writer)" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_NOLOGGING} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Logging 1 - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Logging 1" - echo " # ${i}.${j}.${k} Logging 1" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_LOGGING1} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - rm -rf ${BASEDIR}tmp/kieker-* - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Logging 2 - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Logging 2" - echo " # ${i}.${j}.${k} Logging 2" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_LOGGING2} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - rm -rf ${BASEDIR}tmp/kieker-* - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - -done -zip -jqr ${RESULTSDIR}stat.zip ${RESULTSDIR}stat -rm -rf ${RESULTSDIR}stat/ -mv ${BASEDIR}kieker.log ${RESULTSDIR}kieker.log -[ -f ${RESULTSDIR}hotspot-1-${RECURSIONDEPTH}-1.log ] && grep "<task " ${RESULTSDIR}hotspot-*.log >${RESULTSDIR}log.log -[ -f ${BASEDIR}errorlog.txt ] && mv ${BASEDIR}errorlog.txt ${RESULTSDIR} - -## Generate Results file -# Bars -R --vanilla --silent <<EOF -results_fn="${RAWFN}" -outtxt_fn="${RESULTSDIR}results-text.txt" -configs.loop=${NUM_LOOPS} -configs.recursion=c(${RECURSIONDEPTH}) -configs.labels=c("No Probe","Deactivated Probe","Collecting Data","Writer1","Writer2") -results.count=${TOTALCALLS} -results.skip=${TOTALCALLS}/2 -source("${RSCRIPTDIR}stats.r") -EOF - -## Clean up raw results -zip -jqr ${RESULTSDIR}results.zip ${RAWFN}* -rm -f ${RAWFN}* -[ -f ${BASEDIR}nohup.out ] && cp ${BASEDIR}nohup.out ${RESULTSDIR} -[ -f ${BASEDIR}nohup.out ] && > ${BASEDIR}nohup.out diff --git a/frameworks/Kieker/bin/benchmark-disk-writer-1.8-oer.sh b/frameworks/Kieker/bin/benchmark-disk-writer-1.8-oer.sh deleted file mode 100644 index 33b7dc5dc0c7e2a7c372d576969d4f6605a55100..0000000000000000000000000000000000000000 --- a/frameworks/Kieker/bin/benchmark-disk-writer-1.8-oer.sh +++ /dev/null @@ -1,191 +0,0 @@ -#!/bin/bash - -JAVABIN="" - -RSCRIPTDIR=r/ -BASEDIR=./ -RESULTSDIR="${BASEDIR}tmp/results-benchmark-kieker-disk-1.8-oer/" - -#SLEEPTIME=30 ## 30 -#NUM_LOOPS=10 ## 10 -#THREADS=1 ## 1 -#RECURSIONDEPTH=10 ## 10 -#TOTALCALLS=2000000 ## 2000000 -#METHODTIME=0 ## 0 - -#MOREPARAMS="--quickstart" -MOREPARAMS="${MOREPARAMS} -r kieker.Logger" - -TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEPTIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSIONDEPTH} + 50 \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} ` -echo "Experiment will take circa ${TIME} seconds." - -echo "Removing and recreating '$RESULTSDIR'" -(rm -rf ${RESULTSDIR}) && mkdir ${RESULTSDIR} -mkdir ${RESULTSDIR}stat/ - -# Clear kieker.log and initialize logging -rm -f ${BASEDIR}kieker.log -touch ${BASEDIR}kieker.log - -RAWFN="${RESULTSDIR}raw" - -JAVAARGS="-server" -JAVAARGS="${JAVAARGS} -d64" -JAVAARGS="${JAVAARGS} -Xms1G -Xmx4G" -JAVAARGS="${JAVAARGS} -verbose:gc -XX:+PrintCompilation" -#JAVAARGS="${JAVAARGS} -XX:+PrintInlining" -#JAVAARGS="${JAVAARGS} -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation" -#JAVAARGS="${JAVAARGS} -Djava.compiler=NONE" -JAR="-jar MooBench.jar" - -JAVAARGS_NOINSTR="${JAVAARGS}" -JAVAARGS_LTW="${JAVAARGS} -javaagent:${BASEDIR}lib/kieker-1.8_aspectj.jar -Dorg.aspectj.weaver.showWeaveInfo=false -Daj.weaving.verbose=false -Dorg.aspectj.weaver.loadtime.configuration=META-INF/kieker.legacy.aop.xml" -JAVAARGS_KIEKER_DEACTV="${JAVAARGS_LTW} -Dkieker.monitoring.enabled=false -Dkieker.monitoring.writer=kieker.monitoring.writer.DummyWriter" -JAVAARGS_KIEKER_NOLOGGING="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.DummyWriter" -JAVAARGS_KIEKER_LOGGING1="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.AsyncFsWriter -Dkieker.monitoring.writer.filesystem.AsyncFsWriter.customStoragePath=${BASEDIR}tmp" -JAVAARGS_KIEKER_LOGGING2="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.AsyncBinaryFsWriter -Dkieker.monitoring.writer.filesystem.AsyncBinaryFsWriter.customStoragePath=${BASEDIR}tmp" - -## Write configuration -uname -a >${RESULTSDIR}configuration.txt -${JAVABIN}java ${JAVAARGS} -version 2>>${RESULTSDIR}configuration.txt -echo "JAVAARGS: ${JAVAARGS}" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "Runtime: circa ${TIME} seconds" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "SLEEPTIME=${SLEEPTIME}" >>${RESULTSDIR}configuration.txt -echo "NUM_LOOPS=${NUM_LOOPS}" >>${RESULTSDIR}configuration.txt -echo "TOTALCALLS=${TOTALCALLS}" >>${RESULTSDIR}configuration.txt -echo "METHODTIME=${METHODTIME}" >>${RESULTSDIR}configuration.txt -echo "THREADS=${THREADS}" >>${RESULTSDIR}configuration.txt -echo "RECURSIONDEPTH=${RECURSIONDEPTH}" >>${RESULTSDIR}configuration.txt -sync - -## Execute Benchmark -for ((i=1;i<=${NUM_LOOPS};i+=1)); do - j=${RECURSIONDEPTH} - k=0 - echo "## Starting iteration ${i}/${NUM_LOOPS}" - echo "## Starting iteration ${i}/${NUM_LOOPS}" >>${BASEDIR}kieker.log - - # No instrumentation - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No instrumentation" - echo " # ${i}.${j}.${k} No instrumentation" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_NOINSTR} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Deactivated probe - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Deactivated probe" - echo " # ${i}.${j}.${k} Deactivated probe" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_DEACTV} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # No logging - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No logging (null writer)" - echo " # ${i}.${j}.${k} No logging (null writer)" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_NOLOGGING} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Logging 1 - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Logging 1" - echo " # ${i}.${j}.${k} Logging 1" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_LOGGING1} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - rm -rf ${BASEDIR}tmp/kieker-* - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Logging 2 - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Logging 2" - echo " # ${i}.${j}.${k} Logging 2" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_LOGGING2} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - rm -rf ${BASEDIR}tmp/kieker-* - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - -done -zip -jqr ${RESULTSDIR}stat.zip ${RESULTSDIR}stat -rm -rf ${RESULTSDIR}stat/ -mv ${BASEDIR}kieker.log ${RESULTSDIR}kieker.log -[ -f ${RESULTSDIR}hotspot-1-${RECURSIONDEPTH}-1.log ] && grep "<task " ${RESULTSDIR}hotspot-*.log >${RESULTSDIR}log.log -[ -f ${BASEDIR}errorlog.txt ] && mv ${BASEDIR}errorlog.txt ${RESULTSDIR} - -## Generate Results file -# Bars -R --vanilla --silent <<EOF -results_fn="${RAWFN}" -outtxt_fn="${RESULTSDIR}results-text.txt" -configs.loop=${NUM_LOOPS} -configs.recursion=c(${RECURSIONDEPTH}) -configs.labels=c("No Probe","Deactivated Probe","Collecting Data","Writer1","Writer2") -results.count=${TOTALCALLS} -results.skip=${TOTALCALLS}/2 -source("${RSCRIPTDIR}stats.r") -EOF - -## Clean up raw results -zip -jqr ${RESULTSDIR}results.zip ${RAWFN}* -rm -f ${RAWFN}* -[ -f ${BASEDIR}nohup.out ] && cp ${BASEDIR}nohup.out ${RESULTSDIR} -[ -f ${BASEDIR}nohup.out ] && > ${BASEDIR}nohup.out diff --git a/frameworks/Kieker/bin/benchmark-disk-writer-1.9-event.sh b/frameworks/Kieker/bin/benchmark-disk-writer-1.9-event.sh deleted file mode 100644 index 7d4e2bd17bf0b6b418231f01d99ad2a34bd57132..0000000000000000000000000000000000000000 --- a/frameworks/Kieker/bin/benchmark-disk-writer-1.9-event.sh +++ /dev/null @@ -1,191 +0,0 @@ -#!/bin/bash - -JAVABIN="" - -RSCRIPTDIR=r/ -BASEDIR=./ -RESULTSDIR="${BASEDIR}tmp/results-benchmark-kieker-disk-1.9-event/" - -#SLEEPTIME=30 ## 30 -#NUM_LOOPS=10 ## 10 -#THREADS=1 ## 1 -#RECURSIONDEPTH=10 ## 10 -#TOTALCALLS=2000000 ## 2000000 -#METHODTIME=0 ## 0 - -#MOREPARAMS="--quickstart" -MOREPARAMS="${MOREPARAMS} -r kieker.Logger" - -TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEPTIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSIONDEPTH} + 50 \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} ` -echo "Experiment will take circa ${TIME} seconds." - -echo "Removing and recreating '$RESULTSDIR'" -(rm -rf ${RESULTSDIR}) && mkdir ${RESULTSDIR} -mkdir ${RESULTSDIR}stat/ - -# Clear kieker.log and initialize logging -rm -f ${BASEDIR}kieker.log -touch ${BASEDIR}kieker.log - -RAWFN="${RESULTSDIR}raw" - -JAVAARGS="-server" -JAVAARGS="${JAVAARGS} -d64" -JAVAARGS="${JAVAARGS} -Xms1G -Xmx4G" -JAVAARGS="${JAVAARGS} -verbose:gc -XX:+PrintCompilation" -#JAVAARGS="${JAVAARGS} -XX:+PrintInlining" -#JAVAARGS="${JAVAARGS} -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation" -#JAVAARGS="${JAVAARGS} -Djava.compiler=NONE" -JAR="-jar MooBench.jar" - -JAVAARGS_NOINSTR="${JAVAARGS}" -JAVAARGS_LTW="${JAVAARGS} -javaagent:${BASEDIR}lib/kieker-1.9_aspectj.jar -Dorg.aspectj.weaver.showWeaveInfo=false -Daj.weaving.verbose=false -Dorg.aspectj.weaver.loadtime.configuration=META-INF/kieker.aop.xml" -JAVAARGS_KIEKER_DEACTV="${JAVAARGS_LTW} -Dkieker.monitoring.enabled=false -Dkieker.monitoring.writer=kieker.monitoring.writer.DummyWriter" -JAVAARGS_KIEKER_NOLOGGING="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.DummyWriter" -JAVAARGS_KIEKER_LOGGING1="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.AsyncFsWriter -Dkieker.monitoring.writer.filesystem.AsyncFsWriter.customStoragePath=${BASEDIR}tmp" -JAVAARGS_KIEKER_LOGGING2="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.AsyncBinaryFsWriter -Dkieker.monitoring.writer.filesystem.AsyncBinaryFsWriter.customStoragePath=${BASEDIR}tmp" - -## Write configuration -uname -a >${RESULTSDIR}configuration.txt -${JAVABIN}java ${JAVAARGS} -version 2>>${RESULTSDIR}configuration.txt -echo "JAVAARGS: ${JAVAARGS}" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "Runtime: circa ${TIME} seconds" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "SLEEPTIME=${SLEEPTIME}" >>${RESULTSDIR}configuration.txt -echo "NUM_LOOPS=${NUM_LOOPS}" >>${RESULTSDIR}configuration.txt -echo "TOTALCALLS=${TOTALCALLS}" >>${RESULTSDIR}configuration.txt -echo "METHODTIME=${METHODTIME}" >>${RESULTSDIR}configuration.txt -echo "THREADS=${THREADS}" >>${RESULTSDIR}configuration.txt -echo "RECURSIONDEPTH=${RECURSIONDEPTH}" >>${RESULTSDIR}configuration.txt -sync - -## Execute Benchmark -for ((i=1;i<=${NUM_LOOPS};i+=1)); do - j=${RECURSIONDEPTH} - k=0 - echo "## Starting iteration ${i}/${NUM_LOOPS}" - echo "## Starting iteration ${i}/${NUM_LOOPS}" >>${BASEDIR}kieker.log - - # No instrumentation - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No instrumentation" - echo " # ${i}.${j}.${k} No instrumentation" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_NOINSTR} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Deactivated probe - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Deactivated probe" - echo " # ${i}.${j}.${k} Deactivated probe" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_DEACTV} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # No logging - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No logging (null writer)" - echo " # ${i}.${j}.${k} No logging (null writer)" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_NOLOGGING} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Logging 1 - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Logging 1" - echo " # ${i}.${j}.${k} Logging 1" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_LOGGING1} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - rm -rf ${BASEDIR}tmp/kieker-* - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Logging 2 - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Logging 2" - echo " # ${i}.${j}.${k} Logging 2" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_LOGGING2} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - rm -rf ${BASEDIR}tmp/kieker-* - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - -done -zip -jqr ${RESULTSDIR}stat.zip ${RESULTSDIR}stat -rm -rf ${RESULTSDIR}stat/ -mv ${BASEDIR}kieker.log ${RESULTSDIR}kieker.log -[ -f ${RESULTSDIR}hotspot-1-${RECURSIONDEPTH}-1.log ] && grep "<task " ${RESULTSDIR}hotspot-*.log >${RESULTSDIR}log.log -[ -f ${BASEDIR}errorlog.txt ] && mv ${BASEDIR}errorlog.txt ${RESULTSDIR} - -## Generate Results file -# Bars -R --vanilla --silent <<EOF -results_fn="${RAWFN}" -outtxt_fn="${RESULTSDIR}results-text.txt" -configs.loop=${NUM_LOOPS} -configs.recursion=c(${RECURSIONDEPTH}) -configs.labels=c("No Probe","Deactivated Probe","Collecting Data","Writer1","Writer2") -results.count=${TOTALCALLS} -results.skip=${TOTALCALLS}/2 -source("${RSCRIPTDIR}stats.r") -EOF - -## Clean up raw results -zip -jqr ${RESULTSDIR}results.zip ${RAWFN}* -rm -f ${RAWFN}* -[ -f ${BASEDIR}nohup.out ] && cp ${BASEDIR}nohup.out ${RESULTSDIR} -[ -f ${BASEDIR}nohup.out ] && > ${BASEDIR}nohup.out diff --git a/frameworks/Kieker/bin/benchmark-disk-writer-1.9-oer.sh b/frameworks/Kieker/bin/benchmark-disk-writer-1.9-oer.sh deleted file mode 100644 index 7f199dac026b03a47c0dba61bcc75cc6013bafde..0000000000000000000000000000000000000000 --- a/frameworks/Kieker/bin/benchmark-disk-writer-1.9-oer.sh +++ /dev/null @@ -1,191 +0,0 @@ -#!/bin/bash - -JAVABIN="" - -RSCRIPTDIR=r/ -BASEDIR=./ -RESULTSDIR="${BASEDIR}tmp/results-benchmark-kieker-disk-1.9-oer/" - -#SLEEPTIME=30 ## 30 -#NUM_LOOPS=10 ## 10 -#THREADS=1 ## 1 -#RECURSIONDEPTH=10 ## 10 -#TOTALCALLS=2000000 ## 2000000 -#METHODTIME=0 ## 0 - -#MOREPARAMS="--quickstart" -MOREPARAMS="${MOREPARAMS} -r kieker.Logger" - -TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEPTIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSIONDEPTH} + 50 \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} ` -echo "Experiment will take circa ${TIME} seconds." - -echo "Removing and recreating '$RESULTSDIR'" -(rm -rf ${RESULTSDIR}) && mkdir ${RESULTSDIR} -mkdir ${RESULTSDIR}stat/ - -# Clear kieker.log and initialize logging -rm -f ${BASEDIR}kieker.log -touch ${BASEDIR}kieker.log - -RAWFN="${RESULTSDIR}raw" - -JAVAARGS="-server" -JAVAARGS="${JAVAARGS} -d64" -JAVAARGS="${JAVAARGS} -Xms1G -Xmx4G" -JAVAARGS="${JAVAARGS} -verbose:gc -XX:+PrintCompilation" -#JAVAARGS="${JAVAARGS} -XX:+PrintInlining" -#JAVAARGS="${JAVAARGS} -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation" -#JAVAARGS="${JAVAARGS} -Djava.compiler=NONE" -JAR="-jar MooBench.jar" - -JAVAARGS_NOINSTR="${JAVAARGS}" -JAVAARGS_LTW="${JAVAARGS} -javaagent:${BASEDIR}lib/kieker-1.9_aspectj.jar -Dorg.aspectj.weaver.showWeaveInfo=false -Daj.weaving.verbose=false -Dorg.aspectj.weaver.loadtime.configuration=META-INF/kieker.legacy.aop.xml" -JAVAARGS_KIEKER_DEACTV="${JAVAARGS_LTW} -Dkieker.monitoring.enabled=false -Dkieker.monitoring.writer=kieker.monitoring.writer.DummyWriter" -JAVAARGS_KIEKER_NOLOGGING="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.DummyWriter" -JAVAARGS_KIEKER_LOGGING1="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.AsyncFsWriter -Dkieker.monitoring.writer.filesystem.AsyncFsWriter.customStoragePath=${BASEDIR}tmp" -JAVAARGS_KIEKER_LOGGING2="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.AsyncBinaryFsWriter -Dkieker.monitoring.writer.filesystem.AsyncBinaryFsWriter.customStoragePath=${BASEDIR}tmp" - -## Write configuration -uname -a >${RESULTSDIR}configuration.txt -${JAVABIN}java ${JAVAARGS} -version 2>>${RESULTSDIR}configuration.txt -echo "JAVAARGS: ${JAVAARGS}" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "Runtime: circa ${TIME} seconds" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "SLEEPTIME=${SLEEPTIME}" >>${RESULTSDIR}configuration.txt -echo "NUM_LOOPS=${NUM_LOOPS}" >>${RESULTSDIR}configuration.txt -echo "TOTALCALLS=${TOTALCALLS}" >>${RESULTSDIR}configuration.txt -echo "METHODTIME=${METHODTIME}" >>${RESULTSDIR}configuration.txt -echo "THREADS=${THREADS}" >>${RESULTSDIR}configuration.txt -echo "RECURSIONDEPTH=${RECURSIONDEPTH}" >>${RESULTSDIR}configuration.txt -sync - -## Execute Benchmark -for ((i=1;i<=${NUM_LOOPS};i+=1)); do - j=${RECURSIONDEPTH} - k=0 - echo "## Starting iteration ${i}/${NUM_LOOPS}" - echo "## Starting iteration ${i}/${NUM_LOOPS}" >>${BASEDIR}kieker.log - - # No instrumentation - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No instrumentation" - echo " # ${i}.${j}.${k} No instrumentation" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_NOINSTR} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Deactivated probe - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Deactivated probe" - echo " # ${i}.${j}.${k} Deactivated probe" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_DEACTV} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # No logging - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No logging (null writer)" - echo " # ${i}.${j}.${k} No logging (null writer)" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_NOLOGGING} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Logging 1 - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Logging 1" - echo " # ${i}.${j}.${k} Logging 1" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_LOGGING1} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - rm -rf ${BASEDIR}tmp/kieker-* - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Logging 2 - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Logging 2" - echo " # ${i}.${j}.${k} Logging 2" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_LOGGING2} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - rm -rf ${BASEDIR}tmp/kieker-* - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - -done -zip -jqr ${RESULTSDIR}stat.zip ${RESULTSDIR}stat -rm -rf ${RESULTSDIR}stat/ -mv ${BASEDIR}kieker.log ${RESULTSDIR}kieker.log -[ -f ${RESULTSDIR}hotspot-1-${RECURSIONDEPTH}-1.log ] && grep "<task " ${RESULTSDIR}hotspot-*.log >${RESULTSDIR}log.log -[ -f ${BASEDIR}errorlog.txt ] && mv ${BASEDIR}errorlog.txt ${RESULTSDIR} - -## Generate Results file -# Bars -R --vanilla --silent <<EOF -results_fn="${RAWFN}" -outtxt_fn="${RESULTSDIR}results-text.txt" -configs.loop=${NUM_LOOPS} -configs.recursion=c(${RECURSIONDEPTH}) -configs.labels=c("No Probe","Deactivated Probe","Collecting Data","Writer1","Writer2") -results.count=${TOTALCALLS} -results.skip=${TOTALCALLS}/2 -source("${RSCRIPTDIR}stats.r") -EOF - -## Clean up raw results -zip -jqr ${RESULTSDIR}results.zip ${RAWFN}* -rm -f ${RAWFN}* -[ -f ${BASEDIR}nohup.out ] && cp ${BASEDIR}nohup.out ${RESULTSDIR} -[ -f ${BASEDIR}nohup.out ] && > ${BASEDIR}nohup.out diff --git a/frameworks/Kieker/bin/benchmark.sh b/frameworks/Kieker/bin/benchmark.sh deleted file mode 100644 index dca93e4ac076124ed5bd4c336d706db7e6e5a45b..0000000000000000000000000000000000000000 --- a/frameworks/Kieker/bin/benchmark.sh +++ /dev/null @@ -1,196 +0,0 @@ -#!/bin/bash - -JAVABIN="" - -RSCRIPTDIR=r/ -BASEDIR=./ -RESULTSDIR="${BASEDIR}tmp/results-kieker/" - -SLEEPTIME=30 ## 30 -NUM_LOOPS=10 ## 10 -THREADS=1 ## 1 -RECURSIONDEPTH=10 ## 10 -TOTALCALLS=2000000 ## 2000000 -METHODTIME=500000 ## 500000 - -#MOREPARAMS="--quickstart" -MOREPARAMS="${MOREPARAMS} -r kieker.Logger" - -TIME=`expr ${METHODTIME} \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} + ${SLEEPTIME} \* 4 \* ${NUM_LOOPS} \* ${RECURSIONDEPTH} + 50 \* ${TOTALCALLS} / 1000000000 \* 4 \* ${RECURSIONDEPTH} \* ${NUM_LOOPS} ` -echo "Experiment will take circa ${TIME} seconds." - -echo "Removing and recreating '$RESULTSDIR'" -(rm -rf ${RESULTSDIR}) && mkdir ${RESULTSDIR} -mkdir ${RESULTSDIR}stat/ - -# Clear kieker.log and initialize logging -rm -f ${BASEDIR}kieker.log -touch ${BASEDIR}kieker.log - -RAWFN="${RESULTSDIR}raw" - -JAVAARGS="-server" -JAVAARGS="${JAVAARGS} -d64" -JAVAARGS="${JAVAARGS} -Xms1G -Xmx4G" -JAVAARGS="${JAVAARGS} -verbose:gc -XX:+PrintCompilation" -#JAVAARGS="${JAVAARGS} -XX:+PrintInlining" -#JAVAARGS="${JAVAARGS} -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation" -#JAVAARGS="${JAVAARGS} -Djava.compiler=NONE" -JAR="-jar MooBench.jar" - -JAVAARGS_NOINSTR="${JAVAARGS}" -JAVAARGS_LTW="${JAVAARGS} -javaagent:${BASEDIR}lib/kieker-1.9_aspectj.jar -Dorg.aspectj.weaver.showWeaveInfo=false -Daj.weaving.verbose=false -Dorg.aspectj.weaver.loadtime.configuration=META-INF/kieker.aop.xml" -JAVAARGS_KIEKER_DEACTV="${JAVAARGS_LTW} -Dkieker.monitoring.enabled=false -Dkieker.monitoring.writer=kieker.monitoring.writer.DummyWriter" -JAVAARGS_KIEKER_NOLOGGING="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.DummyWriter" -JAVAARGS_KIEKER_LOGGING="${JAVAARGS_LTW} -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.AsyncFsWriter -Dkieker.monitoring.writer.filesystem.AsyncFsWriter.customStoragePath=${BASEDIR}tmp" - -## Write configuration -uname -a >${RESULTSDIR}configuration.txt -${JAVABIN}java ${JAVAARGS} -version 2>>${RESULTSDIR}configuration.txt -echo "JAVAARGS: ${JAVAARGS}" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "Runtime: circa ${TIME} seconds" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "SLEEPTIME=${SLEEPTIME}" >>${RESULTSDIR}configuration.txt -echo "NUM_LOOPS=${NUM_LOOPS}" >>${RESULTSDIR}configuration.txt -echo "TOTALCALLS=${TOTALCALLS}" >>${RESULTSDIR}configuration.txt -echo "METHODTIME=${METHODTIME}" >>${RESULTSDIR}configuration.txt -echo "THREADS=${THREADS}" >>${RESULTSDIR}configuration.txt -echo "RECURSIONDEPTH=${RECURSIONDEPTH}" >>${RESULTSDIR}configuration.txt -sync - -## Execute Benchmark -for ((i=1;i<=${NUM_LOOPS};i+=1)); do - j=${RECURSIONDEPTH} - k=0 - echo "## Starting iteration ${i}/${NUM_LOOPS}" - echo "## Starting iteration ${i}/${NUM_LOOPS}" >>${BASEDIR}kieker.log - - # No instrumentation - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No instrumentation" - echo " # ${i}.${j}.${k} No instrumentation" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_NOINSTR} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Deactivated probe - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Deactivated probe" - echo " # ${i}.${j}.${k} Deactivated probe" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_DEACTV} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # No logging - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} No logging (null writer)" - echo " # ${i}.${j}.${k} No logging (null writer)" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_NOLOGGING} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - - # Logging - k=`expr ${k} + 1` - echo " # ${i}.${j}.${k} Logging" - echo " # ${i}.${j}.${k} Logging" >>${BASEDIR}kieker.log - sar -o ${RESULTSDIR}stat/sar-${i}-${j}-${k}.data 5 2000 1>/dev/null 2>&1 & - ${JAVABIN}java ${JAVAARGS_KIEKER_LOGGING} ${JAR} \ - --output-filename ${RAWFN}-${i}-${j}-${k}.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${j} \ - ${MOREPARAMS} - kill %sar - rm -rf ${BASEDIR}tmp/kieker-* - [ -f ${BASEDIR}hotspot.log ] && mv ${BASEDIR}hotspot.log ${RESULTSDIR}hotspot-${i}-${j}-${k}.log - echo >>${BASEDIR}kieker.log - echo >>${BASEDIR}kieker.log - sync - sleep ${SLEEPTIME} - -done -zip -jqr ${RESULTSDIR}stat.zip ${RESULTSDIR}stat -rm -rf ${RESULTSDIR}stat/ -mv ${BASEDIR}kieker.log ${RESULTSDIR}kieker.log -[ -f ${RESULTSDIR}hotspot-1-${RECURSIONDEPTH}-1.log ] && grep "<task " ${RESULTSDIR}hotspot-*.log >${RESULTSDIR}log.log -[ -f ${BASEDIR}errorlog.txt ] && mv ${BASEDIR}errorlog.txt ${RESULTSDIR} - -## Generate Results file -# Timeseries -R --vanilla --silent <<EOF -results_fn="${RAWFN}" -output_fn="${RESULTSDIR}results-timeseries.pdf" -configs.loop=${NUM_LOOPS} -configs.recursion=c(${RECURSIONDEPTH}) -configs.labels=c("No Probe","Deactivated Probe","Collecting Data","Writer") -configs.colors=c("black","red","blue","green") -results.count=${TOTALCALLS} -tsconf.min=(${METHODTIME}/1000) -tsconf.max=(${METHODTIME}/1000)+200 -source("${RSCRIPTDIR}timeseries.r") -EOF -# Timeseries-Average -R --vanilla --silent <<EOF -results_fn="${RAWFN}" -output_fn="${RESULTSDIR}results-timeseries-average.pdf" -configs.loop=${NUM_LOOPS} -configs.recursion=c(${RECURSIONDEPTH}) -configs.labels=c("No Probe","Deactivated Probe","Collecting Data","Writer") -configs.colors=c("black","red","blue","green") -results.count=${TOTALCALLS} -tsconf.min=(${METHODTIME}/1000) -tsconf.max=(${METHODTIME}/1000)+200 -source("${RSCRIPTDIR}timeseries-average.r") -EOF -# Bars -R --vanilla --silent <<EOF -results_fn="${RAWFN}" -outtxt_fn="${RESULTSDIR}results-text.txt" -configs.loop=${NUM_LOOPS} -configs.recursion=c(${RECURSIONDEPTH}) -configs.labels=c("No Probe","Deactivated Probe","Collecting Data","Writer") -results.count=${TOTALCALLS} -results.skip=${TOTALCALLS}/2 -source("${RSCRIPTDIR}stats.r") -EOF - -## Clean up raw results -zip -jqr ${RESULTSDIR}results.zip ${RAWFN}* -rm -f ${RAWFN}* -[ -f ${BASEDIR}nohup.out ] && cp ${BASEDIR}nohup.out ${RESULTSDIR} -[ -f ${BASEDIR}nohup.out ] && > ${BASEDIR}nohup.out diff --git a/frameworks/Kieker/bin/meta-monitoring.sh b/frameworks/Kieker/bin/meta-monitoring.sh deleted file mode 100644 index 75f097f7ce5ecc5d3a487aadeeafe327f8068d33..0000000000000000000000000000000000000000 --- a/frameworks/Kieker/bin/meta-monitoring.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/bash - -JAVABIN="" - -BASEDIR=./ -RESULTSDIR="${BASEDIR}results/" - -THREADS=1 ## 1 -RECURSIONDEPTH=10 ## 10 -TOTALCALLS=20000 ## 20000 -METHODTIME=0 ## 0 - -#MOREPARAMS="--quickstart" -MOREPARAMS="${MOREPARAMS} -r kieker.Logger -a mooBench.monitoredApplication.MonitoredClassManualInstrumentation" - -echo "Removing and recreating '$RESULTSDIR'" -(rm -rf ${RESULTSDIR}) && mkdir ${RESULTSDIR} - -JAVAARGS="-server" -JAVAARGS="${JAVAARGS} -d64" -JAVAARGS="${JAVAARGS} -Xms1G -Xmx4G" -#JAVAARGS="${JAVAARGS} -verbose:gc -XX:+PrintCompilation" -#JAVAARGS="${JAVAARGS} -XX:+PrintInlining" -#JAVAARGS="${JAVAARGS} -XX:+UnlockDiagnosticVMOptions -XX:+LogCompilation" -#JAVAARGS="${JAVAARGS} -Djava.compiler=NONE" -JAR="-jar MooBench.jar" -JAVAAGENT="-javaagent:lib/kicker-1.10_aspectj.jar" - -JAVAARGS="${JAVAARGS} -Dkieker.monitoring.writer.filesystem.AsyncFsWriter.customStoragePath=${RESULTSDIR}" -JAVAARGS="${JAVAARGS} -Dkicker.monitoring.writer.filesystem.AsyncBinaryFsWriter.customStoragePath=${RESULTSDIR}" -JAVAARGS="${JAVAARGS} -Dkicker.monitoring.debug=true -Dkicker.monitoring.skipDefaultAOPConfiguration=true" - -## Write configuration -uname -a >${RESULTSDIR}configuration.txt -${JAVABIN}java ${JAVAARGS} -version 2>>${RESULTSDIR}configuration.txt -echo "JAVAARGS: ${JAVAARGS}" >>${RESULTSDIR}configuration.txt -echo "" >>${RESULTSDIR}configuration.txt -echo "TOTALCALLS=${TOTALCALLS}" >>${RESULTSDIR}configuration.txt -echo "METHODTIME=${METHODTIME}" >>${RESULTSDIR}configuration.txt -echo "THREADS=${THREADS}" >>${RESULTSDIR}configuration.txt -echo "RECURSIONDEPTH=${RECURSIONDEPTH}" >>${RESULTSDIR}configuration.txt -sync - -${JAVABIN}java ${JAVAARGS} ${JAVAAGENT} ${JAR} \ - --output-filename ${RESULTSDIR}raw.csv \ - --totalcalls ${TOTALCALLS} \ - --methodtime ${METHODTIME} \ - --totalthreads ${THREADS} \ - --recursiondepth ${RECURSIONDEPTH} \ - ${MOREPARAMS} -sync -mv ${BASEDIR}kieker.log ${RESULTSDIR}kieker.log - -[ -f ${BASEDIR}nohup.out ] && cp ${BASEDIR}nohup.out ${RESULTSDIR} -zip -qr ${BASEDIR}results.zip ${RESULTSDIR}* -[ -f ${BASEDIR}nohup.out ] && > ${BASEDIR}nohup.out diff --git a/frameworks/Kieker/bin/run-benchmark-all.sh b/frameworks/Kieker/bin/run-benchmark-all.sh deleted file mode 100644 index f5070004d487a076d7a81ea2d2091dbaf78eca60..0000000000000000000000000000000000000000 --- a/frameworks/Kieker/bin/run-benchmark-all.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash - -SLEEPTIME=30 ## 30 -NUM_LOOPS=10 ## 10 -THREADS=1 ## 1 -RECURSIONDEPTH=10 ## 10 -TOTALCALLS=2000000 ## 2000000 -METHODTIME=0 ## 0 -MOREPARAMS="" -#MOREPARAMS="${MOREPARAMS} --quickstart" - -source bin/benchmark-disk-writer-1.9-oer.sh -source bin/benchmark-disk-writer-1.8-oer.sh -source bin/benchmark-disk-writer-1.7-oer.sh -source bin/benchmark-disk-writer-1.6-oer.sh -source bin/benchmark-disk-writer-1.5-oer.sh -source bin/benchmark-disk-writer-1.4-oer.sh -source bin/benchmark-disk-writer-1.3-oer.sh -source bin/benchmark-disk-writer-1.2-oer.sh -source bin/benchmark-disk-writer-1.1-oer.sh -source bin/benchmark-disk-writer-1.0-oer.sh -source bin/benchmark-disk-writer-0.95a-oer.sh -source bin/benchmark-disk-writer-0.91-oer.sh - -source bin/benchmark-disk-writer-1.9-event.sh -source bin/benchmark-disk-writer-1.8-event.sh -source bin/benchmark-disk-writer-1.7-event.sh -source bin/benchmark-disk-writer-1.6-event.sh -source bin/benchmark-disk-writer-1.5-event.sh diff --git a/frameworks/Kieker/build.gradle b/frameworks/Kieker/build.gradle deleted file mode 100644 index 7f69424a058ee66b36b436a0cd7e67f050d33ab1..0000000000000000000000000000000000000000 --- a/frameworks/Kieker/build.gradle +++ /dev/null @@ -1,12 +0,0 @@ -plugins { - id 'java' - id 'application' -} - -dependencies { - implementation project(':moobench') - implementation 'net.kieker-monitoring:kieker:1.14' - implementation 'net.sourceforge.teetime:teetime:3.0' - implementation 'org.slf4j:slf4j-api:1.7.+' - implementation 'ch.qos.logback:logback-classic:1.2.3' -} diff --git a/frameworks/Kieker/lib/kicker-1.10_aspectj.jar b/frameworks/Kieker/lib/kicker-1.10_aspectj.jar deleted file mode 100644 index 218ecd9ceadf42016532dc802cf4774fcab8224e..0000000000000000000000000000000000000000 Binary files a/frameworks/Kieker/lib/kicker-1.10_aspectj.jar and /dev/null differ diff --git a/frameworks/Kieker/lib/kieker-0.91_aspectj.jar b/frameworks/Kieker/lib/kieker-0.91_aspectj.jar deleted file mode 100644 index 1017478c8ab8881bfcb6d87f0894ca8db4ab4dc1..0000000000000000000000000000000000000000 Binary files a/frameworks/Kieker/lib/kieker-0.91_aspectj.jar and /dev/null differ diff --git a/frameworks/Kieker/lib/kieker-0.95a_aspectj.jar b/frameworks/Kieker/lib/kieker-0.95a_aspectj.jar deleted file mode 100644 index b9efce8f5a97bbbf3c205d2e9b2f75ad16e6ec04..0000000000000000000000000000000000000000 Binary files a/frameworks/Kieker/lib/kieker-0.95a_aspectj.jar and /dev/null differ diff --git a/frameworks/Kieker/lib/kieker-1.0_aspectj.jar b/frameworks/Kieker/lib/kieker-1.0_aspectj.jar deleted file mode 100644 index 541f536521ed54eca05bb9f8bb87669770f5f37e..0000000000000000000000000000000000000000 Binary files a/frameworks/Kieker/lib/kieker-1.0_aspectj.jar and /dev/null differ diff --git a/frameworks/Kieker/lib/kieker-1.10-SNAPSHOT_aspectj.jar b/frameworks/Kieker/lib/kieker-1.10-SNAPSHOT_aspectj.jar deleted file mode 100644 index 3125e57773335ff0393339a1a2c6278200f86454..0000000000000000000000000000000000000000 Binary files a/frameworks/Kieker/lib/kieker-1.10-SNAPSHOT_aspectj.jar and /dev/null differ diff --git a/frameworks/Kieker/lib/kieker-1.11-SNAPSHOT_aspectj.jar b/frameworks/Kieker/lib/kieker-1.11-SNAPSHOT_aspectj.jar deleted file mode 100644 index 192820099cfdc80ec00bd52fda1ce177c33fb6a2..0000000000000000000000000000000000000000 Binary files a/frameworks/Kieker/lib/kieker-1.11-SNAPSHOT_aspectj.jar and /dev/null differ diff --git a/frameworks/Kieker/lib/kieker-1.1_aspectj.jar b/frameworks/Kieker/lib/kieker-1.1_aspectj.jar deleted file mode 100644 index 2775b4d7757289ba74768008b017720d6a3e10a1..0000000000000000000000000000000000000000 Binary files a/frameworks/Kieker/lib/kieker-1.1_aspectj.jar and /dev/null differ diff --git a/frameworks/Kieker/lib/kieker-1.2_aspectj.jar b/frameworks/Kieker/lib/kieker-1.2_aspectj.jar deleted file mode 100644 index 5e1b1c16a7b6216993810f161de2169b08aa836e..0000000000000000000000000000000000000000 Binary files a/frameworks/Kieker/lib/kieker-1.2_aspectj.jar and /dev/null differ diff --git a/frameworks/Kieker/lib/kieker-1.3_aspectj.jar b/frameworks/Kieker/lib/kieker-1.3_aspectj.jar deleted file mode 100644 index 0de47616de2c866207c6442a26ac48f65b4f01a6..0000000000000000000000000000000000000000 Binary files a/frameworks/Kieker/lib/kieker-1.3_aspectj.jar and /dev/null differ diff --git a/frameworks/Kieker/lib/kieker-1.4_aspectj.jar b/frameworks/Kieker/lib/kieker-1.4_aspectj.jar deleted file mode 100644 index 9b8cb0554477b0c2b1b4c137db2531ace52127b3..0000000000000000000000000000000000000000 Binary files a/frameworks/Kieker/lib/kieker-1.4_aspectj.jar and /dev/null differ diff --git a/frameworks/Kieker/lib/kieker-1.5_aspectj.jar b/frameworks/Kieker/lib/kieker-1.5_aspectj.jar deleted file mode 100644 index dc2454b9533d5a2e52d3ce581a491b1625c2cc22..0000000000000000000000000000000000000000 Binary files a/frameworks/Kieker/lib/kieker-1.5_aspectj.jar and /dev/null differ diff --git a/frameworks/Kieker/lib/kieker-1.6_aspectj.jar b/frameworks/Kieker/lib/kieker-1.6_aspectj.jar deleted file mode 100644 index f9dad2fb01f51e65f5e5b72a537cfae7091b152c..0000000000000000000000000000000000000000 Binary files a/frameworks/Kieker/lib/kieker-1.6_aspectj.jar and /dev/null differ diff --git a/frameworks/Kieker/lib/kieker-1.7_aspectj.jar b/frameworks/Kieker/lib/kieker-1.7_aspectj.jar deleted file mode 100644 index 7ba44c7315fe9bd2384172513e05cd690abc1052..0000000000000000000000000000000000000000 Binary files a/frameworks/Kieker/lib/kieker-1.7_aspectj.jar and /dev/null differ diff --git a/frameworks/Kieker/lib/kieker-1.8_aspectj.jar b/frameworks/Kieker/lib/kieker-1.8_aspectj.jar deleted file mode 100644 index a27a7ea9e6fb911b1781140448626e802d37c134..0000000000000000000000000000000000000000 Binary files a/frameworks/Kieker/lib/kieker-1.8_aspectj.jar and /dev/null differ diff --git a/frameworks/Kieker/lib/kieker-1.9_aspectj.jar b/frameworks/Kieker/lib/kieker-1.9_aspectj.jar deleted file mode 100644 index 1eccaeeec73b0737030ce3ba782e3f72209f7eba..0000000000000000000000000000000000000000 Binary files a/frameworks/Kieker/lib/kieker-1.9_aspectj.jar and /dev/null differ diff --git a/frameworks/Kieker/lib/kieker.LICENSE b/frameworks/Kieker/lib/kieker.LICENSE deleted file mode 100644 index d645695673349e3947e8e5ae42332d0ac3164cd7..0000000000000000000000000000000000000000 --- a/frameworks/Kieker/lib/kieker.LICENSE +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/frameworks/Kieker/scripts/benchmark.sh b/frameworks/Kieker/scripts/benchmark.sh index 95533377527ba88bebda3e5f74d9b06e828327f2..990204ce333b1b2815f7a0671c70bcbd8da84ff0 100755 --- a/frameworks/Kieker/scripts/benchmark.sh +++ b/frameworks/Kieker/scripts/benchmark.sh @@ -48,7 +48,7 @@ information "----------------------------------" information "Running benchmark..." information "----------------------------------" -FIXED_PARAMETERS="--quickstart -a moobench.monitoredApplication.MonitoredClassSimple" +FIXED_PARAMETERS="--quickstart -a moobench.application.MonitoredClassSimple" TIME=`expr ${METHOD_TIME} \* ${TOTAL_NUM_OF_CALLS} / 1000000000 \* 4 \* ${RECURSION_DEPTH} \* ${NUM_OF_LOOPS} + ${SLEEP_TIME} \* 4 \* ${NUM_OF_LOOPS} \* ${RECURSION_DEPTH} + 50 \* ${TOTAL_NUM_OF_CALLS} / 1000000000 \* 4 \* ${RECURSION_DEPTH} \* ${NUM_OF_LOOPS} ` information "Experiment will take circa ${TIME} seconds." @@ -96,10 +96,6 @@ WRITER_CONFIG[3]="-Dkieker.monitoring.enabled=true -Dkieker.monitoring.writer=ki TITLE[4]="Logging (Generic Bin)" WRITER_CONFIG[4]="-Dkieker.monitoring.enabled=true -Dkieker.monitoring.writer=kieker.monitoring.writer.filesystem.FileWriter -Dkieker.monitoring.writer.filesystem.FileWriter.logStreamHandler=kieker.monitoring.writer.filesystem.BinaryLogStreamHandler -Dkieker.monitoring.writer.filesystem.FileWriter.bufferSize=8192 -Dkieker.monitoring.writer.filesystem.FileWriter.customStoragePath=${DATA_DIR}/" -TITLE[5]="Logging (Dual TCP)" -WRITER_CONFIG[5]="-Dkieker.monitoring.writer=kieker.monitoring.writer.tcp.DualSocketTcpWriter -Dkieker.monitoring.writer.tcp.DualSocketTcpWriter.port1=2345 -Dkieker.monitoring.writer.tcp.DualSocketTcpWriter.port2=2346" -RECEIVER[5]="${BASE_DIR}/collector-2.0/bin/collector -p 2345 -p 2346" - TITLE[6]="Logging (Single TCP)" WRITER_CONFIG[6]="-Dkieker.monitoring.writer=kieker.monitoring.writer.tcp.SingleSocketTcpWriter -Dkieker.monitoring.writer.tcp.SingleSocketTcpWriter.port=2345" RECEIVER[6]="${BASE_DIR}/collector-2.0/bin/collector -p 2345" diff --git a/frameworks/Kieker/src/mooBench/monitoredApplication/MonitoredClassManualInstrumentation.java b/frameworks/Kieker/src/main/java/moobench/application/MonitoredClassManualInstrumentation.java similarity index 93% rename from frameworks/Kieker/src/mooBench/monitoredApplication/MonitoredClassManualInstrumentation.java rename to frameworks/Kieker/src/main/java/moobench/application/MonitoredClassManualInstrumentation.java index db631234d2daf6cb9fe7b64eec308b6dfabced30..41baec7e5fce6a46b96fc34bd681a7a7da5d7688 100644 --- a/frameworks/Kieker/src/mooBench/monitoredApplication/MonitoredClassManualInstrumentation.java +++ b/frameworks/Kieker/src/main/java/moobench/application/MonitoredClassManualInstrumentation.java @@ -14,7 +14,7 @@ * limitations under the License. ***************************************************************************/ -package mooBench.monitoredApplication; +package moobench.application; import java.lang.management.ManagementFactory; import java.lang.management.ThreadMXBean; @@ -32,8 +32,8 @@ import kieker.monitoring.timer.ITimeSource; */ public final class MonitoredClassManualInstrumentation implements MonitoredClass { - private static final String SIGNATURE = "public final long mooBench.monitoredApplication.MonitoredClass.monitoredMethod(long, int)"; - private static final String CLAZZ = "mooBench.monitoredApplication.MonitoredClass"; + private static final String SIGNATURE = "public final long moobench.application.MonitoredClass.monitoredMethod(long, int)"; + private static final String CLAZZ = "moobench.application.MonitoredClass"; private static final IMonitoringController CTRLINST = MonitoringController.getInstance(); private static final ITimeSource TIME = CTRLINST.getTimeSource(); diff --git a/settings.gradle b/settings.gradle index e7d9c6a9329df79ec9dfcff95b81c868b680f3e5..36e1432126dd0841ad19c2577a8454e0b446f16a 100644 --- a/settings.gradle +++ b/settings.gradle @@ -9,8 +9,12 @@ rootProject.name = 'moobench' -include 'moobench' +include 'benchmark' include 'frameworks:inspectIT' -include 'frameworks:Kieker' +include 'frameworks:Kieker:application' +include 'frameworks:Kieker:experiment-0' +include 'frameworks:Kieker:experiment-1' +include 'frameworks:Kieker:experiment-2' +include 'frameworks:Kieker:experiment-3' include 'frameworks:SPASSmeter'