Subject: pagedeamon deadlock (3) with back trace
To: None <>
From: Gilbert Fernandes <>
List: current-users
Date: 02/20/2004 06:04:19
sorry i was out of home yesterday. my gf is a
stylist and she made clothes for an event where
kenzo people were present and there was plenty,
plenty beautiful girls and i had access to the
backstage so.. well, i went there rather than
checking my netbsd for a backtrace. i know you
will forgive me huh ! :D

ok. here we go for the backtrace. my machine
runs a 

NetBSD 1.6ZK NetBSD 1.6ZK (X30)
#0: Wed Feb 18 23:33:45 UTC 2004 i386

my kernel is a GENERIC copy with apm turned on,
dont disable interrupts in apm. no other change

i am using softdeps.

dmesg follows if required but probably not really


pagedeamon: deadlock detected!
panic: pagedaemon deadlock
Stopped in pid 14,1 (pagedaemon) at netbsd:cpu_Debugger+0x04: leave
db> bt
cpu_Debugger(c6ca1d18,0,c6ca1d0,c,a,c06c01bd) at netbsd:cpu_Debugger+0x04
panic(c06c0bf1,2000,c6ca1d5c,c03d7191,1000) at netbsd:panic+0x11d
uvm_wait(c06c01bd,0,0,bff04180,4) at netbsd:uvm_wait+0xb2
uvm_km_kmemalloc1(c07885c0,0,2000,0,ffffffff) at netbsd:uvm_km_kmemalloc1+0x127
malloc(2000,c0754220,0,c7539dd0,ffffffff) at netbsd:malloc+0xef
softdep_disk_io_initiation(c0f4e3e8,2,1,c6ca1e0a,c6ca1e18) at netbsd:softdep_disk_io_initiation+0xf3
spec_strategy(c6ca1e24,8e940000,19e4,1ec2000,c05a8ca0) at netbsd:spec_strategy+0x17c
VOP_STRATEGY(c6970a4,c0f4e3e8,c6ca1e7c,c0579c0d,9dc8f440) at netbsd:VOP_STRATEGY+0x28
ufs_strategy(c6ca1e84,53a2,c6ca1ecc,c03f2dcb,c05a8ca0) at netbsd:ufs_strategy+0x67
VOP_STRATEGY(c6f3c0f0,c0f4e3e8,f423a,0,c05a8460) at netbsd:VOP_STRATEGY+0x28
bwrite(c0f4e3e8,0,c6ca1f0c,6,c05a8460) at netbsd:bwrite+0xdb
VOP_WRITE(c0f4e38,100,c6ca1f1c,c0380739,0) at netbsd:VOP_WRITE+0x25
getnewbuf(100,1,1,4a100,1400) at netbsd:getnewbuf+0x132
buf_trim(ebc5,cff0,cbca1f8c,4556,ebc5) at netbsd:buf_trim+0x14
buf_drain(0,cff0,c6ca1f8c,c03e2710,8aa0) at netbsd:buf_drain+0x71
uvm_pageout(c6c686b4,879000,882000,0,c010030c) at netbsd:uvm_pageout+0x56

ps (first two lines)

603  596  596 1000 2 0x4002    1    gzip pipdwt
596  764  596 1000 2 0x4002    1     tar kmgetw

machine was doing a tar xf of a 200 mb file
(a tape archive backup where i need to grab source
code that handles quickcam express in USB for
someone waiting for it - no luck huh...)

dmesg follows :

NetBSD 1.6ZK (X30) #0: Wed Feb 18 23:33:45 UTC 2004
total memory = 246 MB
avail memory = 234 MB
BIOS32 rev. 0 found at 0xfd7f0
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Mobile Pentium III (686-class), 1196.06 MHz, id 0x6b4
cpu0: features 383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 383f9ff<PGE,MCA,CMOV,PAT,PSE36,MMX>
cpu0: features 383f9ff<FXSR,SSE>
cpu0: I-cache 16 KB 32b/line 4-way, D-cache 16 KB 32b/line 4-way
cpu0: L2 cache 512 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: 16 page colors
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: Intel 82830MP CPU to I/O Bridge 1 (rev. 0x04)
agp0 at pchb0: detected 8060k stolen memory
agp0: aperture size is 128M
agp0: aperture at 0xe0000000, size 0x8000000
vga1 at pci0 dev 2 function 0: Intel 82830MP Integrated Video (rev. 0x04)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
Intel 82830MP Integrated Video (miscellaneous display) at pci0 dev 2 function 1 not configured
uhci0 at pci0 dev 29 function 0: Intel 82801CA/CAM USB Controller (rev. 0x02)
uhci0: interrupting at irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1: Intel 82801CA/CAM USB Controller (rev. 0x02)
uhci1: interrupting at irq 11
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2: Intel 82801CA/CAM USB Controller (rev. 0x02)
uhci2: interrupting at irq 11
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ppb0 at pci0 dev 30 function 0: Intel 82801BAM Hub-to-PCI Bridge (rev. 0x42)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
cbb0 at pci1 dev 0 function 0: Ricoh 5C476 PCI-CardBus bridge (rev. 0xa8)
cbb1 at pci1 dev 0 function 1: Ricoh 5C476 PCI-CardBus bridge (rev. 0xa8)
Ricoh 5C552 PCI-CardBus bridge/Firewire (Firewire serial bus, interface 0x10) at pci1 dev 0 function 2 not configured
wi0 at pci1 dev 2 function 0: Intersil Prism2.5 Wireless Lan
wi0: interrupting at irq 11
wi0: 802.11 address 00:00:00:00:00:00
wi0: using RF:PRISM2.5 MAC:ISL3874A(Mini-PCI)
wi0: Intersil Firmware: Primary (1.1.0), Station (1.4.9)
wi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
fxp0 at pci1 dev 8 function 0: Intel PRO/100 VE Network Controller, rev 66
fxp0: interrupting at irq 11
fxp0: Ethernet address 00:00:00:00:00:00
inphy0 at fxp0 phy 1: i82562ET 10/100 media interface, rev. 0
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
cbb0: interrupting at irq 11
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0
pcmcia0 at cardslot0
cbb1: interrupting at irq 11
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 5 device 0
pcmcia1 at cardslot1
pcib0 at pci0 dev 31 function 0
pcib0: Intel 82801CAM LPC Interface (rev. 0x02)
piixide0 at pci0 dev 31 function 1
piixide0: Intel 82801CA IDE Controller (ICH3) (rev. 0x02)
piixide0: bus-master DMA support present
piixide0: primary channel wired to compatibility mode
piixide0: primary channel interrupting at irq 14
atabus0 at piixide0 channel 0
piixide0: secondary channel wired to compatibility mode
piixide0: secondary channel interrupting at irq 15
atabus1 at piixide0 channel 1
Intel 82801CA/CAM SMBus Controller (SMBus serial bus, revision 0x02) at pci0 dev 31 function 3 not configured
auich0 at pci0 dev 31 function 5: i82801CA (ICH3) AC-97 Audio
auich0: interrupting at irq 11
auich0: The 2nd codec is ready.
auich0: ac97: Analog Devices AD1981A codec; headphone, 20 bit DAC, no 3D stereo
auich0: ac97: ext id 601<AC97_22,AMAP,VRA>
Intel 82801CA/CAM Modem (modem communications, revision 0x02) at pci0 dev 31 function 6 not configured
isa0 at pcib0
lpt2 at isa0 port 0x3bc-0x3bf irq : polled
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
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
isapnp0: no ISA Plug 'n Play devices found
apm0 at mainbus0: Power Management spec V1.2
auich0: measured ac97 link rate at 39917 Hz, will use 48000 Hz
audio0 at auich0: full duplex, mmap, independent
raidattach: Asked for 8 units
Kernelized RAIDframe activated
wd0 at atabus0 drive 0: <IC25N040ATCS04-0>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 38154 MB, 77520 cyl, 16 head, 63 sec, 512 bytes/sect x 78140160 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data transfers)
Searching for RAID components...
boot device: wd0
root on wd0a dumps on wd0b
mountroot: trying smbfs...
mountroot: trying coda...
mountroot: trying msdos...
mountroot: trying cd9660...
mountroot: trying ntfs...
mountroot: trying nfs...
mountroot: trying lfs...
mountroot: trying ext2fs...
mountroot: trying ffs...
root file system type: ffs
init: copying out path `/sbin/init' 11
wsdisplay0: screen 1 added (80x50, vt100 emulation)
wsdisplay0: screen 2 added (80x50, vt100 emulation)
wsdisplay0: screen 3 added (80x50, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)

Gilbert Fernandes