Subject: Paul A Vixie: NetBSD/i386 1.2, 128MB, "mp_map full", help?
To: None <port-i386@NetBSD.ORG>
From: Paul A Vixie <paul@vix.com>
List: port-i386
Date: 01/12/1997 23:49:14
Thor Simon suggested that I forward this question to the port-i386 list.
A raw upgrade to -current is not in the cards -- these are embedded products
and they are a 19-hour plane flight from where I'm sitting. If any of you
are presently consulting on NetBSD internals and have time available, I am
willing to hire the work needed to fix the problem below.
------- Forwarded Message
Path: nnrp.vix.com!vixie
From: vixie@vix.com (Paul A Vixie)
Message-ID: <VIXIE.97Jan12223511@wisdom.vix.com>
Date: 13 Jan 1997 06:35:11 GMT
Organization: Vixie Enterprises
Distribution:
Newsgroups: comp.unix.bsd.netbsd.misc
Subject: NetBSD/i386 1.2, 128MB, "mp_map full", help?
I figured out:
options EXTMEM_SIZE=130048
maxusers 256
I edited /sys/conf/param.c to
change:
#define NVNODE (NPROC + NTEXT + 100)
to
#define NVNODE (2 * NPROC + NTEXT + 100)
...since my application really does want to have ~4K open descriptors.
The trouble is, when I start really using that number of descriptors,
the kernel gets its nuts in a knot with "mb_map full" errors and
eventual panics. So I did:
options NMBCLUSTERS=1024
The result is a lot of panics like these:
panic: ptdi 1ba063
panic: malloc: out of space in kmem_map
Now, I don't know what the PTDI error means, but I gathered that the
kmem_map size was set to an odd constant involving 6*1024*1024/4096, so I
decided to see if something larger would work:
options NKMEMCLUSTERS=4096
But with this set, the kernel does not even boot. Right after telling me
how many bytes of main memory it found, I get a "panic: ptdi" and death.
I remember BSD/OS 1.0 having problems like this, and I remember working
around it with just "options NKMEMCLUSTERS=4096" and "maxusers 256". I am
not a PMAP kind of guy and I can't quite understand why it's not working
for NetBSD/i386 1.2.
Anybody got a helpful suggestion?
- --
Paul Vixie
La Honda, CA "Illegitimibus non carborundum."
<paul@vix.com>
pacbell!vixie!paul
------- End of Forwarded Message