Last active
October 9, 2020 13:53
CPU: stress test for throttling, GPU test
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
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