请问,西数硬盘hdparm最优设置,MaxMultSect=16安全吗?
WD硬盘 hdparm -i显示,是支持 multiple sector I/O 的,而且是支持 16 sectors。 但是在hdparm的manual里写对于WD的硬盘该值不能太大,否则会有危险造成文件系统损坏。 但是这样设置可以最大量的增强硬盘的读写能力,请问大家服务器有这样设置吗,尤其是对于WD的硬盘? 谢谢,因为mysql是瓶颈的话硬盘读写能力尤其重要。
Some drives, however (most notably the WD Caviar series), seem to run
slower with multiple mode enabled. Your mileage may vary. Most
drives support the minimum settings of 2, 4, 8, or 16 (sectors).
Larger settings may also be possible, depending on the drive. A
setting of 16 or 32 seems optimal on many systems. Western Dig-
ital recommends lower settings of 4 to 8 on many of their
drives, due tiny (32kB) drive buffers and non-optimized buffer-
ing algorithms. The -i flag can be used to find the maximum
setting supported by an installed drive (look for MaxMultSect in
the output). Some drives claim to support multiple mode, but
lose data at some settings. Under rare circumstances, such
failures can result in massive filesystem corruption.
shell> hdparm -i /dev/hdb
/dev/hdb:
Model=WDC WD400EB-75CPF0, FwRev=06.04G06, SerialNo=WD-WMAATC433661
Config={ HardSect NotMFM HdSw>15uSec SpinMotCtl Fixed DTR>5Mbs FmtGapReq }
RawCHS=16383/16/63, TrkSize=57600, SectSize=600, ECCbytes=40
BuffType=DualPortCache, BuffSize=2048kB, MaxMultSect=16, MultSect=off
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=78165360
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 udma3 udma4 *udma5
AdvancedPM=no WriteCache=enabled
Drive conforms to: Unspecified: ATA/ATAPI-1 ATA/ATAPI-2 ATA/ATAPI-3 ATA/ATAPI-4 ATA/ATAPI-5
* signifies the current active mode
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论