From owner-freebsd-current@FreeBSD.ORG Tue Apr 20 16:07:13 2004 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 9EE3216A4CE for ; Tue, 20 Apr 2004 16:07:13 -0700 (PDT) Received: from smtp-gw-cl-d.dmv.com (smtp-gw-cl-d.dmv.com [216.240.97.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B5DB43D39 for ; Tue, 20 Apr 2004 16:07:11 -0700 (PDT) (envelope-from sven@dmv.com) Received: from lanshark.dmv.com (lanshark.dmv.com [216.240.97.46]) i3KN78Rv044798; Tue, 20 Apr 2004 19:07:09 -0400 (EDT) (envelope-from sven@dmv.com) From: Sven Willenberger To: Stefan Bethke In-Reply-To: References: Content-Type: text/plain Message-Id: <1082502406.14481.13.camel@lanshark.dmv.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Tue, 20 Apr 2004 19:06:46 -0400 Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.39 cc: freebsd-current@freebsd.org Subject: Re: Tuning KVA_PAGES / kmem? 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: Tue, 20 Apr 2004 23:07:13 -0000 On Tue, 2004-04-20 at 07:14, Stefan Bethke wrote: > Hi, > > I'm struggling a bit with a box I'm setting up right now: 2x Xeon 2.8 > GHz with 6 GB RAM. Main disk is a RAID 5 on 3ware controller. I'm > running -current from around Easter. > > Occasionally, the machine panics with: > panic: kmem_malloc(4096): kmem_map too small: 275251200 total allocated > at line 337 in file /usr/src/sys/vm/vm_kern.c > > I had stability problems when I was using PAE, so I disabled that for > the moment; even when running GENERIC, I get this panic. > > I dug through the archives, and I found some hints that with >>2 GB > RAM, the auto-tuning might produce undesirable results, so I might need > to tune KVA_PAGES to reserve more address space for the kernel, or > fiddle with VM_KMEM_SIZE_MAX, VM_KMEM_SIZE_SCALE, or some vm sysctls. > > Can someone point me in the right direction? > > > Thanks, > Stefan The following link has been posted here on occasion and it serves as a nice reference (IMESHO) to the relations between kva_pages, vm_kmem_size_scale, etc. I found it useful when experiencing similar errors, albeit with less RAM. http://unix.derkeiler.com/Mailing-Lists/FreeBSD/current/2003-06/1599.html Sven