|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的小伙伴们!安装hdparm:yuminstallhdparm
显现硬盘的相干设置
[root@cnscn~]#hdparm/dev/sda
/dev/sda:
IO_support=0(default16-bit)
readonly=0(off)
readahead=256(on)
geometry=19929[柱面数]/255[磁头数]/63[扇区数],sectors=320173056[总扇区数],start=0[肇端扇区数]
.显现硬盘的柱面、磁头、扇区数
[root@cnscn~]#hdparm-g/dev/sda
/dev/sda:
geometry=19929[柱面数]/255[磁头数]/63[扇区数],sectors=320173056[总扇区数],start=0[肇端扇区数]
.评价硬盘的读取效力
[root@cnscn~]#hdparm-t/dev/sda
/dev/sda:
Timingbuffereddiskreads:166MBin3.03seconds=54.85MB/sec
[root@cnscn~]#hdparm-t/dev/sda
/dev/sda:
Timingbuffereddiskreads:160MBin3.01seconds=53.11MB/sec
[root@cnscn~]#hdparm-t/dev/sda
/dev/sda:
Timingbuffereddiskreads:166MBin3.00seconds=55.31MB/sec
.评价硬盘快取的读取效力
[root@cnscn~]#hdparm-T/dev/sda
/dev/sda:
Timingcachedreads:3784MBin2.00seconds=1894.60MB/sec
[root@cnscn~]#hdparm-T/dev/sda
/dev/sda:
Timingcachedreads:3816MBin2.00seconds=1909.06MB/sec
[root@cnscn~]#hdparm-T/dev/sda
/dev/sda:
Timingcachedreads:3728MBin2.00seconds=1866.29MB/sec
.检测IDE硬盘的电源办理形式
[root@cnscn~]#hdparm-C/dev/sda
/dev/sda:
drivestateis:standby[省电形式]
.显现IDE硬盘的内定硬件规格
[root@cnscn~]#hdparm-i/dev/sda
.间接检测硬盘的硬件规格
[root@cnscn~]#hdparm-i/dev/sda
/dev/sda:
ATAdevice,withnon-removablemedia
ModelNumber:Maxtor6B160M0
SerialNumber:B404PTJH
FirmwareRevision:BANC1BM0
Standards:
Supported:7654
Likelyused:7
Configuration:
Logicalmaxcurrent
cylinders1638316383
heads1616
sectors/track6363
C
CHScurrentaddressablesectors:16514064
LBAuseraddressablesectors:268435455
LBA48useraddressablesectors:320173056
devicesizewithM=1024*1024:156334MBytes
devicesizewithM=1000*1000:163928MBytes(163GB)
Capabilities:
LBA,IORDY(canbedisabled)
Queuedepth:32
Standbytimervalues:spec’dbyStandard,nodevicespecificminimum
R/Wmultiplesectortransfer:Max=16Current=16
Advancedpowermanagementlevel:unknownsetting(0×0000)
Recommendedacousticmanagementvalue:192,currentvalue:254
DMA:mdma0mdma1mdma2udma0udma1udma2udma3udma4udma5*udma6
Cycletime:min=120nsrecommended=120ns
PIO:pio0pio1pio2pio3pio4
Cycletime:noflowcontrol=120nsIORDYflowcontrol=120ns
Commands/features:
EnabledSupported:
*NOPcmd
*READBUFFERcmd
*WRITEBUFFERcmd
*HostProtectedAreafeatureset
*Look-ahead
*Writecache
*PowerManagementfeatureset
SecurityModefeatureset
*SMARTfeatureset
*FLUSHCACHEEXTcommand
*MandatoryFLUSHCACHEcommand
*DeviceConfigurationOverlayfeatureset
*48-bitAddressfeatureset
*AutomaticAcousticManagementfeatureset
SETMAXsecurityextension
AdvancedPowerManagementfeatureset
*DOWNLOADMICROCODEcmd
*GeneralPurposeLoggingfeatureset
*SMARTself-test
*SMARTerrorlogging
Security:
Masterpasswordrevisioncode=65534
supported
notenabled
notlocked
notfrozen
notexpired:securitycount
notsupported:enhancederase
Checksum:correct
.检测并设置IDE硬盘的32位I/O形式
检测
[root@cnscn~]#hdparm-c/dev/sda
/dev/sda:
IO_support=0(default16-bit)[默许16位I/O]
设置
[root@cnscn~]#hdparm-c1/dev/sda
.检测并设置IDE硬盘的DMA形式
[root@cnscn~]#hdparm-d/dev/sda
/dev/sda:
…
[root@cnscn~]#hdparm-d1/dev/sda
.检测读取文件时,事后存进快取的扇区数
[root@cnscn~]#hdparm-a/dev/sda
/dev/sda:
readahead=256(on)
.查询并设置硬盘多重扇区存取的扇区数,以促进硬盘的存取效力
[root@cnscn~]#hdparm-m/dev/sda
[root@cnscn~]#hdparm-m参数值为整数值如8/dev/sda
.将内挂念缓冲的数据写进硬盘,并扫除缓冲区的数据
[root@cnscn~]#hdparm-f/dev/sda
欢迎大家来到仓酷云论坛! |
|