Last active
July 29, 2023 12:07
-
-
Save 24HOURSMEDIA/e5ab545591ea1272b339651332471701 to your computer and use it in GitHub Desktop.
test disk speed with had-arm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!/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