diff --git a/bin/plot_cpu_temp.sh b/bin/plot_cpu_temp.sh new file mode 100755 index 0000000..49b157a --- /dev/null +++ b/bin/plot_cpu_temp.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +# Eingabeparameter +LOGFILE="${1}" +OUTFILE="${2}" +TITLE="${3}" + +if [ -z "$LOGFILE" ] || [ -z "$OUTFILE" ] || [ -z "$TITLE" ]; then + echo "Usage: ${0} " + exit 1 +fi + +gnuplot <<EOF +set terminal pngcairo size 1600,900 +set output "$OUTFILE" + +set title "$TITLE" +set xlabel "Zeit (s)" +set ylabel "Temperatur (°C)" +set grid +set key top left + +# Linie rot, Dicke 2 +plot "$LOGFILE" using 1:2 with lines lc rgb "red" lw 2 title "CPU-Temperatur" +EOF + +echo "Plot erzeugt: $OUTFILE" + diff --git a/bin/plot_cpu_temp_compare.sh b/bin/plot_cpu_temp_compare.sh new file mode 100755 index 0000000..99bb286 --- /dev/null +++ b/bin/plot_cpu_temp_compare.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +ACTIVE_LOG="${1}" +ICE_LOG="${2}" +OUTFILE="${3}" +TITLE="${4} + +if [ -z "${ACTIVE_LOG}" ] || [ -z "${ICE_LOG}" ] || [ -z "${OUTFILE}" ]; then + echo "Usage: $0 <temp_active.log> <temp_ice.log> <output.png>" + exit 1 +fi + +gnuplot <<EOF +set terminal pngcairo size 1800,800 +set output "${OUTFILE}" + +set multiplot layout 1,2 title "${TITLE}" + +set xlabel "Zeit (s)" +set ylabel "Temperatur (°C)" +set grid +set key top left + +# Einheitliche Y-Achse für fairen Vergleich +set yrange [30:90] + +# Plot 1: Active Cooler +set title "Active Cooler" +plot "$I{ACTIVE_LOG}" using 1:2 with lines lc rgb "red" lw 2 title "CPU-Temperatur" + +# Plot 2: Ice Tower Cooler +set title "Ice Tower Cooler 5" +plot "${ICE_LOG}" using 1:2 with lines lc rgb "blue" lw 2 title "CPU-Temperatur" + +unset multiplot +EOF + +echo "Vergleichsplot erzeugt: ${OUTFILE}" +exit 0 diff --git a/fio/fio_cpu b/fio/fio_cpu new file mode 100644 index 0000000..df4d92a --- /dev/null +++ b/fio/fio_cpu @@ -0,0 +1,11 @@ +[global] +ioengine=cpuio +cpuload=100 +cpuchunks=100000 +runtime=3600 +time_based +group_reporting +numjobs=4 + +[cpu-stress] +