Subject: Virtual Memory Problems with 1.2
To: None <port-pmax@NetBSD.ORG>
From: Bill Harris <billh@airmail.net>
List: port-pmax
Date: 12/13/1996 15:25:33
We've got a 5k/240 that we tried to put into production as an Apache
Web server this morning.  We had been testing it with no problems, but
when we actually threw the user load, the system paniced after about 60 
seconds and burped the following message to the console and logs.


Dec 13 10:18:28 gatekeeper /netbsd: panic: vm_fork: no more kernel virtual
memor
y
Dec 13 10:18:28 gatekeeper /netbsd: stacktrace_subr+4c
(c4355000,0,bf980000,ffff
ef1c) ra 80103190 sz 136
Dec 13 10:18:28 gatekeeper /netbsd: stacktrace+18
(c4355000,0,bf980000,ffffef1c)
 ra 800ff6fc sz 32
Dec 13 10:18:28 gatekeeper /netbsd: 800ff6b4+48 (100,0,bf980000,ffffef1c)
ra 800
474b0 sz 32
Dec 13 10:18:28 gatekeeper /netbsd: 80047450+60
(80114720,80118820,ffffef1c,c445
0000) ra 800d8440 sz 24
Dec 13 10:18:28 gatekeeper /netbsd: 800d83ec+54
(80114720,80118820,ffffef1c,c445
0000) ra 8003d520 sz 32
Dec 13 10:18:28 gatekeeper /netbsd: 8003d000+520
(80114720,80118820,ffffef1c,c44
50000) ra 8003cff0 sz 40
Dec 13 10:18:28 gatekeeper /netbsd: 8003cfe0+10
(80114720,80118820,ffffef1c,c445
0000) ra 80102354 sz 24
Dec 13 10:18:29 gatekeeper /netbsd: trap+6c4
(80114720,80118820,ffffef1c,c445000
0) ra 80030d44 sz 112
Dec 13 10:18:29 gatekeeper /netbsd: mips_r2000_UserGenException+c0
(80114720,801
18820,ffffef1c,423f98) ra 0 sz 0
Dec 13 10:18:29 gatekeeper /netbsd: User-level: pid 105
Dec 13 10:18:29 gatekeeper /netbsd: syncing disks... 17 17 14 8 1 1 1 1 1 1
1 1
1 1 1 1 1 1 1 1 giving up      

The system has 128 megs of ram, along with 128 megs of swap.

pstat -s gives the following:
Device      1K-blocks     Used    Avail Capacity  Type
/dev/rz1b      131056        4   131052     0%    Interleaved 

We had to touch the /var/run/dev.pid file, then it initialized the swap
fine.

There kernel specifies /dev/rz1b as the swap partition and appears to see
it fine.
There are no /dev/swap device entries, and I'm not sure if it needs any. 
However,
these virtual memory errors are making me wonder if the swapper is working
correctly.

Any ideas.

bill
---:
Bill Harris
Director of Systems, Internet America
billh@airmail.net