Make a temperature note:
vcgencmd measure_temp
To create a stress test at first sysbench tools must be installed:
sudo apt-get install sysbench -y
Now the
test-heatsink.sh script:
#!/bin/bash
clear
for f in {1..10}
do
vcgencmd measure_temp
sysbench --test=cpu --cpu-max-prime=20000 --num-threads=4 run >/dev/null 2>&1
done
vcgencmd measure_temp
To install it globally enter super user mode:
sudo su
Paste this content:
cat > /usr/bin/heatsink-test <<EOF
#!/bin/bash
clear
for f in {1..10}
do
vcgencmd measure_temp
sysbench --test=cpu --cpu-max-prime=20000 --num-threads=4 run >/dev/null 2>&1
done
vcgencmd measure_temp
EOF
chmod 755 /usr/bin/heatsink-test
No comments:
Post a Comment