[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(u)dma not activated, slow disc access
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: (u)dma not activated, slow disc access
- From: Martin Stenberg <bumby_(_at_)_bumby_(_dot_)_net>
- Date: Sun, 14 Dec 2003 17:57:01 +0100
Hi
I noticed my OpenBSD 3.3 system has bad disc performence. It copies
about 10MB/sec.
bumby_(_at_)_sunni:~$time cp 200mb_data bla
real 0m17.135s
user 0m0.008s
sys 0m1.289s
While on my Linux system (on which I've turned dma on with
hdparm -u1 -d1) I get:
bumby_(_at_)_cubbi:~$time cp 200mb_data bla
real 0m9.566s
user 0m0.020s
sys 0m1.840s
Which is almost twice as fast.
I have the same hardware on both systems. Which is a ASUS A7v266
motherboard, and a Seagate Barracuda 7200, with 8MB cache (UDMA100).
I have my kernel configured with
wd* at wdc? channel ? drive ? flags 0x0000
wd* at pciide? channel ? drive ? flags 0x0000
I've tried different flags to force udma and/or dma with no result.
--begin dmesg--
cpu0: AMD Athlon XP Model 6 (Palomino) ("AuthenticAMD" 686-class) 1.01 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SYS,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR
real mem = 267939840 (261660K)
avail mem = 245055488 (239312K)
using 3296 buffers containing 13500416 bytes (13184K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(75) BIOS, date 07/25/01, BIOS32 rev. 0 @ 0xf1570
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
pcibios0 at bios0: rev. 2.1 @ 0xf0000/0x1dd2
pcibios0: PCI IRQ Routing Table rev. 1.0 @ 0xf1d20/176 (9 entries)
pcibios0: PCI Interrupt Router at 000:17:0 ("VIA VT82C586 PCI-ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0xc800 0xd0000/0x4000!
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "VIA VT8366 Host-PCI" rev 0x00
ppb0 at pci0 dev 1 function 0 "VIA VT8366 PCI-AGP" rev 0x00
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)
"C-Media Electronics CMI8738/C3DX Audio" rev 0x10 at pci0 dev 5 function 0
not configured
xl0 at pci0 dev 13 function 0 "3Com 3c905B 100Base-TX" rev 0x00: irq 11
address 00:10:4b:b5:5c:44
exphy0 at xl0 phy 24: 3Com internal media interface
xl1 at pci0 dev 14 function 0 "3Com 3c905B 100Base-TX" rev 0x00: irq 10
address 00:10:4b:b5:58:5e
exphy1 at xl1 phy 24: 3Com internal media interface
pcib0 at pci0 dev 17 function 0 "VIA VT8366 PCI-ISA" rev 0x00
pciide0 at pci0 dev 17 function 1 "VIA VT82C571 IDE" rev 0x06: ATA100,
channel 0 configured to compatibility, channel 1 configured t
o compatibility
wd0 at pciide0 channel 0 drive 0: <ST3120026A>
wd0: 16-sector PIO, LBA48, 114473MB, 16383 cyl, 16 head, 63 sec, 234441648
sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
drive at pciide0 channel 1 drive 0 not configured
pciide0: channel 1 disabled (no drives)
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
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
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
biomask 4000 netmask 4c00 ttymask 5c82
pctr: user-level cycle counter enabled
mtrr: Pentium Pro MTRR support
dkcsum: wd0 matched BIOS disk 80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
--end dmesg--
There are no CRC errors in my logfiles.
atactl idenitfy gives
Model: ST3120026A, Rev: 3.06, Serial #: 3JT0LE73
Device type: ATA, fixed
Cylinders: 16383, heads: 16, sec/track: 63, total sectors: 234441648
Device capabilities:
ATA standby timer values
IORDY operation
IORDY disabling
Device supports the following standards:
ATA-1 ATA-2 ATA-3 ATA-4 ATA-5 ATA-6
Device supports the following command sets:
READ BUFFER command
WRITE BUFFER command
Host Protected Area feature set
Read look-ahead
Write cache
Power Management feature set
Security Mode feature set
SMART feature set
Flush Cache Ext command
Flush Cache command
Device Configuration Overlay feature set
48bit address feature set
Set Max security extension commands
DOWNLOAD MICROCODE command
SMART self-test
SMART error logging
Device has enabled the following command sets/features:
READ BUFFER command
WRITE BUFFER command
Host Protected Area feature set
Read look-ahead
Write cache
Power Management feature set
Flush Cache Ext command
Flush Cache command
Device Configuration Overlay feature set
48bit address feature set
DOWNLOAD MICROCODE command
Any help is welcome.
Thanks in advance!
P.S. Please CC your answer to bumby_(_at_)_bumby_(_dot_)_net since I'm not subscribed
to the list. Thanks! D.S.
--
|| Martin Stenberg
||
|| Public PGP key can be found at
|| http://www.bumby.net/pgpkey
[demime 0.98d removed an attachment of type application/pgp-signature]
Visit your host, monkey.org