Sorry if this shows up again. I sent this twice yesterday and for some reason it hasn't appeared on the list.

David Gwynne wrote:
id try this on a sili(4), ahci(4), or mpi(4) controller and see what happens.

my guess is you're hitting issues in the ata stack, specifically to do with the 
block offsets of your io ops.

dlg

On 01/01/2010, at 12:03 AM, Scott McEachern wrote:

Unfortunately, I do not have any of those available to me.

I tried Marco's suggestion (use -current) and let the test run
overnight, and the results were the same:

Using -current dmesg follows.

# date; time dd if=/dev/rwd0c of=/dev/null; date
Thu Dec 31 23:44:32 EST 2009
dd: /dev/rwd0c: Input/output error
268435455+0 records in
268435455+0 records out
137438952960 bytes transferred in 23954.900 secs (5737404 bytes/sec)
 399m14.93s real     2m12.93s user   174m4.64s system
Fri Jan  1 06:23:47 EST 2010

Then I tried these just to see what would happen:

Here we get the same result (but quicker) by skipping everything:

# dd if=/dev/rwd0c of=/dev/null skip=268435454
dd: /dev/rwd0c: Input/output error
1+0 records in
1+0 records out
512 bytes transferred in 3.975 secs (129 bytes/sec)

And as I guessed, using a bs != 512, but a multiple, it gives no error:

# dd if=/dev/rwd0c of=/dev/null skip=134217726 bs=1024
^C729161+0 records in
729161+0 records out
746660864 bytes transferred in 69.331 secs (10769439 bytes/sec)

The drive is laid out like so:  (Yes, it's kinda crazy and there is a
bit of unallocated space at the end.)

# mount
/dev/wd0a on / type ffs (local, softdep)
/dev/wd0e on /home type ffs (local, nodev, nosuid, softdep)
/dev/wd0d on /tmp type ffs (local, nodev, nosuid, softdep)
/dev/wd0f on /usr type ffs (local, nodev, softdep)
/dev/wd0l on /usr/chroots type ffs (local, nosuid, softdep)
/dev/wd0g on /usr/ftp type ffs (local, nodev, nosuid, softdep)
/dev/wd0h on /usr/local type ffs (local, nodev, softdep)
/dev/wd0i on /usr/obj type ffs (local, nodev, nosuid, softdep)
/dev/wd0j on /var type ffs (local, nodev, nosuid, softdep)
/dev/wd0k on /var/mysql type ffs (local, nodev, nosuid, softdep)
blackstaff:~
# disklabel /dev/wd0c
# /dev/wd0c:
type: ESDI
disk: ESDI/IDE disk
label: ST31500341AS
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 182401
total sectors: 2930277168
rpm: 3600  /* Huh?  This is a 7200RPM drive */
interleave: 1
boundstart: 63
boundend: 2930272065
drivedata: 0

16 partitions:
#                size           offset  fstype [fsize bsize  cpg]
 a:         20980827               63  4.2BSD   2048 16384    1
 b:          1060290         20980890    swap
 c:       2930277168                0  unused
 d:         20980890         22041180  4.2BSD   2048 16384    1
 e:        419441085         43022070  4.2BSD   2048 16384    1
 f:        419441085        462463155  4.2BSD   2048 16384    1
 g:        629153595        881904240  4.2BSD   2048 16384    1
 h:        419441085       1511057835  4.2BSD   2048 16384    1
 i:          8401995       1930498920  4.2BSD   2048 16384    1
 j:        419441085       1938900915  4.2BSD   2048 16384    1
 k:        104872320       2358342000  4.2BSD   2048 16384    1
 l:        209728575       2463214320  4.2BSD   2048 16384    1

So it would seem the block in question resides in my (grossly oversized)
/tmp partition.  I figured that might explain my 3 mysterious hangs, so
let's try to trigger it by filling up /tmp:

# dd if=/dev/zero of=/tmp/test
/tmp: write failed, file system is full
dd: /tmp/test: No space left on device
20640897+0 records in
20640896+0 records out
10568138752 bytes transferred in 198.879 secs (53138397 bytes/sec)

# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/wd0a      9.8G    537M    8.8G     6%    /
/dev/wd0e      197G    2.4G    185G     1%    /home
/dev/wd0d      9.8G    9.8G   -504M   105%    /tmp
/dev/wd0f      197G    6.9G    180G     4%    /usr
/dev/wd0l     98.4G   34.6M   93.5G     0%    /usr/chroots
/dev/wd0g      295G   52.0K    281G     0%    /usr/ftp
/dev/wd0h      197G    1.3G    186G     1%    /usr/local
/dev/wd0i      3.9G    2.0K    3.7G     0%    /usr/obj
/dev/wd0j      197G    8.4G    179G     4%    /var
/dev/wd0k     49.2G   67.4M   46.7G     0%    /var/mysql

Obviously, /tmp filled up with no crash or hang.  If there's anything
else I can do, just let me know.  Here's the dmesg plus some kernel
errors as it downgrades UDMA modes.  (The snapshot was dated 11/31 on
ftp.openbsd.org, all disksets installed and not compiled from source.)

OpenBSD 4.6-current (GENERIC.MP) #370: Wed Dec 30 00:20:24 MST 2009
   dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Pentium(R) 4 CPU 3.20GHz ("GenuineIntel" 686-class) 3.20 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS
,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,CNXT-ID,CX16,xTPR
real mem  = 1061974016 (1012MB)
avail mem = 1020313600 (973MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 02/14/06, BIOS32 rev. 0 @ 0xfd61a,
SMBIOS rev. 2.
34 @ 0xf0320 (59 entries)
bios0: vendor IBM version "2EKT33AUS" date 02/14/2006
bios0: IBM 8215W97
acpi0 at bios0: rev 0
acpi0: tables DSDT FACP TCPA MCFG APIC BOOT ASF! SSDT
acpi0: wakeup devices AZAL(S3) EXP0(S5) EXP1(S5) USB1(S3) USB2(S3)
USB3(S3) USB4(S3) US
BE(S3) SLOT(S5) KBC_(S3) PSM_(S3) COMA(S5) COMB(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Pentium(R) 4 CPU 3.20GHz ("GenuineIntel" 686-class) 3.20 GHz
cpu1:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS
,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,CNXT-ID,CX16,xTPR
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (PEG_)
acpiprt2 at acpi0: bus 2 (EXP0)
acpiprt3 at acpi0: bus 4 (EXP1)
acpiprt4 at acpi0: bus 10 (SLOT)
acpicpu0 at acpi0: FVS, 1600, 1400 MHz
acpicpu1 at acpi0: FVS, 1600, 1400 MHz
acpitz0 at acpi0: critical temperature 255 degC
acpibtn0 at acpi0: PWRB
bios0: ROM list: 0xc0000/0xac00! 0xcb000/0x1000 0xcc000/0x1000
0xcd000/0x800 0xe0000/0x
1800!
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82945G Host" rev 0x02
vga1 at pci0 dev 2 function 0 "Intel 82945G Video" rev 0x02
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
intagp0 at vga1
agp0 at intagp0: aperture at 0xc0000000, size 0x10000000
inteldrm0 at vga1: apic 2 int 16 (irq 5)
drm0 at inteldrm0
"Intel 82945G Video" rev 0x02 at pci0 dev 2 function 1 not configured
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x01:
apic 2 int 22 (irq
9)
azalia0: codecs: Analog Devices AD1981HD
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x01: apic 2 int
17 (irq 11)
pci1 at ppb0 bus 2
em0 at pci1 dev 0 function 0 "Intel PRO/1000MT (82573E)" rev 0x03: apic
2 int 16 (irq 5
), address 00:10:c6:b5:c1:72
ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x01: apic 2 int
16 (irq 5)
pci2 at ppb1 bus 4
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x01: apic 2 int
23 (irq 11)
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x01: apic 2 int
19 (irq 9)
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x01: apic 2 int
18 (irq 10)
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x01: apic 2 int
16 (irq 5)
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x01: apic 2 int
23 (irq 11)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb2 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0xe1
pci3 at ppb2 bus 10
xl0 at pci3 dev 9 function 0 "3Com 3c905C 100Base-TX" rev 0x74: apic 2
int 21 (irq 7),
address 00:01:02:3b:a6:d1
bmtphy0 at xl0 phy 24: 3C905C internal PHY, rev. 6
ichpcib0 at pci0 dev 31 function 0 "Intel 82801GB LPC" rev 0x01: PM disabled
pciide0 at pci0 dev 31 function 2 "Intel 82801GB SATA" rev 0x01: DMA,
channel 0 wired t
o compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <ST31500341AS>
wd0: 16-sector PIO, LBA48, 1430799MB, 2930277168 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 6
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <HL-DT-ST, DVDRAM GSA-4163B, AX13> ATAPI
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 4
ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x01: apic 2
int 19 (irq 9)
iic0 at ichiic0
adt0 at iic0 addr 0x2e: lm96000 rev 0x68
spdmem0 at iic0 addr 0x50: 512MB DDR2 SDRAM non-parity PC2-4200CL5
spdmem1 at iic0 addr 0x52: 512MB DDR2 SDRAM non-parity PC2-5300CL5
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
mtrr: Pentium Pro MTRR support
uhub5 at uhub4 port 1 "Dell Dell USB Keyboard Hub" rev 1.10/2.00 addr 2
uhidev0 at uhub5 port 1 configuration 1 interface 0 "Dell Dell USB
Keyboard" rev 1.10/2
.00 addr 3
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd0 at ukbd0: console keyboard, using wsdisplay0
uhidev1 at uhub5 port 1 configuration 1 interface 1 "Dell Dell USB
Keyboard" rev 1.10/2
.00 addr 3
uhidev1: iclass 3/0, 3 report ids
uhid0 at uhidev1 reportid 1: input=1, output=0, feature=0
uhid1 at uhidev1 reportid 2: input=1, output=0, feature=0
uhid2 at uhidev1 reportid 3: input=3, output=0, feature=0
uhidev2 at uhub4 port 2 configuration 1 interface 0 "Logitech USB
Optical Mouse" rev 2.
00/43.01 addr 4
uhidev2: iclass 3/1
ums0 at uhidev2: 3 buttons, Z dir
wsmouse0 at ums0 mux 0
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
wd0c: id not found reading fsbn 268435455 (wd0 bn 268435455; cn 16709 tn
85 sn 15), ret
rying
wd0c: id not found reading fsbn 268435455 (wd0 bn 268435455; cn 16709 tn
85 sn 15), ret
rying
wd0c: id not found reading fsbn 268435455 (wd0 bn 268435455; cn 16709 tn
85 sn 15), ret
rying
wd0: transfer error, downgrading to Ultra-DMA mode 5
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
wd0c: id not found reading fsbn 268435455 (wd0 bn 268435455; cn 16709 tn
85 sn 15), ret
rying
wd0c: id not found reading fsbn 268435455 (wd0 bn 268435455; cn 16709 tn
85 sn 15), ret
rying
wd0c: id not found reading fsbn 268435455 (wd0 bn 268435455; cn 16709 tn
85 sn 15)
wd0c: id not found reading fsbn 268435455 (wd0 bn 268435455; cn 16709 tn
85 sn 15), ret
rying
wd0c: id not found reading fsbn 268435455 (wd0 bn 268435455; cn 16709 tn
85 sn 15), ret
rying
wd0c: id not found reading fsbn 268435455 (wd0 bn 268435455; cn 16709 tn
85 sn 15), ret
rying
wd0: transfer error, downgrading to Ultra-DMA mode 4
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
wd0c: id not found reading fsbn 268435455 (wd0 bn 268435455; cn 16709 tn
85 sn 15), ret
rying
wd0c: id not found reading fsbn 268435455 (wd0 bn 268435455; cn 16709 tn
85 sn 15), ret
rying
wd0c: id not found reading fsbn 268435455 (wd0 bn 268435455; cn 16709 tn
85 sn 15)
wd0c: id not found reading fsbn 268435455 (wd0 bn 268435455; cn 16709 tn
85 sn 15), ret
rying
wd0c: id not found reading fsbn 268435455 (wd0 bn 268435455; cn 16709 tn
85 sn 15), ret
rying
wd0c: id not found reading fsbn 268435455 (wd0 bn 268435455; cn 16709 tn
85 sn 15), ret
rying
wd0: transfer error, downgrading to Ultra-DMA mode 3
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 3
wd0c: id not found reading fsbn 268435455 (wd0 bn 268435455; cn 16709 tn
85 sn 15), ret
rying
wd0c: id not found reading fsbn 268435455 (wd0 bn 268435455; cn 16709 tn
85 sn 15), ret
rying
wd0c: id not found reading fsbn 268435455 (wd0 bn 268435455; cn 16709 tn
85 sn 15)
wd0c: id not found reading fsbn 268435455 (wd0 bn 268435455; cn 16709 tn
85 sn 15), ret
rying
wd0c: id not found reading fsbn 268435455 (wd0 bn 268435455; cn 16709 tn
85 sn 15), ret
rying
wd0c: id not found reading fsbn 268435455 (wd0 bn 268435455; cn 16709 tn
85 sn 15), ret
rying
wd0: transfer error, downgrading to Ultra-DMA mode 2
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
wd0c: id not found reading fsbn 268435455 (wd0 bn 268435455; cn 16709 tn
85 sn 15), ret
rying
wd0c: id not found reading fsbn 268435455 (wd0 bn 268435455; cn 16709 tn
85 sn 15), ret
rying
wd0c: id not found reading fsbn 268435455 (wd0 bn 268435455; cn 16709 tn
85 sn 15)
uid 0 on /tmp: file system full

--

-RSM

http://www.erratic.ca

Reply via email to