Subject: kern/9313: panic with 1G RAM, 2G swap, NKMEMCLUSTERS=3072
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dogcow@redback.com>
List: netbsd-bugs
Date: 01/28/2000 18:42:45
>Number:         9313
>Category:       kern
>Synopsis:       panic with 1G RAM, 2G swap, NKMEMCLUSTERS=3072
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 28 18:42:01 2000
>Last-Modified:
>Originator:     
>Organization:
Redback Networks
	
>Release:        <NetBSD-current source date>1.4.2ALPHA 28 Jan 2000
>Environment:
	
System: NetBSD globetrack 1.4.2_ALPHA NetBSD 1.4.2_ALPHA (GLOBETRACK) #0: Fri Jan 28 16:09:42 PST 2000 dogcow@fartmangler.redback.com:/amd/elvis/build/moofsrc/nb/syssrc/sys/arch/i386/compile/GLOBETRACK i386


>Description:
	
kernel panic with 'uvm_anon_add: cannot allocate 524946 anons' at swap -A
time during multiuser boot.

>How-To-Repeat:
Build a GENERIC kernel with RAID, options MAXUPRC=200, options 
NMBCLUSTERS=4096 and options NKMEMCLUSTERS=3072. Boot on a machine 
with 1G of ram and 2G of swap. Watch as machine panics at swap -a time
with 'uvm_anon_add: cannot allocate 524946 anons' (on my system, anyway).

If swap is reduced to 1G, the number goes down to 262473. If swap is
reduced to .5G, machine boots. If NKMEMCLUSTERS is set to the default
(1536, by my calculation), machine boots with 2G of swap.

Note that the machine does not boot at all with 1.4.1. (Don't remember the
message, sorry.)
	
>Fix:
Decrease swap until machine boots. At 512M of swap, it booted for me.

>Audit-Trail:
>Unformatted: