Subject: Re: panic: malloc: out of space in kmem_map
To: Simon Burge <email@example.com>
From: Manuel Bouyer <firstname.lastname@example.org>
Date: 04/23/1998 11:25:27
On Apr 23, Simon Burge wrote
> I've got a NetBSD/pmax machine (a 5000/240 with 24MB of RAM) running
> NetBSD 1.3. It's got 7x 2GB RZ28 SCSI disks - one "boot" disk and the
> other six striped on a ccd. It's only purpose is to NFS export the
> ccd filesystem; this filesystem holds ftp area for our group, and is
> exported read/write to the machine that handles the actual ftping and
> read-only to the rest of the world (inside our company).
> Quite often (a couple of times a day), I get the following panic:
> Apr 21 00:55:12 fhfss /netbsd: panic: malloc: out of space in kmem_map
> Apr 21 00:55:12 fhfss /netbsd: syncing disks... 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 giving up
You need to increase the NKMEMCLUSTERS value (documented in the "options"
man page). I have it set to NKMEMCLUSTERS=4096 on my i386 NFS server.
> and lots of:
> Apr 20 22:00:19 fhfss /netbsd: mb_map full
> The basic changes I've made from the GENERIC kernel are:
> options "NMBCLUSTERS=4096" # extra mbuf clusters
> options CCDNBUF=16 # number of buffers per ccd device
4096 should be enougth. But maybe the numbers of NMBCLUSTERS vas limited by
the too low value of NKMEMCLUSTERS. I have it set to 2048 on my i386.
Manuel Bouyer, LIP6, Universite Paris VI. Manuel.Bouyer@lip6.fr