比較少用linux 指令,記一下好了,免得又要再去Google…
uname -a 列出系統版本
hdparm -t /dev/mdX
或
hdparm -t /dev/sdX
[~] # hdparm -tT /dev/md2
/dev/md2:
Timing cached reads: 29732 MB in 2.00 seconds = 14878.89 MB/sec
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate ioctl for device
Timing buffered disk reads: 846 MB in 3.00 seconds = 281.76 MB/sec
HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate ioctl for device
顯示硬碟讀取速度,可先使用cat /proc/mdstat 查看一下磁碟的分配狀況後,再進行測試