3 Commits

Author SHA1 Message Date
olli e559c146b7 run-cpu-stress.sh fails when no logfilename is passed. 2026-07-04 11:16:30 +02:00
olli 69bea0be4f PISTRESS_HOME is only set if not set 2026-06-05 09:26:12 +02:00
raspithek b296fdb2da updated README.md 2026-06-04 19:49:24 +00:00
3 changed files with 20 additions and 3 deletions
+2
View File
@@ -1,4 +1,6 @@
if [ -z ${PISTRESS_HOME} ]; then
export PISTRESS_HOME=/home/pi/git/pistress export PISTRESS_HOME=/home/pi/git/pistress
fi
export THERMAL_ZONE=/sys/class/thermal/thermal_zone0/temp export THERMAL_ZONE=/sys/class/thermal/thermal_zone0/temp
export FIO_NUMJOBS=$(nproc) export FIO_NUMJOBS=$(nproc)
+12 -2
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
+5
View File
@@ -10,6 +10,11 @@ else
export THERMAL_ZONE=/sys/class/thermal/thermal_zone0/temp export THERMAL_ZONE=/sys/class/thermal/thermal_zone0/temp
fi fi
if [ -z "${1}" ]; then
echo "usage run-cpu-stress.sh <logfile>"
exit 1
fi
measure_temp.sh > ${1} & measure_temp.sh > ${1} &
TPID=$! TPID=$!
fio ${PISTRESS_HOME}/fio/fio_cpu fio ${PISTRESS_HOME}/fio/fio_cpu