-
-
Save Prototype-X/5bddae43279db4fbfe87e81934608b2b to your computer and use it in GitHub Desktop.
Simple raspberry pi stress testing script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while : | |
do | |
echo "$(date) @ $(hostname)" | |
echo "Performing new stress testing cycle..." | |
stress --cpu 20 --io 20 --vm 6 --vm-bytes 25M --timeout 120s | |
cpu=$(</sys/class/thermal/thermal_zone0/temp) | |
echo "-------------------------------------------" | |
echo "GPU => $(/opt/vc/bin/vcgencmd measure_temp)" | |
echo "CPU => $((cpu/1000))'C" | |
echo "Timeout..." | |
sleep 3 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment