Hi,

anyone figured out where the problem is with OpenBSD & CF?

I got myself a cardbus-CF adapter and tested it, the
performance is pretty poor using two cards that worked
with Linux (couple of years ago though, when I still had those) about ~6MB/s both reading and writing.

The 512M card seemed to perform even more badly than the
older 256M card (write ~370kB/s and read ~900kB/s).

Kingston 256M:

# newfs -t ffs -o time -b 65536 -f 8192 /dev/rwd1a
newfs: reduced number of fragments per cylinder group from 7944 to 7936 to 
enlarge last cylinder group
/dev/rwd1a: 248.5MB in 508896 sectors of 512 bytes
5 cylinder groups of 62.00MB, 992 blocks, 2048 inodes each
super-block backups (for fsck -b #) at:
 128, 127104, 254080, 381056, 508032,

# mount /dev/wd1a /mnt/
# cd /mnt/
# dd if=/dev/zero of=test bs=64k count=2500
2500+0 records in
2500+0 records out
163840000 bytes transferred in 146.288 secs (1119978 bytes/sec)
# dd if=test of=/dev/null bs=64k
2500+0 records in
2500+0 records out
163840000 bytes transferred in 133.009 secs (1231789 bytes/sec)

During transfer top shows high interrupt:

load averages:  2.47,  1.20,  0.88
50 processes:  49 idle, 1 on processor
CPU states:  1.8% user,  1.4% nice,  2.8% system, 87.4% interrupt,  6.6% idle
Memory: Real: 173M/257M act/tot  Free: 302M  Swap: 0K/110M used/tot

  PID USERNAME PRI NICE  SIZE   RES STATE    WAIT      TIME    CPU COMMAND
32682 root      -5    0  404K  212K sleep    getblk    0:07  4.64% dd

OpenBSD 4.2 (GENERIC) #8: Sat Aug 25 14:21:57 EEST 2007
    [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium III ("GenuineIntel" 686-class) 499 MHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real mem  = 603353088 (575MB)
avail mem = 574849024 (548MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 11/30/99, BIOS32 rev. 0 @ 0xfd820, SMBIOS 
rev. 2.2 @ 0xf7690 (55 entries)
bios0: vendor IBM version "ITET55WW" date 11/30/1999
bios0: IBM 26454EG
apm0 at bios0: Power Management spec V1.2
apm0: battery life expectancy 95%
apm0: AC on, battery charge high
apm0: flags 30102 dobusy 0 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xfd880/0x800
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf9d00/128 (6 entries)
pcibios0: PCI Exclusive IRQs: 11
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371AB PIIX4 ISA" rev 0x00)
pcibios0: PCI bus #5 is the last bus
bios0: ROM list: 0xc0000/0xc000
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX 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 "Neomagic Magicgraph NM2360" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
cbb0 at pci0 dev 2 function 0 "TI PCI1450 CardBus" rev 0x03: irq 11
cbb1 at pci0 dev 2 function 1 "TI PCI1450 CardBus" rev 0x03: irq 11
"AT&T/Lucent LTMODEM" rev 0x01 at pci0 dev 3 function 0 not configured
clcs0 at pci0 dev 6 function 0 "Cirrus Logic CS4280/46xx CrystalClear" rev 
0x01: irq 11
ac97: codec id 0x43525913 (Cirrus Logic CS4297A rev 3)
ac97: codec features headphone, 20 bit DAC, 18 bit ADC, Crystal Semi 3D
piixpcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x02: unable 
to claim ownership from BIOS, SpeedStep disabled
pciide0 at pci0 dev 7 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: <IBM-DTCA-24090>
wd0: 16-sector PIO, LBA, 3909MB, 8007552 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <MATSHITA, DVD-ROM SR-8174, CK20> SCSI0 5/cdrom 
removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 11
piixpm0 at pci0 dev 7 function 3 "Intel 82371AB Power" rev 0x03: SMI
iic0 at piixpm0
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0 cacheline 0x8, lattimer 0xb0
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 5 device 0 cacheline 0x8, lattimer 0xb0
pcmcia1 at cardslot1
isa0 at piixpcib0
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>
spkr0 at pcppi0
lpt2 at isa0 port 0x3bc/4: polled
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
usb0 at uhci0: USB revision 1.0
uhub0 at usb0: Intel UHCI root hub, rev 1.00/1.00, addr 1
biomask efed netmask efed ttymask ffef
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
rl0 at cardbus0 dev 0 function 0 "CardBus PC Card, Fast Ethernet CardBus PC 
Card": irq 11, address 00:10:60:77:2d:76
rlphy0 at rl0 phy 0: RTL internal PHY
wdc2 at pcmcia1 function 0 "TOSHIBA THNCF512MQG , , " port 0xa000/16
wd1 at wdc2 channel 0 drive 0: <TOSHIBA THNCF512MQG>
wd1: 1-sector PIO, LBA, 488MB, 1000944 sectors
wd1(wdc2:0:0): using BIOS timings
uhidev0 at uhub0 port 1 configuration 1 interface 0
uhidev0: Logitech HID compliant keyboard, rev 1.10/1.80, addr 2, iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub0 port 1 configuration 1 interface 1
uhidev1: Logitech HID compliant keyboard, rev 1.10/1.80, addr 2, iclass 3/0
uhidev1: 2 report ids
uhid0 at uhidev1 reportid 1: input=2, output=0, feature=0
uhid1 at uhidev1 reportid 2: input=1, output=0, feature=0
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a swap on wd0b dump on wd0b
clcs0: firmware loaded
audio0 at clcs0
wd0(pciide0:0:0): timeout
        type: ata
        c_bcount: 16384
        c_skip: 0
wd0a: device timeout reading fsbn 1685024 of 1685024-1685055 (wd0 bn 1685087; 
cn 1671 tn 11 sn 26), retrying
wd0: soft error (corrected)
wd1 detached
wdc2 detached
wdc2 at pcmcia1 function 0 "SAMSUNG, 04/05/06" port 0xa000/16
wd1 at wdc2 channel 0 drive 0: <SAMSUNG CF/ATA>
wd1: 1-sector PIO, LBA, 248MB, 508928 sectors
wd1(wdc2:0:0): using BIOS timings
wd1c: aborted command, id not found reading fsbn 508928 of 508928-508931 (wd1 
bn 508928; cn 994 tn 0 sn 0), retrying
wd1c: aborted command, id not found reading fsbn 508928 of 508928-508931 (wd1 
bn 508928; cn 994 tn 0 sn 0), retrying
wd1c: aborted command, id not found reading fsbn 508928 of 508928-508931 (wd1 
bn 508928; cn 994 tn 0 sn 0), retrying
wd1c: aborted command, id not found reading fsbn 508928 of 508928-508931 (wd1 
bn 508928; cn 994 tn 0 sn 0), retrying
wd1c: aborted command, id not found reading fsbn 508928 of 508928-508931 (wd1 
bn 508928; cn 994 tn 0 sn 0), retrying
wd1c: aborted command, id not found reading fsbn 508928 of 508928-508931 (wd1 
bn 508928; cn 994 tn 0 sn 0)
wd1c: aborted command, id not found reading fsbn 508928 of 508928-508931 (wd1 
bn 508928; cn 994 tn 0 sn 0), retrying
wd1c: aborted command, id not found reading fsbn 508928 of 508928-508931 (wd1 
bn 508928; cn 994 tn 0 sn 0), retrying
wd1c: aborted command, id not found reading fsbn 508928 of 508928-508931 (wd1 
bn 508928; cn 994 tn 0 sn 0), retrying
wd1c: aborted command, id not found reading fsbn 508928 of 508928-508931 (wd1 
bn 508928; cn 994 tn 0 sn 0), retrying
wd1c: aborted command, id not found reading fsbn 508928 of 508928-508931 (wd1 
bn 508928; cn 994 tn 0 sn 0), retrying
wd1c: aborted command, id not found reading fsbn 508928 of 508928-508931 (wd1 
bn 508928; cn 994 tn 0 sn 0)
wd1c: aborted command, id not found reading fsbn 508932 of 508932-508935 (wd1 
bn 508932; cn 994 tn 0 sn 4), retrying
wd1c: aborted command, id not found reading fsbn 508932 of 508932-508935 (wd1 
bn 508932; cn 994 tn 0 sn 4), retrying
wd1c: aborted command, id not found reading fsbn 508932 of 508932-508935 (wd1 
bn 508932; cn 994 tn 0 sn 4), retrying
wd1c: aborted command, id not found reading fsbn 508932 of 508932-508935 (wd1 
bn 508932; cn 994 tn 0 sn 4), retrying
wd1c: aborted command, id not found reading fsbn 508932 of 508932-508935 (wd1 
bn 508932; cn 994 tn 0 sn 4), retrying
wd1c: aborted command, id not found reading fsbn 508932 of 508932-508935 (wd1 
bn 508932; cn 994 tn 0 sn 4)

I guess the timeouts with wd1c occured when I ran dd if=/dev/rwd1c of=file...

Reply via email to