Subject: port-arm32/8402: pmap: Cannot allocate physical memory for L1 (12)
To: None <gnats-bugs@gnats.netbsd.org>
From: Thilo Manske <thilo@HEH.Uni-Oldenburg.DE>
List: netbsd-bugs
Date: 09/13/1999 17:58:15
>Number:         8402
>Category:       port-arm32
>Synopsis:       pmap: Cannot allocate physical memory for L1 (12)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-arm32-maintainer (NetBSD/arm32 Portmaster)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 13 17:50:00 1999
>Last-Modified:
>Originator:     Thilo Manske
>Organization:
	
>Release:        NetBSD current, Aug 1999
>Environment:
	
System: NetBSD RiscPC 1.4K NetBSD 1.4K (ZardoZ) #93: Sun Aug 22 03:53:48 MEST 1999 thilo@RiscPC:/usr/src/sys/arch/arm32/compile/ZardoZ arm32

RISCPC, StrongARM (STM^ bug), 40MB memory (2MB VRAM), 

>Description:
After some memory intensive tasks (Xserver, ramdisk (mount_mfs), a lot of
compiling (for some time two big makes in parallel), dozens of logins via sshd,
a lot of bashes) the kernel startet throwing out these messages:
  
Sep 14 00:18:51 RiscPC /netbsd: pmap: Cannot allocate L1 page table, sleeping ..
.
Sep 14 00:18:51 RiscPC /netbsd: pmap: Cannot allocate physical memory for L1 (12
)
Sep 14 00:18:51 RiscPC /netbsd: pmap: Cannot allocate L1 page table, sleeping ..
.
Sep 14 00:18:51 RiscPC /netbsd: pmap: Cannot allocate physical memory for L1 (12
)
Sep 14 00:19:01 RiscPC /netbsd: pmap: Cannot allocate L1 page table, sleeping ..
.
Sep 14 00:19:01 RiscPC /netbsd: pmap: Cannot allocate physical memory for L1 (12
)
Sep 14 00:19:01 RiscPC /netbsd: pmap: Cannot allocate L1 page table, sleeping ..
.
Sep 14 00:19:01 RiscPC /netbsd: pmap: Cannot allocate physical memory for L1 (12
)
[...]
  
I wasn't able to recover from this. ps, top, skill made all consoles
and remote terminals freeze and after a while I wasn't able to log into this
machine anymore. The start of the kernel debugger caused an immediatly
reboot...
  
This may be a similar problem, as Jason Thorpe describes in PR#5666 over a
year ago, but I'm not sure since he writes about L2 PTs.
(http://www.NetBSD.org/cgi-bin/query-pr-single.pl?number=5666)

>How-To-Repeat:
I'm not sure if this really triggers it but I see a great chance :-):
cd /usr/xsrc;make cleandir && make build &
cd /usr/src;make cleandir && make build &
xdm
"log in and do something with X"

>Fix:
>Audit-Trail:
>Unformatted: