Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7116b17add | ||
|
|
775fa7bd86 | ||
|
|
e559c146b7 | ||
|
|
69bea0be4f | ||
|
|
b296fdb2da | ||
|
|
bf87653e77 | ||
|
|
8e6ea348cc |
@@ -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
|
||||
|
||||
@@ -1,5 +1,19 @@
|
||||
# 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 .
|
||||
Requirements: fio, gnuplot
|
||||
|
||||
== Documentation ==
|
||||
|
||||
https://raspithek.de/software/tools/pistress-ein-ersatz-fuer-stressberry/
|
||||
|
||||
== 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
|
||||
|
||||
Executable
+4
@@ -0,0 +1,4 @@
|
||||
# !/usr/bin/bash
|
||||
|
||||
|
||||
for f in ${1}*.svg; do rsvg-convert "$f" -o "${f%.svg}.png"; done
|
||||
+1
-2
@@ -21,11 +21,10 @@ format_temp() {
|
||||
echo "${ftemp}"
|
||||
}
|
||||
|
||||
ZONE=/sys/class/thermal/thermal_zone0/temp
|
||||
|
||||
#retrieve the cpu's temperature from /sys/class/thermal/thermal_zone0/temp
|
||||
measure_temp() {
|
||||
cpu_temp=$(cat ${ZONE})
|
||||
cpu_temp=$(cat ${THERMAL_ZONE})
|
||||
|
||||
formatted_temp=$(format_temp "${cpu_temp}")
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
VERSION="1.00"
|
||||
#! /usr/bin/env bash
|
||||
VERSION="1.04"
|
||||
usage() {
|
||||
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
|
||||
|
||||
|
||||
+17
-1
@@ -1,4 +1,20 @@
|
||||
export FIO_NUMJOBS=$(nproc)
|
||||
#! /usr/bin/env bash
|
||||
|
||||
if [ -f ~/.pistressrc ]; then
|
||||
. ~/.pistressrc
|
||||
else
|
||||
export PISTRESS_HOME=/home/pi/git/pistress
|
||||
|
||||
export FIO_NUMJOBS=$(nproc)
|
||||
export FIO_RUNNING_TIME=3600
|
||||
export THERMAL_ZONE=/sys/class/thermal/thermal_zone0/temp
|
||||
fi
|
||||
|
||||
if [ -z "${1}" ]; then
|
||||
echo "usage run-cpu-stress.sh <logfile>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
measure_temp.sh > ${1} &
|
||||
TPID=$!
|
||||
fio ${PISTRESS_HOME}/fio/fio_cpu
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
ioengine=cpuio
|
||||
cpuload=100
|
||||
cpuchunks=100000
|
||||
runtime=3600
|
||||
runtime=${FIO_RUNNING_TIME}
|
||||
time_based
|
||||
group_reporting
|
||||
numjobs=${FIO_NUMJOBS}
|
||||
|
||||
Reference in New Issue
Block a user