Subject: Re: unable to allocate scsipi_xfer.
To: Peter Seebach <seebs@plethora.net>
From: Paul Ripke <stixpjr@ozemail.com.au>
List: current-users
Date: 05/27/2003 09:19:17
On Tuesday, May 27, 2003, at 00:29 Australia/Sydney, Peter Seebach 
wrote:

Just a hunch, but you may be running into a variant of kern/20191. I'm
sure RAIDframe isn't the only disk device driver that expects to be able
to allocate lumps of memory to service write I/O requests (esp 
pageouts).

> In message <20030526125929.GL15029@canolog.ninthwonder.com>, Allen 
> Briggs write
> s:
>> On Mon, May 26, 2003 at 02:14:10AM -0500, Peter Seebach wrote:
>>> (x86/1.6T).
>>> I've started getting "unable to allocate scsipi_xfer" messages from 
>>> one
>>> of my machines.
>>
>> I suspect it would be quite useful to know what kind of SCSI/ATAPI
>> devices you have in your system, and how they're configured.  Perhaps
>> you could post a dmesg?
>
> Good point.
>
> Here's dmesg... Note that the buffer survived reboot, so I have some 
> old
> error messages.
>
> The reboot at the bottom happened when I noticed that:
> 1.  The backup I was running using an NFS disk as scratch space had 
> stopped
> writing new data.
> 2.  I had 960MB in use for file cache.
> 3.  Nothing new was happening.
> 4.  Attempts to allocate memory were failing, because all the memory 
> was
> tied up for file cache.
>
> Perhaps that's relevant...
>
> sd0(ahc0:0:0:0): unable to allocate scsipi_xfer
> sd0: not queued, error 12
> sd0(ahc0:0:0:0): unable to allocate scsipi_xfer
> sd0: not queued, error 12
> sd0(ahc0:0:0:0): unable to allocate scsipi_xfer
> sd0: not queued, error 12
> sd1(ahc0:0:1:0): unable to allocate scsipi_xfer
> sd1: not queued, error 12
> sd1(ahc0:0:1:0): unable to allocate scsipi_xfer
> sd1: not queued, error 12
> sd1(ahc0:0:1:0): unable to allocate scsipi_xfer
> sd1: not queued, error 12
> sd0(ahc0:0:0:0): unable to allocate scsipi_xfer
> sd0: not queued, error 12
> sd0(ahc0:0:0:0): unable to allocate scsipi_xfer
> sd0: not queued, error 12
> sd0(ahc0:0:0:0): unable to allocate scsipi_xfer
> sd0: not queued, error 12
> sd0(ahc0:0:0:0): unable to allocate scsipi_xfer
> sd0: not queued, error 12
> sd0(ahc0:0:0:0): unable to allocate scsipi_xfer
> sd0: not queued, error 12
> sd0(ahc0:0:0:0): unable to allocate scsipi_xfer
> sd0: not queued, error 12
> sd0(ahc0:0:0:0): unable to allocate scsipi_xfer
> sd0: not queued, error 12
> sd0(ahc0:0:0:0): unable to allocate scsipi_xfer
> sd0: not queued, error 12
> sd0(ahc0:0:0:0): unable to allocate scsipi_xfer
> sd0: not queued, error 12
> sd0(ahc0:0:0:0): unable to allocate scsipi_xfer
> sd0: not queued, error 12
> sd0(ahc0:0:0:0): unable to allocate scsipi_xfer
> sd0: not queued, error 12
> sd0(ahc0:0:0:0): unable to allocate scsipi_xfer
> sd0: not queued, error 12
> sd0(ahc0:0:0:0): unable to allocate scsipi_xfer
> sd0: not queued, error 12
> sd0(ahc0:0:0:0): unable to allocate scsipi_xfer
> sd0: not queued, error 12
> sd0(ahc0:0:0:0): unable to allocate scsipi_xfer
> sd0: not queued, error 12
> sd0(ahc0:0:0:0): unable to allocate scsipi_xfer
> sd0: not queued, error 12
> sd0(ahc0:0:0:0): unable to allocate scsipi_xfer
> sd0: not queued, error 12
> sd0(ahc0:0:0:0): unable to allocate scsipi_xfer
> sd0: not queued, error 12
> sd0(ahc0:0:0:0): unable to allocate scsipi_xfer
> sd0: not queued, error 12
> sd0(ahc0:0:0:0): unable to allocate scsipi_xfer
> sd0: not queued, errror 12
> sd0(ahc0:0:0:0): unable o allocate scsipi_xfer
> sd0: not queued, error 12
> sd0(ahc0:0:0:0): unable to allocate scsipi_xfer
> /var: got error 12 while accessing filesystem
> panic: softdep_deallocate_dependencies: unrecovered I/O error
> syncing disks... sd1(ahc0:0:1:0): unable to allocatueued, error 12
> sd0(ahc0:0:0:0):rror 12
> to allocate scsipi_xfer
> sd0: not queued, error 1NetBSD 1.6T (GUILD) #0: Sun May 25 17:01:21 
> CDT 2003
> 	seebs@guild.plethora.net:/usr/src/sys/arch/i386/compile/GUILD
> total memory = 1023 MB
> avail memory = 947 MB
> using 6144 buffers containing 52508 KB of memory
> BIOS32 rev. 0 found at 0xfdb90
> mainbus0 (root)
> mainbus0: Intel MP Specification (Version 1.4) (AMI      CNB20HE     )
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: Intel Pentium III (686-class), 999.61 MHz, id 0x68a
> cpu0: features 
> 383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
> cpu0: features 383fbff<PGE,MCA,CMOV,PAT,PSE36,MMX>
> cpu0: features 383fbff<FXSR,SSE>
> cpu0: I-cache 16 KB 32b/line 4-way, D-cache 16 KB 32b/line 4-way
> cpu0: L2 cache 256 KB 32b/line 8-way
> cpu0: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
> cpu0: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
> cpu0: calibrating local timer
> cpu0: apic clock running at 133 MHz
> cpu0: 8 page colors
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: starting
> cpu1: Intel Pentium III (686-class), 999.52 MHz, id 0x68a
> cpu1: features 
> 383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
> cpu1: features 383fbff<PGE,MCA,CMOV,PAT,PSE36,MMX>
> cpu1: features 383fbff<FXSR,SSE>
> cpu1: I-cache 16 KB 32b/line 4-way, D-cache 16 KB 32b/line 4-way
> cpu1: L2 cache 256 KB 32b/line 8-way
> cpu1: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
> cpu1: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
> mpbios: bus 0 is type PCI
> mpbios: bus 1 is type PCI
> mpbios: bus 2 is type PCI
> mpbios: bus 3 is type ISA
> ioapic0 at mainbus0 apid 4 (I/O APIC)
> ioapic0: pa 0xfec00000, version 11, 16 pins
> ioapic1 at mainbus0 apid 5 (I/O APIC)
> ioapic1: pa 0xfec01000, version 11, 16 pins
> pci0 at mainbus0 bus 0: configuration mode 1
> pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
> pchb0 at pci0 dev 0 function 0
> pchb0: vendor 0x1166 product 0x0008 (rev. 0x23)
> ppb0 at pci0 dev 0 function 1: vendor 0x1166 product 0x0009 (rev. 0x01)
> pci1 at ppb0 bus 1
> pci1: i/o space, memory space enabled, rd/line, wr/inv ok
> vga0 at pci1 dev 0 function 0: vendor 0x102b product 0x0521 (rev. 0x01)
> wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation)
> wsmux1: connecting to wsdisplay0
> pchb1 at pci0 dev 0 function 2
> pchb1: vendor 0x1166 product 0x0006 (rev. 0x01)
> pchb2 at pci0 dev 0 function 3
> pchb2: vendor 0x1166 product 0x0006 (rev. 0x01)
> pci2 at pchb2 bus 2
> pci2: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
> pciide0 at pci0 dev 4 function 0: Promise Ultra100/ATA Bus Master IDE 
> Accelerator (rev. 0x02)
> pciide0: bus-master DMA support present
> pciide0: primary channel configured to native-PCI mode
> pciide0: using apic 5 int 12 (irq 11) for native-PCI interrupt
> wd0 at pciide0 channel 0 drive 0: <WDC WD1000JB-00CRA1>
> wd0: drive supports 16-sector PIO transfers, LBA addressing
> wd0: 95396 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 195371568 
> sectors
> wd0: 32-bit data port
> wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 
> (Ultra/100)
> wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) 
> (using DMA data transfers)
> pciide0: secondary channel configured to native-PCI mode
> pciide0: disabling secondary channel (no drives)
> ahc0 at pci0 dev 5 function 0
> ahc0: interrupting at apic 5 int 10 (irq 5)
> ahc0: aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
> scsibus0 at ahc0: 16 targets, 8 luns per target
> ahc1 at pci0 dev 5 function 1
> ahc1: interrupting at apic 5 int 11 (irq 10)
> ahc1: aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/253 SCBs
> scsibus1 at ahc1: 16 targets, 8 luns per target
> fxp0 at pci0 dev 6 function 0: i82559 Ethernet, rev 8
> fxp0: interrupting at apic 5 int 15 (irq 9)
> fxp0: Ethernet address 00:30:48:10:82:69
> inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
> inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> pcib0 at pci0 dev 15 function 0
> pcib0: vendor 0x1166 product 0x0200 (rev. 0x51)
> pciide1 at pci0 dev 15 function 1: ServerWorks OSB4 IDE Controller 
> (rev. 0x00)
> pciide1: bus-master DMA support present
> pciide1: primary channel configured to compatibility mode
> atapibus0 at pciide1 channel 0: 2 targets
> cd0 at atapibus0 drive 0: <PLEXTOR CD-R   PX-W8432T, , 1.07> cdrom 
> removable
> cd0: 32-bit data port
> cd0: drive supports PIO mode 4, DMA mode 2
> pciide1: primary channel interrupting at irq 14
> cd0(pciide1:0:0): using PIO mode 4, DMA mode 2 (using DMA data 
> transfers)
> pciide1: secondary channel configured to compatibility mode
> pciide1: secondary channel interrupting at irq 15
> ohci0 at pci0 dev 15 function 2: vendor 0x1166 product 0x0220 (rev. 
> 0x04)
> ohci0: can't map mem space
> isa0 at pcib0
> com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
> com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
> pckbc0 at isa0 port 0x60-0x64
> pckbd0 at pckbc0 (kbd slot)
> pckbc0: using irq 1 for kbd slot
> wskbd0 at pckbd0: console keyboard, using wsdisplay0
> pms0 at pckbc0 (aux slot)
> pckbc0: using irq 12 for aux slot
> wsmouse0 at pms0 mux 0
> lpt0 at isa0 port 0x378-0x37b irq 7
> pcppi0 at isa0 port 0x61
> midi0 at pcppi0: PC speaker
> spkr0 at pcppi0
> sysbeep0 at pcppi0
> isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
> npx0 at isa0 port 0xf0-0xff: using exception 16
> fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
> fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
> isapnp0: no ISA Plug 'n Play devices found
> apm0 at mainbus0: Power Management spec V1.2
> APM get event: interface not connected (0x30b)
> ioapic1: enabling
> ioapic0: enabling
> scsibus0: waiting 2 seconds for devices to settle...
> scsibus1: waiting 2 seconds for devices to settle...
> APM get event: interface not connected (0x30b)
> APM get event: interface not connected (0x30b)
> sd0 at scsibus0 target 0 lun 0: <SEAGATE, ST39175LW, 0001> disk fixed
> sd0: 8683 MB, 11721 cyl, 5 head, 303 sec, 512 bytes/sect x 17783240 
> sectors
> sd0: sync (25.00ns offset 15), 16-bit (80.000MB/s) transfers, tagged 
> queueing
> sd1 at scsibus0 target 1 lun 0: <SEAGATE, ST318436LW, 0005> disk fixed
> sd1: 17522 MB, 14384 cyl, 6 head, 415 sec, 512 bytes/sect x 35885168 
> sectors
> sd1: sync (12.50ns offset 31), 16-bit (160.000MB/s) transfers, tagged 
> queueing
> APM get event: interface not connected (0x30b)
> APM get event: interface not connected (0x30b)
> APM get event: interface not connected (0x30b)
> APM get event: interface not connected (0x30b)
> APM get event: interface not connected (0x30b)
> APM get event: interface not connected (0x30b)
> APM get event: interface not connected (0x30b)
> APM get event: interface not connected (0x30b)
> st0 at scsibus1 target 5 lun 0: <SONY, SDT-5000, 3.02> tape removable
> st0: density code 19, 512-byte blocks, write-enabled
> st0: async, 8-bit transfers
> APM get event: interface not connected (0x30b)
> apm: Last error 0x30b occurred 10 times; giving up.
> boot device: sd0
> root on sd0a dumps on sd0b
> root file system type: ffs
> cpu1: CPU 1 running
> wsdisplay0: screen 1 added (80x25, vt100 emulation)
> wsdisplay0: screen 2 added (80x25, vt100 emulation)
> wsdisplay0: screen 3 added (80x25, vt100 emulation)
> wsdisplay0: screen 4 added (80x25, vt100 emulation)
> syncing disks... 1 done
> rebooting...

Cheers,
--
Paul Ripke
Unix/OpenVMS/TSM/DBA
101 reasons why you can't find your Sysadmin:
68: It's 9AM. He/She is not working that late.
-- Koos van den Hout