Skip to content

Instantly share code, notes, and snippets.

@kirillstrelkov
Last active October 9, 2020 13:53
CPU: stress test for throttling, GPU test
cd /tmp
# Install packages:
sudo apt update
sudo apt install -y stress-ng glmark2
echo "CPU throttling check:"
export MAX_TIME=5m
stress-ng --cpu 0 --verify --verbose --timeout $MAX_TIME &
timeout $MAX_TIME bash -c 'while true; do cat /proc/cpuinfo | grep "cpu MHz"; sleep 1; done &> /tmp/1.csv'
sed -i -E 's/.+:\s*//g' /tmp/1.csv
echo "NOTE: Open file in LibreOffice and plot a chart to check throtteling"
echo "GPU test:"
glmark2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment