

CPU load test
openssl speed -multi $(cat /proc/cpuinfo | grep processor | wc -l) |
openssl speed -multi $(cat /proc/cpuinfo | grep processor | wc -l)

CPU and RAM stress test
sudo apt-get install stress |
sudo apt-get install stress
stress --vm 32 --vm-bytes 12800M |
stress --vm 32 --vm-bytes 12800M

RAID test – data and speed

Stress RAID 5 storage
stress --io 10 --hdd 10 --timeout 30s --verbose |
stress --io 10 --hdd 10 --timeout 30s --verbose

RAID – read and write speed real-time
sudo apt-get install iotop |
sudo apt-get install iotop

Write speed
dd if=/dev/zero of=./largefile bs=1M count=1024 |
dd if=/dev/zero of=./largefile bs=1M count=1024

Read speed
Run the following command to clear the memory cache
sudo sh -c "sync && echo 3 > /proc/sys/vm/drop_caches" |
sudo sh -c "sync && echo 3 > /proc/sys/vm/drop_caches"
Now read the file which was created in write test:
dd if=./largefile of=/dev/null bs=4k |
dd if=./largefile of=/dev/null bs=4k
