会员控制台 会员登陆 会员注册 最后更新 高级搜索 会员投稿 退出登陆
设为首页
收藏本站
留言给我
  首页 | 操作系统类 | 程序设计类 | 数据库类 | 应用服务类 | 网络及硬件类 | 其他技术 | GBunix论坛
操作系统类
程序设计类
数据库类
应用服务类
网络及硬件类
其他技术
Unix中文 / 操作系统类 / Linux / RedHat Linux下IDE硬盘的加速
RedHat Linux下IDE硬盘的加速
2006-07-16          点击:
RedHat Linux下IDE硬盘的加速
  默认中Redhat Linux将IDE硬盘配置得非常稳定,非常兼容,换句话来说,就是非常的慢。

  如果你的IDE硬盘是最近几年,特别注明是支持UltraDMA模式的,可以通过修改配置文件轻而易举地使得你的IDE硬盘加速它的运行。

  编辑/etc/sysconfig/harddisks, 修改自己的IDE硬盘(注:对SCSI硬盘无效)。红色字体是修改后的参数:

#
#           WARNING !!!
#
# The kernel will autodetect the correct settings for most drives.
# Overriding these settings with hdparm can cause data corruption and/or
# data loss.
# Leave this file as it is unless you know exactly what you're doing !!
#
#
#
# These options are used to tune the hard drives -
# read the hdparm man page for more information

# Set this to 1 to enable DMA. This might cause some
# data corruption on certain chipset / hard drive
# combinations. This is used with the "-d" option

USE_DMA=1 (这不用再说明了吧?)

# Multiple sector I/O. a feature of most modern IDE hard drives,
# permitting the transfer of multiple sectors per I/O interrupt,
# rather than the usual one sector per interrupt.  When this feature
# is enabled, it typically reduces operating system overhead for disk
# I/O by 30-50%.  On many systems, it also provides increased data
# throughput of anywhere from 5% to 50%.  Some drives, however (most
# notably the WD Caviar series), seem to run slower with multiple mode
# enabled. Under rare circumstances, such failures can result in
# massive filesystem corruption. USE WITH CAUTION AND BACKUP.
# This is the sector count for multiple sector I/O - the "-m" option
#
MULTIPLE_IO=16 (这个以前叫multcount, 多少sector能在一次输入/输出中断中被校入)

# (E)IDE 32-bit I/O support (to interface card)
#
EIDE_32BIT=3 (打开这个是非常重要的,几乎可以提速一倍)

# Enable drive read-lookahead
#
LOOKAHEAD=1 (没什么话好说的,个人觉得都无所谓)

# Add extra parameters here if wanted
# On reasonably new hardware, you may want to try -X66, -X67 or -X68
# Other flags you might want to experiment with are -u1, -a and -m
# See the hdparm manpage (man hdparm) for details and more options.
#
EXTRA_PARAMS= -X66 -u1 (这里的选项很危险,要根据自己的情况填入。请先用/sbin/hdparm 命令确认这些选项不会危害到你的IDE硬盘,再将它们写入这里。

  其实上面的参数都可以用hdparm来调整,但系统是不会记住hdparm调整后的参数的。所以每次开机又会回到默认的配置。修改/etc/sysconfig/harddisks文件是为了方便,用户也可以将hdparm的选项写入rc.sysinit。仁者见仁了。

了解更多详情,参与讨论,请进入GBUNIX论坛

http://www.gbunix.com/bbs/index.php
责任编辑: trotter

相关文章
IGENUS中的注册和找回密码功能 - 07-29 10:19 pm - 点击: 214
在RH9下安装Qmail+IGENUS+QmailAdmin - 07-29 10:15 pm - 点击: 763
如何在拨号环境下使用postfix - 07-08 12:52 pm - 点击: 157
中小规模POSTFIX邮件系统 - 07-08 12:50 pm - 点击: 679
postfix相关文件说明 - 07-06 02:42 pm - 点击: 367
Postfix配置文件main.cf中常用参数介绍 - 06-14 09:55 pm - 点击: 998
redhat9.0下igenus的安装过程 - 06-11 01:54 pm - 点击: 2789

发表评论 查看评论 加入收藏 Email给朋友 打印本文
给该文章评分
1 2 3 4 5 6 7 8 9 10
平均得分 0, 共 0 人评分
1 2 3 4 5 6 7 8 9 10
发表评论
标题:
内容:
声明:本站资讯均来自互联网,所有文章版权归原作者和出版者所有,如涉及版权问题,请来信告知!
Copyright © 2002-2004 GBunix.com. All rights reserved.