Hi Jan,
Sorry for the delay, I overlooked your reply....
If I use exactly the same commands / mount options as you I get less than
1MB/s....
I know that I cannot expect a "good" performance with the CF card, but 5MB/s
would just be fine :-)
What else can I try?
Greetings
Stefan
My config:
fstab:
/dev/rd0a / ffs rw,noatime 0 0 # kernel rd/rootfs
/dev/svnd0a /usr ffs noauto,ro,noatime,nodev 0 0
/dev/svnd1a /usr/local/sepp ffs noauto,ro,noatime,nodev 0 0
/dev/wd0a /var/firmware ffs rw,noatime,nodev 1 1
/dev/wd0b none swap sw 0 0
/dev/wd0d /etc/nonvol ffs ro,noatime,nodev 1 1
/dev/wd0e /var/ldap ffs rw,softdep,noatime,nodev 1 1 #
/dev/wd0f /var/mailqueue ffs rw,noatime,nodev,softdep 1 1 #
/dev/wd0g /var/log ffs rw,noatime,nodev 1 1 #
swap /tmp mfs rw,nodev,nosuid,noatime,async,-s=500000 0 0 # /tmp in rd
/dev/wd0m /var/mailstore ffs rw 1 1
[14:05:44] [EMAIL PROTECTED]:/(0)# fdisk wd0
Disk: wd0 geometry: 1007/64/63 [4060224 Sectors]
Offset: 0 Signature: 0xAA55
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
------------------------------------------------------------------------
0: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
*3: A6 0 1 1 - 1006 63 63 [ 63: 4060161 ] OpenBSD
[14:06:56] [EMAIL PROTECTED]:/(0)# disklabel wd0
# Inside MBR partition 3: type A6 start 63 size 4060161
# /dev/rwd0c:
type: ESDI
disk: ESDI/IDE disk
label: Turbo Industrial
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 4030
total sectors: 4062240
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 524160 3120768 4.2BSD 2048 16384 328 # Cyl 3096 -
3615
b: 524097 63 swap # Cyl 0*-
519
c: 4062240 0 unused 0 0 # Cyl 0 -
4029
d: 262080 524160 4.2BSD 2048 16384 260 # Cyl 520 -
779
e: 262080 786240 4.2BSD 2048 16384 260 # Cyl 780 -
1039
f: 1048320 1048320 4.2BSD 2048 16384 328 # Cyl 1040 -
2079
g: 1024128 2096640 4.2BSD 2048 16384 328 # Cyl 2080 -
3095
m: 409248 3644928 4.2BSD 2048 16384 328 # Cyl 3616 -
4021
[14:08:07] [EMAIL PROTECTED]:/(0)# dd if=/var/firmware/libcrypto_p.a
of=/var/mailqueue/foo bs=1024
11844+1 records in
11844+1 records out
12128466 bytes transferred in 16.971 secs (714653 bytes/sec)
----- Original Message -----
From: "Jan Stary" <[EMAIL PROTECTED]>
To: "Stefan Klein" <[EMAIL PROTECTED]>
Sent: Wednesday, November 07, 2007 9:27 AM
Subject: Re: Performance problem with CF card on AMD CS5536 IDE
>>atactl wd0 identify
>>Model: Turbo Industrial CF Card, Rev: YUAN1026, Serial #:
>>F0300000000000000134
>>Device type: ATA, fixed
>>Cylinders: 4030, heads: 16, sec/track: 63, total sectors: 4062240
>>Device capabilities:
>> IORDY operation
>> IORDY disabling
>
>Is this really the _whole_ output of atactl identify?
>Mine is much longer, actually saying the capabilities ...
Yes, on the ARInfotek it actually is longer, stating the capabilities up
to
ata-5 (but I do not have one here now...)
My CF card also shows the capability of 'write cache'
- do you have it enabled?
>Try enabling softdep on un the filesystem, and mount it
>using async,noatime. Does that speed things up?
Well?
>(I will compare with my output
>when I get home to my ALIX.)
See at bottom. It shows a throughput of about 5M/s. Anyway, if disk
speed is a concern for you, then you don't want to e using a CF card in
the first place ...
Jan
# uname -a
OpenBSD gw.stare.cz 4.1 GENERIC#0 i386
# dmesg
OpenBSD 4.1-stable (GENERIC) #0: Wed Oct 10 15:34:57 CEST 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD" 586-class)
499 MHz
cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX
real mem = 259284992 (253208K)
avail mem = 228904960 (223540K)
using 3195 buffers containing 13086720 bytes (12780K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 08/21/07, BIOS32 rev. 0 @ 0xfa960
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 70102 dobusy 1 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf0000/0xdfb4
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf40/112 (5 entries)
pcibios0: bad IRQ table checksum
pcibios0: PCI BIOS has 5 Interrupt Routing table entries
pcibios0: PCI Exclusive IRQs: 5 10 11
pcibios0: no compatible PCI ICU found
pcibios0: Warning, unable to fix up PCI interrupt routing
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xc8000/0x1800 0xca000/0xa800
0xef000/0x1000!
acpi at mainbus0 not configured
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 1 function 0 "AMD Geode LX" rev 0x31
vga1 at pci0 dev 1 function 1 "AMD Geode LX Video" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
glxsb0 at pci0 dev 1 function 2 "AMD Geode LX Crypto" rev 0x00: RNG AES
fxp0 at pci0 dev 12 function 0 "Intel 8255x" rev 0x0c, i82550: irq 11,
address 00:02:b3:8b:26:df
inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4
vr0 at pci0 dev 13 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 10,
address 00:0d:b9:0c:e1:40
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
0x004063, model 0x0034
pcib0 at pci0 dev 15 function 0 "AMD CS5536 ISA" rev 0x03
pciide0 at pci0 dev 15 function 2 "AMD CS5536 IDE" rev 0x01: DMA, channel 0
wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <SanDisk SDCFX3-2048>
wd0: 4-sector PIO, LBA, 1953MB, 4001760 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2
pciide0: channel 1 ignored (disabled)
"AMD CS5536 Audio" rev 0x01 at pci0 dev 15 function 3 not configured
ohci0 at pci0 dev 15 function 4 "AMD CS5536 USB" rev 0x02: irq 11, version
1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: AMD OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
ehci0 at pci0 dev 15 function 5 "AMD CS5536 USB" rev 0x02: irq 11
usb1 at ehci0: USB revision 2.0
uhub1 at usb1
uhub1: AMD EHCI root hub, rev 2.00/1.00, addr 1
uhub1: 4 ports with 4 removable, self powered
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
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
lm0 at isa0 port 0x290/8: W83627HF
npx0 at isa0 port 0xf0/16: reported by CPUID; 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 fb65 netmask ff65 ttymask ffe7
pctr: user-level cycle counter enabled
mtrr: K6-family MTRR support (2 registers)
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
uid 0 on /tmp: file system full
uid 0 on /tmp: file system full
uid 0 on /tmp: file system full
uid 0 on /tmp: file system full
uid 0 on /tmp: file system full
uid 0 on /tmp: file system full
uid 0 on /tmp: file system full
uid 0 on /tmp: file system full
uid 0 on /tmp: file system full
uid 0 on /tmp: file system full
uid 0 on /tmp: file system full
uid 0 on /tmp: file system full
uid 0 on /tmp: file system full
uid 0 on /tmp: file system full
uid 0 on /tmp: file system full
uid 0 on /tmp: file system full
uid 0 on /tmp: file system full
# sysctl hw
hw.machine=i386
hw.model=Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD"
586-class)
hw.ncpu=1
hw.byteorder=1234
hw.physmem=259284992
hw.usermem=259276800
hw.pagesize=4096
hw.disknames=wd0
hw.diskcount=1
hw.sensors.lm0.temp0=70.00 degC
hw.sensors.lm0.temp1=63.00 degC
hw.sensors.lm0.temp2=60.00 degC
hw.sensors.lm0.volt0=1.22 VDC (VCore A)
hw.sensors.lm0.volt1=2.59 VDC (VCore B)
hw.sensors.lm0.volt2=3.31 VDC (+3.3V)
hw.sensors.lm0.volt3=4.95 VDC (+5V)
hw.sensors.lm0.volt4=0.00 VDC (+12V)
hw.sensors.lm0.volt5=-14.91 VDC (-12V)
hw.sensors.lm0.volt6=-7.71 VDC (-5V)
hw.sensors.lm0.volt7=4.95 VDC (5VSB)
hw.sensors.lm0.volt8=0.29 VDC (VBAT)
hw.cpuspeed=499
# fd atact # atactl
#
atactl wd0
Model: SanDisk SDCFX3-2048, Rev: HDX 4.08, Serial #: 011914E1307P5205
Device type: ATAPI, removable
Cylinders: 3970, heads: 16, sec/track: 63, total sectors: 4001760
Device capabilities:
Device supports the following standards:
ATA-4
Device supports the following command sets:
Write cache
CFA feature set
Device has enabled the following command sets/features:
Write cache
CFA feature set
# fdisk wd0
Disk: wd0 geometry: 992/64/63 [3999744 Sectors]
Offset: 0 Signature: 0xAA55
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
------------------------------------------------------------------------
0: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
*3: A6 0 1 1 - 991 63 63 [ 63: 3999681 ] OpenBSD
# disklabe # disklabel
#
disklabel wd0
# Inside MBR partition 3: type A6 start 63 size 3999681
# /dev/rwd0c:
type: ESDI
disk: ESDI/IDE disk
label: SanDisk SDCFX3-2
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 3970
total sectors: 4001760
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 262017 63 4.2BSD 2048 16384 260 # Cyl 0*-
259
c: 4001760 0 unused 0 0 # Cyl 0 -
3969
d: 262080 262080 4.2BSD 2048 16384 260 # Cyl 260 -
519
e: 131040 524160 4.2BSD 2048 16384 130 # Cyl 520 -
649
f: 131040 655200 4.2BSD 2048 16384 130 # Cyl 650 -
779
g: 262080 786240 4.2BSD 2048 16384 260 # Cyl 780 -
1039
h: 2953440 1048320 4.2BSD 2048 16384 328 # Cyl 1040 -
3969
# cat /et # cat /etc/
# cat
/etc/ fs # cat /etc/fstab
# cat
/etc/fstab
/dev/wd0a / ffs rw,noatime 1 1
/dev/wd0d /home ffs rw,noatime,nodev,nosuid 1 2
/dev/wd0g /tmp ffs rw,noatime,nodev,nosuid 1 2
/dev/wd0h /usr ffs rw,noatime,nodev 1 2
/dev/wd0e /var ffs rw,noatime,nodev,nosuid 1 2
/dev/wd0f /var/log ffs rw,noatime,nodev,nosuid 1 2
# mount
/dev/wd0a on / type ffs (local, noatime)
/dev/wd0d on /home type ffs (local, noatime, nodev, nosuid)
/dev/wd0h on /usr type ffs (local, noatime, nodev)
/dev/wd0e on /var type ffs (local, noatime, nodev, nosuid)
/dev/wd0f on /var/log type ffs (local, noatime, nodev, nosuid)
/dev/wd0g on /tmp type ffs (local, noatime, nodev, nosuid)
# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/wd0a 126M 54.5M 65.1M 46% /
/dev/wd0d 126M 11.2M 108M 9% /home
/dev/wd0h 1.4G 1020M 328M 76% /usr
/dev/wd0e 62.9M 7.0M 52.8M 12% /var
/dev/wd0f 62.9M 1.7M 58.1M 3% /var/log
/dev/wd0g 126M 10.0K 120M 0% /tmp
# rm -f /tmp/file /tmp/foo
# time for i in 1 2 3 4 5 ; do cat /usr/lib/libcrypto_p.a >> /tmp/file ;
done
0m11.07s real 0m0.00s user 0m0.11s system
# du -hs /tmp/file
57.9M /tmp/file
# df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/wd0a 126M 54.5M 65.1M 46% /
/dev/wd0d 126M 11.2M 108M 9% /home
/dev/wd0h 1.4G 1020M 328M 76% /usr
/dev/wd0e 62.9M 7.0M 52.8M 12% /var
/dev/wd0f 62.9M 1.7M 58.1M 3% /var/log
/dev/wd0g 126M 57.9M 61.8M 48% /tmp
# dd if=/tmp/file of=/tmp/foo
118442+1 records in
118442+1 records out
60642330 bytes transferred in 11.417 secs (5311505 bytes/sec)
# dd if=/tmp/file of=/tmp/foo
118442+1 records in
118442+1 records out
60642330 bytes transferred in 11.347 secs (5344285 bytes/sec)
# dd if=/tmp/file of=/tmp/foo
118442+1 records in
118442+1 records out
60642330 bytes transferred in 11.177 secs (5425168 bytes/sec)
# dd if=/tmp/file of=/tmp/foo bc=512 =512 l=512o=512=512
=512 s=512
118442+1 records in
118442+1 records out
60642330 bytes transferred in 11.339 secs (5348081 bytes/sec)
# # dd if=/tmp/file of=/tmp/foo bs=512
118442+1 records in
118442+1 records out
60642330 bytes transferred in 11.200 secs (5414213 bytes/sec)
# # dd if=/tmp/file of=/tmp/foo bs=512 1024
59221+1 records in
59221+1 records out
60642330 bytes transferred in 11.283 secs (5374353 bytes/sec)
# # dd if=/tmp/file of=/tmp/foo bs=1024
59221+1 records in
59221+1 records out
60642330 bytes transferred in 11.273 secs (5379017 bytes/sec)
# # dd if=/tmp/file of=/tmp/foo bs=1024 2048
29610+1 records in
29610+1 records out
60642330 bytes transferred in 11.285 secs (5373383 bytes/sec)
# time cat /tmp/file > /tmp/foo
0m11.37s real 0m0.00s user 0m0.85s system
# ^D