Subject: Re: Core dump after swapctl...
To: Chris Jones <cjones@honors.montana.edu>
From: Simon Burge <simonb@telstra.com.au>
List: port-pmax
Date: 04/22/1998 09:22:48
On Tue, 21 Apr 1998 16:15:31 -0600 (MDT)  Chris Jones wrote:

> I don't know if this is a symptom of a bug in swapctl(2), or that's just
> what triggered the problem, but here goes:
> 
> I edited my /etc/fstab to prioritize my swap partitions.  There were three
> partitions, each of which had its priority changed from 0 to 1, 2, or 3.
> I also added a swapfile, which wasn't previously listed, at priority 0.
> I ran swapctl -l, and it showed the three partitions.  Then I ran swapctl
> -A, and it said:
> 
> swapctl: /dev/rz0b:
> 
> ...and rebooted.  (Not a real informative error message, eh?  I'd bet it
> was trying to say "Device busy," or something similar.)
> 
> The syslog says the following:
> 
> Apr 21 15:50:59 mathfs /netbsd: panic: malloc: out of space in kmem_map
> Apr 21 15:51:00 mathfs /netbsd: syncing disks... 11 11 7 5 5 5 5 5 5 5 5 5
> 5 5 5
>  5 5 5 5 5 giving up
> Apr 21 15:51:00 mathfs /netbsd: 
> Apr 21 15:51:00 mathfs /netbsd: dumping to dev 1501, offset 8
> Apr 21 15:51:00 mathfs /netbsd: dump [..untested..] dumping 25632 pages
> Apr 21 15:51:00 mathfs /netbsd: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
> 18 19 
> 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
> 45 46
>  47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
> 71 72 7
> 3 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
> 98 99 
> 100 succeeded
> Apr 21 15:51:00 mathfs /netbsd: rebooting...

I'm getting these panics regularly on the machine that's the NFS server
for our main FTP machine.  (Is that confusing?  I've got a NetBSD/pmax
1.3 machine (the one panicing) with 6x RZ28 2GB disks ccd'ed together.
The ccd filesystem is NFS mounted on the machine that people FTP to).
This machine has started panicing frequently (couple of times a day),
and the _only_ thing it does is NFS serve the ccd filesystem - no
logins, no other services.

I'm in the middle of rebuilding a kernel now with NMBCLUSTERS set to
4096 to see if this helps.  I'll let people know of the success or
failure...

Simon.