Skip to content

Instantly share code, notes, and snippets.

@pcolazurdo
Last active September 10, 2018 10:11
Show Gist options
  • Save pcolazurdo/4c38a5ff42123bbbec1abbe1d443bc24 to your computer and use it in GitHub Desktop.
Save pcolazurdo/4c38a5ff42123bbbec1abbe1d443bc24 to your computer and use it in GitHub Desktop.
Stress Test a machine - some tactics
  • Compile stress-ng
  • Run the following
sudo stress-ng --vm 30 --vm-bytes 29G --timeout 600s
sudo stress-ng --vm 2 --vm-bytes 2G --mmap 2 --mmap-bytes 2G --page-in
sudo fio  --name /mnt/disk1/fio_test_file --direct=1 --rw=randwrite --bs=512k --size=100m --numjobs=96 \
          --time_based --runtime=180 --group_reporting --norandommap 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment