Memory load gen:
free -m
CPU load gen:
stress --cpu 2 --timeout 60
or
dd if=/dev/urandom | bzip2 -9 >> /dev/null
Disk IO generation:
dd if=/dev/urandom of=abc.ibd bs=1M count=1024 # Creates 1GB file
dd if=/dev/urandom of=abc.ibd bs=1M count=100 # Creates 100MB file
Reference:
Compile Stress for Centos 7
wget http://pkgs.fedoraproject.org/repo/pkgs/stress/stress-1.0.4.tar.gz/a607afa695a511765b40993a64c6e2f4/stress-1.0.4.tar.gz
tar zxvf stress-1.0.4.tar.gz
cd stress-1.0.4
./configure
make
sudo make install