[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disk performance



Why isn't wd0 using dma?

How do I enable dma then?

(Using Windows XP on the same pc shows "ultra dma mode 2" on both disks -
wd0 and wd1).

Any tip?


Thanks a lot and best regards,
Willy Skjæveland


 -----Original Message----- From: Ted Unangst [mailto:tedu@zeitbombe.org]
Sent: 25. januar 2004 02:47


notably, wd0 isn't using dma, which is why it's slow.


> 
> dmesg:
> OpenBSD 3.4 (GENERIC) #18: Wed Sep 17 03:34:47 MDT 2003
>     deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
> cpu0: Intel Pentium III (Coppermine) ("GenuineIntel" 686-class) 551 
> MHz
> cpu0:
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX
> ,FXSR,
> SIMD
> real mem  = 670662656 (654944K)
> avail mem = 615391232 (600968K)
> using 4278 buffers containing 33636352 bytes (32848K) of memory 
> mainbus0 (root) bios0 at mainbus0: AT/286+(49) BIOS, date 12/08/00, 
> BIOS32 rev. 0 @ 0xf0520 apm0 at bios0: Power Management spec V1.2
> apm0: AC on, battery charge unknown
> pcibios0 at bios0: rev. 2.1 @ 0xf0000/0xd92
> pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xf0d10/128 (6 entries)
> pcibios0: PCI Interrupt Router at 000:04:0 ("Intel 82371FB PCI-ISA" 
> rev
> 0x00)
> pcibios0: PCI bus #1 is the last bus
> bios0: ROM list: 0xc0000/0xd800 0xd0000/0x800 0xd4000/0x800 pci0 at 
> mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 
> function 0 "Intel 82443BX PCI-AGP" rev 0x03 ppb0 at pci0 dev 1 
> function 0 "Intel 82443BX AGP" rev 0x03
> pci1 at ppb0 bus 1
> vga1 at pci1 dev 0 function 0 "Nvidia GeForce2 MX 100" rev 0xb2 
> wsdisplay0 at vga1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation) pcib0 at pci0 
> dev 4 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02 pciide0 at pci0 
> dev 4 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0 wired to 
> compatibility, channel 1 wired to compatibility wd0 at pciide0 channel 
> 0 drive 0: <ST317221A>
> wd0: 32-sector PIO, LBA, 16446MB, 16383 cyl, 16 head, 63 sec, 33683328 
> sectors atapiscsi0 at pciide0 channel 0 drive 1 scsibus0 at 
> atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: <_NEC, DV-5500A, 
> 1.07> SCSI0 5/cdrom removable
> wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
> cd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
> wd1 at pciide0 channel 1 drive 0: <WDC WD800BB-32CCB0>
> wd1: 16-sector PIO, LBA, 76319MB, 16383 cyl, 16 head, 63 sec, 
> 156301488 sectors
> wd1(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 uhci0 at pci0 dev 
> 4 function 2 "Intel 82371AB USB" rev 0x01: irq 9 usb0 at uhci0: USB 
> revision 1.0 uhub0 at usb0
> uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> uhub0: 2 ports with 2 removable, self powered "Intel 82371AB Power 
> Mgmt" rev 0x02 at pci0 dev 4 function 3 not configured eap0 at pci0 
> dev 9 function 0 "Ensoniq AudioPCI97" rev 0x08: irq 9
> ac97: codec id 0x43525913 (Cirrus Logic CS4297A rev 3)
> ac97: codec features headphone, 20 bit DAC, 18 bit ADC, Crystal Semi 
> 3D audio0 at eap0 xl0 at pci0 dev 10 function 0 "3Com 3c905C 
> 100Base-TX" rev 0x74: irq 5 address 00:50:da:3f:d4:4d exphy0 at xl0 
> phy 24: Broadcom 3C905C internal PHY, rev. 6
> ahc1 at pci0 dev 11 function 0 "Adaptec AHA-2940AU" rev 0x03: irq 10
> ahc1: aic7860: Ultra Single Channel A, SCSI Id=7, 3/255 SCBs
> scsibus1 at ahc1: 8 targets
> ahc1: target 3 synchronous at 10.0MHz, offset = 0xf
> cd1 at scsibus1 targ 3 lun 0: <YAMAHA, CRW8424S, 1.0f> SCSI2 5/cdrom 
> removable "VIA VT6306 FireWire" rev 0x43 at pci0 dev 12 function 0 not 
> configured isa0 at pcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 
> pckbd0 at pckbc0 (kbd slot)
> pckbc0: using irq 1 for kbd slot
> wskbd0 at pckbd0: console keyboard, using wsdisplay0 pmsi0 at pckbc0 
> (aux slot)
> pckbc0: using irq 12 for aux slot
> wsmouse0 at pmsi0 mux 0
> pcppi0 at isa0 port 0x61
> midi0 at pcppi0: <PC speaker>
> sysbeep0 at pcppi0
> lpt0 at isa0 port 0x378/4 irq 7
> lpt1 at isa0 port 0x278/4: polled
> lpt2 at isa0 port 0x3bc/4: polled
> lm0 at isa0 port 0x290/8: W83781D
> npx0 at isa0 port 0xf0/16: using exception 16 pccom0 at isa0 port 
> 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo fdc0 at isa0 
> port 0x3f0/6 irq 6 drq 2 fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 
> 18 sec biomask c640 netmask c660 ttymask d6e2
> pctr: 686-class user-level performance counters enabled
> mtrr: Pentium Pro MTRR support
> dkcsum: wd0 matched BIOS disk 80
> dkcsum: wd1 had no matching BIOS disk
> root on wd0a
> rootdev=0x0 rrootdev=0x300 rawdev=0x302
> wd1: no disk label