5.2.1 can't allocate large ammounts of memory in the kernel

steve istartedi at cox.net
Wed Apr 28 18:24:37 PDT 2004

I have a KLD that allocates approximately 300 megs (or more) in the kernel,
mostly in 8k chunks.  On 5.1 I was able to build a kernel with:

options		VM_KMEM_SIZE=(24*1024*1024)
options		VM_KMEM_SIZE_MAX=(768*1024*1024)
options		VM_KMEM_SIZE_SCALE=(1024*1024)

This allowed plenty of room for both the module and some other items that
needed large amounts of kernel memory.  On 5.2.1-RELEASE I get "kmem map too
small" panics after allocating only 90 megs.  Has something changed?
Perhaps there is something else I need to tweak?


More information about the freebsd-questions mailing list