LinuxSir.cn,穿越时空的Linuxsir!

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

[请教]使用cooker 2.6.7内核的硬盘DMA问题.

[复制链接]
发表于 2004-7-1 11:21:44 | 显示全部楼层 |阅读模式
无法打开dma,启动时就警告dma off
手动:
/dev/hda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma    =  0 (off)

这么明显的问题cooker维护者怎么没有发现呢?
发表于 2004-7-1 12:54:14 | 显示全部楼层
我的很正常耶~~
 楼主| 发表于 2004-7-1 13:15:48 | 显示全部楼层

你的内核重新编译过吗?
贴你的/etc/sysconfig/harddisks 好吗?
谢谢
发表于 2004-7-1 14:08:02 | 显示全部楼层
hdparm -X67 /dev/hda 看看。

有什么提示没。
 楼主| 发表于 2004-7-1 15:48:35 | 显示全部楼层
最初由 dlz_cn 发表
hdparm -X67 /dev/hda 看看。

有什么提示没。


正常运行,没有任何提示。但dma仍然没打开,
读写很慢。
发表于 2004-7-1 17:14:58 | 显示全部楼层
我也試過不行,真是慢如?牛,用手動更改還是不行。是2.6.7.2的內核。
 楼主| 发表于 2004-7-1 17:46:50 | 显示全部楼层
不知道是不是patch过度了,我给内核的维护者写了封信.
发表于 2004-7-1 17:54:39 | 显示全部楼层
Comments welcome on bug#10057.

似乎是kernel.org那边在2.6.7.0的时候做的修改。
 楼主| 发表于 2004-7-1 17:59:42 | 显示全部楼层
最初由 mandrakechina 发表
Comments welcome on bug#10057.

似乎是kernel.org那边在2.6.7.0的时候做的修改。


看来我的怀疑成立。
发表于 2004-7-1 19:18:38 | 显示全部楼层
# 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

# (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=
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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