hdparm -i /dev/sda1
/dev/sda1:
Model=WDC WD10EACS-00ZJB0 (硬盘型号) , FwRev=01.01B01, SerialNo= WD-WCASJ0976997
Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=50
BuffType=unknown, BuffSize=16384kB(硬盘缓存), MaxMultSect=16, MultSect=?16?
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=268435455
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2
AdvancedPM=no www.ctohome.com WriteCache=enabled
Drive conforms to: Unspecified: ATA/ATAPI-1 ATA/ATAPI-2 ATA/ATAPI-3 ATA/ATAPI-4 ATA/ATAPI-5 ATA/ATAPI-6 ATA/ATAPI-7
* signifies the current active mode
[root@host96 www.ctohome.com]# hdparm -i /dev/sda1
/dev/sda1:
Model=Hitachi HDT721010SLA360 , FwRev=ST6OA31B, SerialNo= STF604MR2DG61P
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=56
BuffType=DualPortCache, BuffSize=15001kB, MaxMultSect=16, MultSect=?16?
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=268435455
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2
AdvancedPM=yes: disabled (255) WriteCache=enabled
Drive conforms to: unknown: ATA/ATAPI-2 ATA/ATAPI-3 ATA/ATAPI-4 ATA/ATAPI-5 ATA/ATAPI-6 ATA/ATAPI-7
* signifies the current active mode
linux/centos系统的服务器如何用hdparm测试硬盘性能,测试硬盘速度?
[root@host88 www.ctohome.com]# hdparm -tT /dev/sda8
/dev/sda8:
Timing cached reads: 8512 MB in 2.00 seconds = 4262.60 MB/sec
Timing buffered disk reads: 222 MB in 3.02 seconds = 73.58 MB/sec
[root@host96 www.ctohome.com]# hdparm -tT /dev/sda2
/dev/sda2:
Timing cached reads: 7684 MB in 2.00 seconds = 3848.10 MB/sec
Timing buffered disk reads: 116 MB in 3.15 seconds = 36.82 MB/sec
注意,hdparm -tT 必须要在机器空闲的时候测试才准确,机器繁忙的时候是测不准的。如果有小于20MB/Sec的结果,那么磁盘的IO性能就不怎么样了。