QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 6634|回复: 46

这个硬盘能开DMA么?

[复制链接]
发表于 2006-8-5 02:22:30 | 显示全部楼层 |阅读模式
hdparm /dev/hda 的结果
Model=HITACHI_DK23FA-60, FwRev=00M4A0A0, SerialNo=2C2460
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
BuffType=DualPortCache, BuffSize=8192kB, MaxMultSect=16, MultSect=off
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=117210240
IORDY=yes, tPIO={min:240,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=yes: mode=0x80 (12 WriteCache=enabled
Drive conforms to: ATA/ATAPI-5 T13 1321D revision 3:  ATA/ATAPI-2 ATA/ATAPI-3 ATA/ATAPI-4 ATA/ATAPI-5

这是一块hitachi 60G 4200转的硬盘。
我用debian unstable
我现在一作升级一类的动作,笔记本就顿的受不了,应该怎么调整一下?

root@Debian-goodboy:/home/goodboy# hdparm -tT /dev/hda

/dev/hda:
Timing cached reads:   1788 MB in  2.00 seconds = 893.69 MB/sec
Timing buffered disk reads:   10 MB in  3.69 seconds =   2.71 MB/sec
root@Debian-goodboy:/home/goodboy# hdparm -i /dev/hda

这个结果是不是太惨了 ?
发表于 2006-8-5 02:54:52 | 显示全部楼层
hdparm -X66 -d1 -u1 -m16 -c3 /dev/hda
回复

使用道具 举报

 楼主| 发表于 2006-8-5 03:15:52 | 显示全部楼层
    
绝望了,
hdparm -X66 -d1 -u1 -m16 -c3 /dev/hda

setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted

效能提高了一点。。。
/dev/hda:
Timing cached reads:   1720 MB in  2.00 seconds = 859.84 MB/sec
Timing buffered disk reads:   14 MB in  3.21 seconds =   4.36 MB/sec
回复

使用道具 举报

 楼主| 发表于 2006-8-5 03:29:39 | 显示全部楼层
00:00.0 Host bridge: Intel Corporation 82855PM Processor to I/O Controller (rev 21)
00:01.0 PCI bridge: Intel Corporation 82855PM Processor to AGP Controller (rev 2 1)
00:1d.0 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) U SB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) U SB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) U SB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801DB/DBM (ICH4/ICH4-M) USB2 EHCI Co ntroller (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 83)
00:1f.0 ISA bridge: Intel Corporation 82801DBM (ICH4-M) LPC Interface Bridge (re v 03)
00:1f.1 IDE interface: Intel Corporation 82801DBM (ICH4-M) IDE Controller (rev 0 3)
00:1f.3 SMBus: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Cont roller (rev 03)
00:1f.5 Multimedia audio controller: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH 4-L/ICH4-M) AC'97 Audio Controller (rev 03)
00:1f.6 Modem: Intel Corporation 82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) AC'97 Mode m Controller (rev 03)
01:00.0 VGA compatible controller: ATI Technologies Inc RV350 [Mobility Radeon 9 600 M10]
02:02.0 Ethernet controller: Intel Corporation 82541GI Gigabit Ethernet Controll er
02:04.0 Network controller: Intel Corporation PRO/Wireless LAN 2100 3B Mini PCI Adapter (rev 04)
02:05.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ab)
02:05.1 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ab)
02:05.2 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller (rev 03)
02:05.3 System peripheral: Ricoh Co Ltd R5C576 SD Bus Host Adapter (rev 01)
02:05.4 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter

lspci 的结果,好象是
00:1f.1 IDE interface: Intel Corporation 82801DBM (ICH4-M) IDE Controller (rev 0 3)
的ide 接口。
回复

使用道具 举报

 楼主| 发表于 2006-8-5 04:47:33 | 显示全部楼层
root@Debian-goodboy:/boot# grep -i dma config-2.6.17-1-686
CONFIG_GENERIC_ISA_DMA=y
CONFIG_ISA_DMA_API=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IDEDMA_ONLYDISK is not set
# CONFIG_HPT34X_AUTODMA is not set
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
CONFIG_IDEDMA_AUTO=y
CONFIG_SCSI_PDC_ADMA=m
CONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE=1
# CONFIG_IEEE1394_SBP2_PHYS_DMA is not set
CONFIG_BCM43XX_DMA=y
CONFIG_BCM43XX_DMA_AND_PIO_MODE=y
# CONFIG_BCM43XX_DMA_MODE is not set
CONFIG_CARDMAN_4000=m
CONFIG_CARDMAN_4040=m
# CONFIG_SOUND_DMAP is not set
回复

使用道具 举报

 楼主| 发表于 2006-8-5 05:21:53 | 显示全部楼层
在bios里面找到一些有用的资料

multi sector 16
LBA 使用
32bit i/o 支持
传送模式 FPIO4/DMA2
Ultra DMA mode5

这是BIOS里面的,看起来默认的模式都已经被打开了,但是为啥Debian下面就不行呢,郁闷。
回复

使用道具 举报

 楼主| 发表于 2006-8-5 05:23:51 | 显示全部楼层
root@Debian-goodboy:~# hdparm -d1 /dev/hda

/dev/hda:
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
using_dma    =  0 (off)

狂提示这个错误。。。
回复

使用道具 举报

 楼主| 发表于 2006-8-5 05:26:31 | 显示全部楼层
如果理想,我的硬盘的工作模式应该是
hdparm -c3 -X udma5 -d1 -m16 /dev/hda
回复

使用道具 举报

 楼主| 发表于 2006-8-5 05:30:40 | 显示全部楼层
dmesg 中的有关内容如下

ide0: Speed warnings UDMA 3/4/5 is not functional.
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx

这两句有没有问题???说明了些什么呢?
回复

使用道具 举报

 楼主| 发表于 2006-8-5 05:54:03 | 显示全部楼层
事实证明这个硬盘可以开DMA,用去年的gentoo livecd启动了一下,
DMA直接就是打开的,Debian为啥这么对我,我就不知道了。。。
正在考虑杀掉debian ,直接换arch算了。。。
我信赖的Debian啊,我K         
回复

使用道具 举报

发表于 2006-8-5 06:34:32 | 显示全部楼层
积木
一夜呀
还在折腾?
回复

使用道具 举报

 楼主| 发表于 2006-8-5 06:52:06 | 显示全部楼层
[quote:3fb0d82ecc="npcomet"]积木
一夜呀
还在折腾?[/quote]
nnd,折腾了一休,正在重新编译内核~~~~~~~
这回要是再不好用,就直接干掉debian了事~
回复

使用道具 举报

发表于 2006-8-5 07:12:29 | 显示全部楼层
可怜一个
回复

使用道具 举报

 楼主| 发表于 2006-8-5 07:47:20 | 显示全部楼层
[quote:38a196e078="积木"]dmesg 中的有关内容如下

ide0: Speed warnings UDMA 3/4/5 is not functional.
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx

这两句有没有问题???说明了些什么呢?[/quote]
什么也说明不了,这两句话根本没有用。。。
回复

使用道具 举报

发表于 2006-8-5 09:58:10 | 显示全部楼层
楼主自虐狂

  
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-5-8 08:33 , Processed in 0.061380 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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