LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 635|回复: 6

我的硬盘速度不对头:

[复制链接]
发表于 2003-4-26 18:38:33 | 显示全部楼层 |阅读模式
我的硬盘速度不对头:
我用# hdparm -tT /dev/hda/dev/sda:
Timing buffer-cache reads: 128 MB in 1.25seconds =160.07 MB/sec
Timing buffered disk reads: 64 MB in 1.66 seconds = 38.55 MB/sec

有这么快吗?
发表于 2003-4-26 21:29:25 | 显示全部楼层
差不多。下面是我的,我把DMA打开了。。


[root@Linsir01 root]# hdparm -tT /dev/hda

/dev/hda:
Timing buffer-cache reads:   128 MB in  1.20 seconds =106.67 MB/sec
Timing buffered disk reads:  64 MB in  1.62 seconds = 39.51 MB/sec
发表于 2003-4-29 15:25:23 | 显示全部楼层

管理员看看我的正常,这样能说明硬盘的DMA打开没有?

[root@localhost root]# hdparm -tT /dev/hda

/dev/hda:
Timing buffer-cache reads:   128 MB in  0.38 seconds =336.84 MB/sec
Timing buffered disk reads:  64 MB in  1.75 seconds = 36.57 MB/sec
发表于 2003-4-29 20:45:39 | 显示全部楼层
你打开。。/etc/sysconfig/harddisks 这份文件
里面的内容是这样。。
# 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
#这里就是打开DMA

# 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

# (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
#如果你的硬盘是ATA100的用-X68,,ATA66的用-X67.
发表于 2003-4-30 10:29:42 | 显示全部楼层
多谢了。我试试了。
发表于 2003-4-30 18:35:28 | 显示全部楼层
我用的是迈拓ATA133要改成什么啊?
发表于 2003-4-30 20:00:20 | 显示全部楼层
一样的,打开DMA试一下看看。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表