Subject: MAX_KMAPENT is making me crazy (NetBSD 1.6)
To: None <netbsd-help@netbsd.org>
From: Frank DeChellis <frankd@iaw.on.ca>
List: netbsd-help
Date: 02/10/2004 09:46:40
Below is my panic message on a 1.6.2 box with 2 Gig RAM and 2.6Ghz CPU.

I have been getting thse for about a week.  It says my MAX_KMAPENT is set to
1114.

I added the line option MAX_KMAPENT=2050 to my kernel config and after I run
"config GENERIC" I see the value was passed through in Makefile in the
compile directory:

Makefile:IDENT=-DNMBCLUSTERS="0x800" -DMAX_KMAPENT="0x802" -DLKM

I make and install the Kernal, reboot and when it panics it still says
MAX_KMAPENT is set to 1114

Am I doing something wrong?  Howe does MAX_KMAPENT get increased?

My maxproc in sysctl.conf is set to 1000.

Thanks
Frank



Feb 10 09:43:31 canal syslogd: restart
Feb 10 09:43:31 canal /netbsd: panic: uvm_mapent_alloc: out of static map
entries, check MAX_KMAPENT (currently 1114)
Feb 10 09:43:31 canal /netbsd: Begin traceback...
Feb 10 09:43:31 canal /netbsd:
uvm_map_clip_end(c066e3e0,c0677a80,c3707000,c02b7cb8) at
uvm_map_clip_end+0x6f
Feb 10 09:43:31 canal /netbsd:
uvm_unmap_remove(c066e3e0,c3706000,c3707000,e739ce38) at
uvm_unmap_remove+0xbb
Feb 10 09:43:31 canal /netbsd:
uvm_unmap(c066e3e0,c3706000,c3707000,c036914e,c29ed200) at uvm_unmap+0x8f
Feb 10 09:43:31 canal /netbsd: uvm_km_free(c066e3e0,c3706000,1000,c0369198)
at uvm_km_free+0x2b
Feb 10 09:43:31 canal /netbsd:
uvm_km_free_poolpage1(c066e3e0,c3706000,5,0,0) at uvm_km_free_poolpage1+0x2f
Feb 10 09:43:31 canal /netbsd: pool_page_free(c069a460,c3706000,e739cefc,1)
at pool_page_free+0x17
Feb 10 09:43:31 canal /netbsd:
pool_allocator_free(c069a460,c3706000,c0c53b9c,c0c53c04) at
pool_allocator_free+0x1b
Feb 10 09:43:31 canal /netbsd: pool_reclaim(c069a460,c06a3910,0,c0367546) at
pool_reclaim+0x229
Feb 10 09:43:31 canal /netbsd: pool_drain(0,c1259ac4,e739cf8c,c0366f46) at
pool_drain+0x49
Feb 10 09:43:31 canal /netbsd: uvm_pageout(e73991d0) at uvm_pageout+0xde
Feb 10 09:43:31 canal /netbsd: End traceback...