On Wed, 18 Jun 2003, David Schultz wrote: > To allow the kmem_map to exceed 200 MB, you'll also need to tweak > VM_KMEM_SIZE_MAX to (for example) '(1024 * 1024 * 1024)'. BTW, > the formula, which I stole from vmparam.h, is: > > min(max(VM_KMEM_SIZE, Physical memory/VM_KMEM_SIZE_SCALE), VM_KMEM_SIZE_MAX) Looks like I may have found some kind of error, adding this to my kernel config: # KVM options VM_KMEM_SIZE_SCALE="4" options VM_KMEM_SIZE_MAX="(1024 * 1024 * 1024)" (1024MB of KVM, 4096MB/4, 1024MB MAX KVM size) Cause the following warning and compile bomb: % config KVM_FIX WARNING: unknown option `*' removed from ../compile/KVM_FIX/opt_vm.h Kernel build directory is ../compile/KVM_FIX Don't forget to do a ``make depend'' -=- cc -c -O -pipe -mcpu=pentiumpro -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I../../.. -I../../../dev -I../../../contrib/dev/acpica -I../../../contrib/ipfilter -D_KERNEL -include opt_global.h -fno-common -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Werror ../../../kern/kern_malloc.c ../../../kern/kern_malloc.c: In function `kmeminit': ../../../kern/kern_malloc.c:430: syntax error before "vm_kmem_size" cc1: warnings being treated as errors ../../../kern/kern_malloc.c: At top level: ../../../kern/kern_malloc.c:480: warning: function declaration isn't a prototype ../../../kern/kern_malloc.c:502: warning: function declaration isn't a prototype ../../../kern/kern_malloc.c:607: storage class specified for parameter `sysctl___kern_malloc' ../../../kern/kern_malloc.c:607: parameter `sysctl___kern_malloc' is initialized ../../../kern/kern_malloc.c:607: storage class specified for parameter `__set_sysctl_set_sym_sysctl___kern_malloc' ../../../kern/kern_malloc.c:607: parameter `__set_sysctl_set_sym_sysctl___kern_malloc' is initialized ../../../kern/kern_malloc.c:607: section attribute not allowed for `__set_sysctl_set_sym_sysctl___kern_malloc' ../../../kern/kern_malloc.c:136: warning: `sysctl_kern_malloc' declared `static' but never defined *** Error code 1 Stop in /usr/src/sys/i386/compile/KVM_FIX. % -=- Changing the options to: # KVM options VM_KMEM_SIZE_SCALE="4" options VM_KMEM_SIZE_MAX="(1024*1024*1024)" Configs and compiles cleanly, but panics when rebooting with the new kernel: kmem_suballoc: bad status return of 3. panic: kmem_suballoc cpuid = 0; lapic.id = 00000000 Uptime: 1s So is there some sort of syntax error I am running over, or is this a bug? (in either case) Best Wishes - Peter -- Peter_Losher_at_isc.org | ISC | OpenPGP 0xE8048D08 | "The bits must flow"Received on Wed Jun 18 2003 - 23:02:06 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:12 UTC