Eu testo a integridade do meu sistema aplicando um teste de estresse de CPU usando o programa stress
em um shell de script. Aqui está o script e sua saída:
xubuntu@xubuntu:~$ cat bin/test_stress.sh
echo "=============== Starting stress test ===================="
uptime
sudo stress --cpu 4 --io 3 --timeout 2m &
while (true)
do
sleep 5
uptime
done
xubuntu@xubuntu:~$ bin/test_stress.sh
=============== Starting stress test ====================
21:52:37 up 25 min, 4 users, load average: 0.02, 0.20, 0.71
stress: info: [7384] dispatching hogs: 4 cpu, 3 io, 0 vm, 0 hdd
21:52:42 up 25 min, 4 users, load average: 0.34, 0.27, 0.73
21:52:47 up 25 min, 4 users, load average: 0.87, 0.38, 0.76
21:52:52 up 25 min, 4 users, load average: 1.36, 0.49, 0.80
21:52:57 up 25 min, 4 users, load average: 1.82, 0.60, 0.83
21:53:02 up 25 min, 4 users, load average: 2.23, 0.71, 0.86
21:53:07 up 25 min, 4 users, load average: 2.61, 0.81, 0.90
21:53:12 up 25 min, 4 users, load average: 2.96, 0.91, 0.93
21:53:17 up 25 min, 4 users, load average: 3.29, 1.01, 0.96
21:53:22 up 25 min, 4 users, load average: 3.59, 1.11, 1.00
21:53:27 up 25 min, 4 users, load average: 3.86, 1.21, 1.03
21:53:32 up 26 min, 4 users, load average: 4.11, 1.31, 1.06
21:53:37 up 26 min, 4 users, load average: 4.34, 1.40, 1.09
21:53:42 up 26 min, 4 users, load average: 4.56, 1.50, 1.12
21:53:47 up 26 min, 4 users, load average: 4.75, 1.59, 1.16
21:53:53 up 26 min, 4 users, load average: 4.93, 1.68, 1.19
21:53:58 up 26 min, 4 users, load average: 5.10, 1.77, 1.22
21:54:03 up 26 min, 4 users, load average: 5.25, 1.85, 1.25
21:54:08 up 26 min, 4 users, load average: 5.39, 1.94, 1.28
O computador aquece depois de executar 90 segundos do teste de estresse e, em seguida, desliga.
Eu tentei o mesmo teste em outro computador por 5 minutos e ele não desliga.
Quanto tempo o computador deve demorar antes de aquecer e desligar durante um teste de estresse?