Linux如何檢視硬碟型號和快取

2021-06-18 18:01:09 字數 2112 閱讀 7458

hdparm  -i /dev/sda1

/dev/sda1:

model=wdc wd10eacs-00zjb0 

(硬碟型號)                   , fwrev=01.01b01, serialno=     wd-wcasj0976997

config=

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=, tdma=

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=

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=, tdma=

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效能就不怎麼樣了。

linux下檢視硬碟型號等資訊

可以用smartctl,hdparm等命令來查詢。在日誌中顯示硬碟有壞扇區 tail var log messages dmesg中也有錯誤資訊 dmesg 對硬碟做一下健康檢查 smartctl h dev hda 檢測通過,保險起見還是準備換硬碟。檢視下當前硬碟的型號,可以得到硬碟介面為sata...

Linux系統如何檢視CPU型號等

root subvm less proc cpuinfo grep model model 4 model name intel r xeon tm cpu 3.00ghz model 4 model name intel r xeon tm cpu 3.00ghz 檢視系統核心版本 uname a...

Linux下檢視CPU型號,記憶體大小,硬碟空間命令

1 檢視cpu 1.1 檢視cpu個數 cat proc cpuinfo grep physical id uniq wc l uniq命令 刪除重複行 wc l命令 統計行數 1.2 檢視cpu核數 cat proc cpuinfo grep cpu cores uniq cpu cores 4 ...