From owner-freebsd-current@FreeBSD.ORG Sat Jan 31 08:39:58 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 5344D16A4CE for ; Sat, 31 Jan 2004 08:39:58 -0800 (PST) Received: from smtp.mho.com (smtp.mho.net [64.58.4.6]) by mx1.FreeBSD.org (Postfix) with SMTP id 21C2D43D1D for ; Sat, 31 Jan 2004 08:39:57 -0800 (PST) (envelope-from scottl@freebsd.org) Received: (qmail 31306 invoked by uid 1002); 31 Jan 2004 16:39:56 -0000 Received: from unknown (HELO freebsd.org) (64.58.1.252) by smtp.mho.net with SMTP; 31 Jan 2004 16:39:56 -0000 Message-ID: <401BD9D6.7020904@freebsd.org> Date: Sat, 31 Jan 2004 09:37:42 -0700 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031103 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andre Guibert de Bruet References: <20040130124818.T2246@gandalf.midgard.liu.se> <20040131003843.I10185@alpha.siliconlandmark.com> In-Reply-To: <20040131003843.I10185@alpha.siliconlandmark.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: Magnus Dahlstedt cc: current@freebsd.org Subject: Re: 5.2-RELEASE crash 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: Sat, 31 Jan 2004 16:39:58 -0000 Andre Guibert de Bruet wrote: > On Fri, 30 Jan 2004, Magnus Dahlstedt wrote: > > >>panic: kmem_malloc(16384): kmem_map too small: 275243008 total allocated >>cpuid = 1; >>Debugger("panic") >>Stopped at Debugger+0x4f: xchgl %ebx,in_Debugger.0 >>db> trace >>Debugger(c06c2ccd,1,c06d5a05,e40a6a74,100) at Debugger+0x4f >>panic(c06d5a05,4000,1067e000,e40a6aa0,c0518254) at panic+0x14a >>kmem_malloc(c10310a0,4000,402,e40a6aec,c064c19e) at kmem_malloc+0x101 > > -- 8< -- snip -- 8< -- > >>real memory = 2146942976 (2047 MB) >>avail memory = 2080309248 (1983 MB) > > > You are using a large amount of RAM and using the default kmem_map sizing > options. What you want to do to fix this is manually increase the > KVA_PAGES tunable to something like 640 (By putting "options > KVA_PAGES=640" in your kernel config file). > > You will also want to grow your kmem_map by changing the following: > options VM_KMEM_SIZE_MAX=(512*1048576) > options VM_KMEM_SIZE_SCALE=2 > > On a busy system with 3.5GB, I found that using 768MB for VM_KMEM_SIZE_MAX > helps it run flawlessly. These values are not set in stone, and should > only be used as a guide. In other words, do your own testing! :-) > Also, the scaling of kern.maxvnodes doesn't work very well. On a large memory system, it will typically set this to 200,000-300,000. If you don't need this many, then it is easier to just crank it down to a more reasonable level than fiddle with the KMEM parameters. Scott