Compare commits

..

3 Commits

Author SHA1 Message Date
fb803c13f0 added usage to measure_temp.sh
run-cpu-stress.sh uses the  job file in fio.
2026-01-24 06:20:50 +01:00
b8c8a18db3 added script for mesuring core temperature and generating log file. 2026-01-24 05:54:27 +01:00
87540bf04b Script for stressing and measure temperature added. 2026-01-24 05:52:36 +01:00
2 changed files with 31 additions and 0 deletions

26
bin/measure_temp.sh Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/bash
START=$(date +%s)
usage() {
local name=${0##*/}
cat <<-EOF
Usage: ${name} [-h || --help]
measures the pu core temperature an echoes with a squenence number to stdout.
EOF
}
if [[ "$1" == "-h" || "$1" == "--help" ]]; then
usage
exit 0
fi
while true; do
NOW=$(date +%s)
TS=$((NOW - START))
TEMP=$(vcgencmd measure_temp | sed 's/[^0-9.]//g')
echo "$TS $TEMP"
sleep 1
done

5
bin/run-cpu-stress.sh Executable file
View File

@@ -0,0 +1,5 @@
temp_data.sh > temp.log &
TPID=$!
fio fio/fio_cpu
kill $TPID