Skip to content

Instantly share code, notes, and snippets.

@24HOURSMEDIA
Last active July 29, 2023 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 24HOURSMEDIA/e5ab545591ea1272b339651332471701 to your computer and use it in GitHub Desktop.
Save 24HOURSMEDIA/e5ab545591ea1272b339651332471701 to your computer and use it in GitHub Desktop.
test disk speed with had-arm
!/bin/bash
sudo apt-get install hdparm
# get disk names with
sudo lsblk -l
# test speed without cache
sudo hdparm -Tt --direct /dev/sda1
# with cache
sudo hdparm -Tt /dev/sda1
# output
# dev/sda1:
# Timing O_DIRECT cached reads: 62 MB in 2.05 seconds = 30.19 MB/sec
# Timing O_DIRECT disk reads: 94 MB in 3.04 seconds = 30.90 MB/sec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment