Subject: Re: out of space in kmem_map
To: None <phiber@radicalmedia.com, port-arc@netbsd.org>
From: Noriyuki Soda <soda@sra.co.jp>
List: port-arc
Date: 02/20/2001 16:05:06
> and I've just turned up an interesting panic when trying to mount
> an msdos filesystem...
> 
> panic: malloc: out of space in kmem_map                                         
You may be able to resolve this problem by increasing NKMEMPAGES
like follows:

	in kernel configuration file:
		options NKMEMPAGES=NEWVALUE
	or directly changing kernel binary:
		# gdb --write /netbsd
		(gdb) set nkmempages=NEWVALUE
		(gdb) quite
		# objcopy --output-target=ecoff-littlemips netbsd netbsd.ecoff

The default value of nkmempages is:
	(total_physical_memory)/4/4096,
so you have to specify larger value than this for NEWVALUE.
(4096 is page size).

> Why on earth would kmem_map run out of space every time when mounting an
> msdos filesystem?

I'm not sure why msdosfs cause this symptom for now, though.
--
soda