Skip to content

Instantly share code, notes, and snippets.

@dbathgate
Last active January 29, 2017 19:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dbathgate/66e1af6c8d4c6ba6ee4e2030f73d882f to your computer and use it in GitHub Desktop.
Save dbathgate/66e1af6c8d4c6ba6ee4e2030f73d882f to your computer and use it in GitHub Desktop.
Disk Speed Tests
# Writes
nohup dd if=/dev/zero of=/disk1/file.bin bs=5G count=1 oflag=direct </dev/null > disk1.out &
nohup dd if=/dev/zero of=/disk2/file.bin bs=5G count=1 oflag=direct </dev/null > disk2.out &
#Reads
sync ; echo 3 > /proc/sys/vm/drop_caches
nohup dd if=/disk1/file.bin of=/dev/null bs=8k </dev/null > disk1_read.out &
nohup dd if=/disk2/file.bin of=/dev/null bs=8k </dev/null > disk2_read.out &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment