panic with kmem_map too small: 335544320 total allocated

Eduardo sathler90 at gmail.com
Mon Jun 4 18:28:55 UTC 2012


Hello folks,

my server is FreeBSD 8.3-p1 i386, with 3.2 GB and no PAE enable, no
ZFS either, just running mysql+apache with PF

I had a reboot with this message: reboot after panic:
kmem_malloc(4096): kmem_map too small: 335544320 total allocated


>From what I have read I need to set vm.kmem_size to half of the
available RAM, is this correct?

do I need to change KVA_PAGES ?


Current settings are below, any help is appreciated.

thanks in advance,
-Ed


# sysctl vm.kmem_size_min vm.kmem_size_max vm.kmem_size vm.kmem_size_scale
vm.kmem_size_min: 0
vm.kmem_size_max: 335544320
vm.kmem_size: 335544320
vm.kmem_size_scale: 3

# sysctl hw.physmem hw.usermem
hw.physmem: 3475800064
hw.usermem: 3128418304

# sysctl hw.machine_arch
hw.machine_arch: i386

# sysctl hw.pagesize hw.pagesizes hw.availpages
hw.pagesize: 4096
hw.pagesizes: 4096 0
hw.availpages: 848584


More information about the freebsd-chat mailing list