Linux 硬碟簡單的測速

# hdparm -tT /dev/sda

/dev/sda:
 Timing cached reads:   29992 MB in  1.99 seconds = 15061.91 MB/sec
 Timing buffered disk reads:  438 MB in  3.01 seconds = 145.69 MB/sec

這個是 SAS 15K 的速度

# hdparm -tT /dev/sda

/dev/sda:
 Timing cached reads:   20900 MB in  2.00 seconds = 10464.95 MB/sec
 Timing buffered disk reads:  896 MB in  3.00 seconds = 298.28 MB/sec

這個是 SAS 15K 兩顆做 RAID 0 的速度

# hdparm -tT /dev/md127

/dev/md127:
 Timing cached reads:   22506 MB in  2.00 seconds = 11269.49 MB/sec
 Timing buffered disk reads:  718 MB in  3.00 seconds = 239.31 MB/sec

這是 SATA 7.2K 兩顆做 RAID 0 的速度

# hdparm -tT /dev/sda

/dev/sda:
 Timing cached reads:   9284 MB in  2.00 seconds = 4647.05 MB/sec
 Timing buffered disk reads:  476 MB in  3.01 seconds = 158.34 MB/sec

這是 SSD 硬碟. 意外發現. 我好像沒有驅動好. T_T

#  hdparm -I /dev/sda | grep SATA
Transport: Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5
           *    SATA-I signaling speed (1.5Gb/s)
           *    SATA-II signaling speed (3.0Gb/s)

理論上 SATA II 可以達到 3.0Gb/s 也就是 384 MB/s 怪哉~

# hdparm -tT /dev/sdb

/dev/sdb:
 Timing cached reads:   11688 MB in  2.00 seconds = 5852.55 MB/sec
 Timing buffered disk reads:  1564 MB in  3.00 seconds = 521.01 MB/sec

這是磁碟陣列. XD

# hdparm -tT /dev/sda

/dev/sda:
 Timing cached reads:   25788 MB in  1.99 seconds = 12943.70 MB/sec
 Timing buffered disk reads:  376 MB in  3.00 seconds = 125.22 MB/sec

另外一個比較舊的磁碟陣列

# dd if=/dev/zero of=test bs=64k count=64k conv=fdatasync

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.