Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e559c146b7 | |||
| 69bea0be4f | |||
| b296fdb2da | |||
| bf87653e77 |
+3
-1
@@ -1,4 +1,6 @@
|
|||||||
export PISTRESS_HOME=/home/pi/git/pistress
|
if [ -z ${PISTRESS_HOME} ]; then
|
||||||
|
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)
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
if [ -f ~/.pistressrc ]; then
|
if [ -f ~/.pistressrc ]; then
|
||||||
. ~/.pistressrc
|
. ~/.pistressrc
|
||||||
else
|
else
|
||||||
@@ -8,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
|
||||||
|
|||||||
Reference in New Issue
Block a user