From owner-freebsd-current@FreeBSD.ORG Thu Jun 10 18:58:49 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 359CB16A4CE; Thu, 10 Jun 2004 18:58:49 +0000 (GMT) Received: from smart.eusc.inter.net (smart.eusc.inter.net [213.73.101.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id F356F43D31; Thu, 10 Jun 2004 18:58:48 +0000 (GMT) (envelope-from msch@snafu.de) Received: from dial-76-178.de.inter.net ([213.73.76.178] helo=current.best-eng.de) by smart.eusc.inter.net with esmtp (Exim 3.36 #4) id 1BYUkw-0006cy-00; Thu, 10 Jun 2004 20:58:30 +0200 Received: from current.best-eng.de (localhost.best-eng.de [127.0.0.1]) by current.best-eng.de (8.12.11/8.12.11) with ESMTP id i5AIwUsP001412; Thu, 10 Jun 2004 20:58:30 +0200 (CEST) (envelope-from matthias@current.best-eng.de) Received: from localhost (localhost [[UNIX: localhost]]) by current.best-eng.de (8.12.11/8.12.11/Submit) id i5AIwTQJ001411; Thu, 10 Jun 2004 20:58:29 +0200 (CEST) (envelope-from matthias) From: Matthias Schuendehuette Organization: Micro$oft-free Zone To: freebsd-current@freebsd.org Date: Thu, 10 Jun 2004 20:58:29 +0200 User-Agent: KMail/1.6.2 References: <1079446098.23554.49.camel@lanshark.dmv.com> <20040512193036.GA22624@xor.obsecurity.org> <20040514150245.GA46436@melusine.cuivre.fr.eu.org> In-Reply-To: <20040514150245.GA46436@melusine.cuivre.fr.eu.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200406102058.29352.msch@snafu.de> X-Mailman-Approved-At: Fri, 11 Jun 2004 12:02:11 +0000 cc: rik@freebsd.org cc: Kris Kennaway cc: Thomas Quinot Subject: Re: kmem_map too small, revisited (5.2.1-REL-p1) [PATCH] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: msch@snafu.de List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jun 2004 18:58:49 -0000 On Friday 14 May 2004 17:02, Thomas Quinot wrote: > * Kris Kennaway, 2004-05-12 : > > AFAIK it's just poorly chosen defaults on large memory machines. > > Setting VM_KMEM_SIZE_MAX=419430400 fixes it for me on 3 4GB > > machines. > > Thanks Kris, I've installed a new kernel with that option, I'll see > if the symptom fails to reproduce. :-) Well, I had this problem today as well with Soft Updates on a 5.2.1-RELEASE-p8 machine with 2GB RAM... I really *like* these mail archives... ;-) Anyway - I tried to write that down into NOTES ( since 'documenting these undocumented options for linting is not considered an affront.' :-) ------------8><----------------- --- sys/i386/conf/NOTES.orig Thu Jun 10 20:29:53 2004 +++ sys/i386/conf/NOTES Thu Jun 10 20:42:55 2004 @@ -1034,6 +1034,16 @@ options KSTACK_PAGES=3 +# min(max(VM_KMEM_SIZE, Physical memory/VM_KMEM_SIZE_SCALE), +# VM_KMEM_SIZE_MAX) is the total KVA space allocated for +# kmem_map. E.g. used by Soft Updates. +# For large memory machines (> 1GB RAM) VM_KMEM_SIZE_MAX should +# be set to at least 400M. + +options VM_KMEM_SIZE=(12*1024*1024) # 12 MB +options VM_KMEM_SIZE_MAX=(200*1024*1024) # 200 MB +options VM_KMEM_SIZE_SCALE=(3) # 1/3 RAM + ##################################################################### # More undocumented options for linting. @@ -1056,6 +1066,3 @@ options TIMER_FREQ=((14318182+6)/12) -options VM_KMEM_SIZE -options VM_KMEM_SIZE_MAX -options VM_KMEM_SIZE_SCALE ------------8><----------------- Perhaps someone likes to commit it ... -- Ciao/BSD - Matthias Matthias Schuendehuette , Berlin (Germany) PGP-Key at and ID: 0xDDFB0A5F