From owner-freebsd-current@FreeBSD.ORG Thu Jun 19 01:02:06 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1985A37B401; Thu, 19 Jun 2003 01:02:06 -0700 (PDT) Received: from skid.isc.org (skid.isc.org [204.152.184.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8870243FBD; Thu, 19 Jun 2003 01:02:04 -0700 (PDT) (envelope-from Peter_Losher@isc.org) Received: from farside.isc.org (farside.isc.org [2001:4f8:3:bb:290:27ff:fe73:8215]) by skid.isc.org (Postfix) with ESMTP id 1CEAA8D61F; Thu, 19 Jun 2003 07:57:11 +0000 (UTC) (envelope-from Peter_Losher@isc.org) Received: by farside.isc.org (Postfix, from userid 10188) id 540A2A85D; Thu, 19 Jun 2003 08:02:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by farside.isc.org (Postfix) with ESMTP id 516BBA82B; Thu, 19 Jun 2003 08:02:04 +0000 (UTC) (envelope-from plosher@isc.org) Date: Thu, 19 Jun 2003 08:02:04 +0000 (UTC) From: Peter Losher To: David Schultz In-Reply-To: <20030618083401.GA74409@HAL9000.homeunix.com> Message-ID: <20030619070830.U26075@farside.isc.org> References: <20030617080628.H1802@farside.isc.org> <20030618083401.GA74409@HAL9000.homeunix.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Peter Losher cc: current@FreeBSD.ORG Subject: Re: Problems tuning kmem_map on 5.1-REL box. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jun 2003 08:02:06 -0000 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@isc.org | ISC | OpenPGP 0xE8048D08 | "The bits must flow"