Skip to content

Instantly share code, notes, and snippets.

@vpack
Last active August 29, 2015 14:24
Show Gist options
  • Save vpack/1f1e1c2bfe3d86a6f99c to your computer and use it in GitHub Desktop.
Save vpack/1f1e1c2bfe3d86a6f99c to your computer and use it in GitHub Desktop.
Load Generation

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment