Skip to content

Instantly share code, notes, and snippets.

@fanyix
Created December 28, 2019 01:42
Show Gist options
  • Save fanyix/7a8989104f8c14b14fb6cfac3dd957a6 to your computer and use it in GitHub Desktop.
Save fanyix/7a8989104f8c14b14fb6cfac3dd957a6 to your computer and use it in GitHub Desktop.
Check read/write speed of disk
# check the reading speed
sudo hdparm -tT /dev/sda2
# check write speed
mkdir ~/tmp
dd if=/dev/zero of=~/tmp/output oflag=direct bs=1k count=100k; rm -f ~/tmp/output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment