Subject: I just got a "panic: pmap_physpage_alloc: no pages available after 5 tries"
To: None <port-alpha@netbsd.org>
From: R. C. Dowdeswell <elric@mabelode.imrryr.org>
List: port-alpha
Date: 02/03/1999 16:49:14
Here is the dmesg output:

Copyright (c) 1996, 1997, 1998, 1999
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.3I (MABELODE) #0: Mon Jan 25 17:28:11 PST 1999
    elric@mabelode.imrryr.org:/usr/src/sys/arch/alpha/compile/MABELODE
AlphaStation 200 4/233, 233MHz
8192 byte page size, 1 processor.
real mem = 67108864 (2048000 reserved for PROM, 65060864 used by NetBSD)
avail mem = 54468608
using 794 buffers containing 6504448 bytes of memory
mainbus0 (root)
cpu0 at mainbus0: ID 0 (primary), 21064A (pass 1.1)
apecs0 at mainbus0: DECchip 21071 Core Logic chipset
apecs0: DC21071-CA pass 2, 64-bit memory bus
apecs0: DC21071-DA pass 2
pci0 at apecs0 bus 0
pci0: i/o enabled, memory enabled
ncr0 at pci0 dev 6 function 0: ncr 53c810 fast10 scsi
ncr0: interrupting at isa irq 11
ncr0: minsync=25, maxsync=206, maxoffs=8, 16 dwords burst, normal dma fifo
ncr0: single-ended, open drain IRQ driver
ncr0: restart (scsi reset).
scsibus0 at ncr0: 8 targets, 8 luns per target
sd0 at scsibus0 targ 0 lun 0: <SEAGATE, ST32550W SUN2.1G, 0414> SCSI2 0/direct fixed
sd0(ncr0:0:0): 10.0 MB/s (100 ns, offset 8)
sd0: 2048MB, 3511 cyl, 11 head, 108 sec, 512 bytes/sect x 4194995 sectors
sd1 at scsibus0 targ 2 lun 0: <SEAGATE, ST32550W SUN2.1G, 0414> SCSI2 0/direct fixed
sd1(ncr0:2:0): 10.0 MB/s (100 ns, offset 8)
sd1: 2048MB, 3511 cyl, 11 head, 108 sec, 512 bytes/sect x 4194995 sectors
cd0 at scsibus0 targ 6 lun 0: <SONY, CD-ROM CDU-55S, 1.0t> SCSI2 5/cdrom removable
sio0 at pci0 dev 7 function 0: vendor 0x8086 product 0x0484 (rev. 0x84)
de0 at pci0 dev 11 function 0
de0: interrupting at isa irq 5
de0: DEC 21040 [10Mb/s] pass 2.4
de0: address 00:00:f8:21:6c:68
vga0 at pci0 dev 12 function 0: vendor 0x5333 product 0x8811 (rev. 0x00)
wsdisplay0 at vga0: console (80x25, sun emulation)
wsdisplay0: screen 1 added (80x25, sun emulation)
wsdisplay0: screen 2 added (80x25, sun emulation)
wsdisplay0: screen 3 added (80x25, sun emulation)
wsdisplay0: screen 4 added (80x25, sun emulation)
wsdisplay0: screen 5 added (80x25, sun emulation)
wsdisplay0: screen 6 added (80x25, sun emulation)
wsdisplay0: screen 7 added (80x25, sun emulation)
isa0 at sio0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
lpt0 at isa0 port 0x3bc-0x3bf irq 7
aria0 at isa0 port 0x290-0x297 irq 10: dsp SC18025, SC18075 mixer
audio0 at aria0
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
mcclock0 at isa0 port 0x70-0x71: mc146818 or compatible
wscons: wskbd0 glued to wsdisplay0 (console)
root on sd0a dumps on sd0b
root file system type: ffs
de0: enabling 10baseT port
panic: pmap_physpage_alloc: no pages available after 5 tries
syncing disks... panic: lockmgr: locking against myself

I used to get this with 16MB RAM, a lot, and I thought that it was
because the minimum specs of the Alpha port were 32MB.  But now I
have 64MB, and got it.  The only thing that I was doing was running
a program that I'm guessing was running wild malloc(3)'ing memory
out of control.  (Yes, I am debugging it... :)

So, is this is well known problem, is there a solution, who would
be the best person to talk to about it?  I've looked for the code,
and note that it is in /sys/arch/alpha/alpha/pmap.c, but don't
really know how to go about fixing it.

 == Roland
 == http://www.imrryr.org/~elric/