Linux如何查看硬盘型号和缓存

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性能就不怎么样了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值