4 Commits
1.02 ... 1.05

Author SHA1 Message Date
69bea0be4f PISTRESS_HOME is only set if not set 2026-06-05 09:26:12 +02:00
b296fdb2da updated README.md 2026-06-04 19:49:24 +00:00
bf87653e77 updated Version 2026-06-04 19:39:37 +00:00
8e6ea348cc configure default values in ~/pistressrc if exists 2026-06-04 11:38:50 +00:00
6 changed files with 37 additions and 9 deletions

8
.pistressrc Normal file
View File

@@ -0,0 +1,8 @@
if [ -z ${PISTRESS_HOME} ]; then
export PISTRESS_HOME=/home/pi/git/pistress
fi
export THERMAL_ZONE=/sys/class/thermal/thermal_zone0/temp
export FIO_NUMJOBS=$(nproc)
export FIO_RUNNING_TIME=3600

View File

@@ -1,5 +1,15 @@
# pistress # pistress
A bunch of scripts for measuring the core temperature of the Raspberry Pi 5 CPU under full load A bunch of scripts for measuring the core temperature of any single board computer's CPU under full load
and plotting graphs . and plotting graphs .
Requirements: fio, gnuplot
== Installation ==
sudo apt install -y fio gnuplot
cp .pistressrc ~
Edit ~/.pistressrc and canfigure values for your needs.
== Licence ==
Licenced under MIT Licence See file LICENCE

View File

@@ -21,11 +21,10 @@ format_temp() {
echo "${ftemp}" echo "${ftemp}"
} }
ZONE=/sys/class/thermal/thermal_zone0/temp
#retrieve the cpu's temperature from /sys/class/thermal/thermal_zone0/temp #retrieve the cpu's temperature from /sys/class/thermal/thermal_zone0/temp
measure_temp() { measure_temp() {
cpu_temp=$(cat ${ZONE}) cpu_temp=$(cat ${THERMAL_ZONE})
formatted_temp=$(format_temp "${cpu_temp}") formatted_temp=$(format_temp "${cpu_temp}")

View File

@@ -1,5 +1,5 @@
#!/bin/bash #! /usr/bin/env bash
VERSION="1.00" VERSION="1.04"
usage() { usage() {
local name=${0##*/} local name=${0##*/}
@@ -121,6 +121,6 @@ plot LOGFILE using 1:2 with lines lc rgb COLOR lw 2 title 'CPU-Temperatur';
" "
echo "Plot erzeugt: $OUTFILE" echo "Plot generated: ${OUTFILE}"
exit 0 exit 0

View File

@@ -1,4 +1,15 @@
#! /usr/bin/env bash
if [ -f ~/.pistressrc ]; then
. ~/.pistressrc
else
export PISTRESS_HOME=/home/pi/git/pistress
export FIO_NUMJOBS=$(nproc) export FIO_NUMJOBS=$(nproc)
export FIO_RUNNING_TIME=3600
export THERMAL_ZONE=/sys/class/thermal/thermal_zone0/temp
fi
measure_temp.sh > ${1} & measure_temp.sh > ${1} &
TPID=$! TPID=$!
fio ${PISTRESS_HOME}/fio/fio_cpu fio ${PISTRESS_HOME}/fio/fio_cpu

View File

@@ -2,7 +2,7 @@
ioengine=cpuio ioengine=cpuio
cpuload=100 cpuload=100
cpuchunks=100000 cpuchunks=100000
runtime=3600 runtime=${FIO_RUNNING_TIME}
time_based time_based
group_reporting group_reporting
numjobs=${FIO_NUMJOBS} numjobs=${FIO_NUMJOBS}