Skip to content

Instantly share code, notes, and snippets.

@Prototype-X
Forked from sharipov-ru/rpi_stress.sh
Last active December 1, 2019 18:47
Show Gist options
  • Save Prototype-X/5bddae43279db4fbfe87e81934608b2b to your computer and use it in GitHub Desktop.
Save Prototype-X/5bddae43279db4fbfe87e81934608b2b to your computer and use it in GitHub Desktop.
Simple raspberry pi stress testing script
#!/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