Objective
Understand how to perform stress test and memory test in a server.
Prerequisites
None.
Steps
Step 1: Perform Stress Test with StressLinux
First, download the StressLinux ISO file, available here. Then, boot the ISO into the server.
In the first menu, select StressLinux.
Then, login as user stress with password stress, or as root with password stresslinux.
Afterwards, select English Keyboard and press Enter on every pop-up, as well as key in “y”/”yes” on every prompt.
Then, use the following command to create a new “window” interface.
screen
To exit from the screen interface, press Ctrl A + D.
To return to the screen interface, use the following command.
screen -r
Low Stress Test
For a low stress test, use the following command.
stress -c 2 -i 2 -m 2 --vm-bytes 1024M -t 600s
Medium Stress Test
For a medium stress test, use the following command.
stress -c 4 -i 4 -m 4 --vm-bytes 2048M -t 600s
High Stress Test
For a high stress test, use the following command.
stress -c 8 -i 8 -m 8 --vm-bytes 4096M -t 600s
Extra Testing Options
stress --cpu 8 --io 4 --vm 2 --hdd 4 --timeout 30s –verbose
stress --cpu 2000 --timeout 30s --verbose
stress --vm 2 --vm-bytes 6G --timeout 30s --verbose
stress --io 8 --timeout 2m
stress --hdd 1 --timeout 5m
Step 2: Perform Memory Test (MemTest)
First, download the MemTest ISO here.
Then, open the server console and boot the ISO.
The MemTest process is plug and play – it automatically runs once the ISO/pen drive is loaded.