the server gives "kmem_map too small" ?

Halid Faith maslak at ihlas.net.tr
Mon Mar 13 16:43:48 UTC 2006


Hello

My machine whose O.S. is FreeBSD6.0 has a 512 Mbyte Ram and it works as
gateway.

the server restarts by itself.

I looked at the messages I saw as below

savecore: reboot after panic: kmem_malloc(16384): kmem_map too small:
84840448 total allocated

My kernel settings as below;
options         IPFILTER
options         IPFILTER_LOG
options         TCP_DROP_SYNFIN
options         IPSTEALTH
options         IPFIREWALL              #firewall
options         IPFIREWALL_VERBOSE      #print information about
options         IPFIREWALL_FORWARD      #enable trasparent proxy support
options         IPFIREWALL_DEFAULT_TO_ACCEPT    #allow everything by default
options         IPDIVERT                #divert sockets
options         DUMMYNET
options         HZ=1000
options         NMBCLUSTERS=65000

Here's after the restart operation  my netstat -m ;
205/410/615 mbufs in use (current/cache/total)
192/298/490/8896 mbuf clusters in use (current/cache/total/max)
0/3/2480 sfbufs in use (current/peak/max)
448K/698K/1146K bytes allocated to network (current/cache/total)
0 requests for sfbufs denied
0 requests for sfbufs delayed
0 requests for I/O initiated by sendfile
52 calls to protocol drain routines

sysctl -a | grep vm.kmem_size
vm.kmem_size: 84840448
vm.kmem_size_max: 335544320
vm.kmem_size_scale: 3

Which values do I have to increase ? How can I increase that ( them ) ?

Thanks



More information about the freebsd-questions mailing list