From owner-freebsd-hackers@FreeBSD.ORG Sat Oct 18 13:41:13 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B9A816A4B3 for ; Sat, 18 Oct 2003 13:41:13 -0700 (PDT) Received: from relay.pair.com (relay.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id ED8B543FB1 for ; Sat, 18 Oct 2003 13:41:11 -0700 (PDT) (envelope-from silby@silby.com) Received: (qmail 50071 invoked from network); 18 Oct 2003 20:41:10 -0000 Received: from niwun.pair.com (HELO localhost) (209.68.2.70) by relay.pair.com with SMTP; 18 Oct 2003 20:41:10 -0000 X-pair-Authenticated: 209.68.2.70 Date: Sat, 18 Oct 2003 17:41:08 -0500 (CDT) From: Mike Silbersack To: Yaoping Ruan In-Reply-To: <3F919CA9.F99EA2F0@cs.princeton.edu> Message-ID: <20031018173800.B706@odysseus.silby.com> References: <3F919CA9.F99EA2F0@cs.princeton.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: High mem (4GB) support on FreeBSD 4.8 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Oct 2003 20:41:13 -0000 On Sat, 18 Oct 2003, Yaoping Ruan wrote: > Hi: > > I installed the 4.8 release on a new box with 4GB memory, and found > kernel panic when I tried to write date. But the system run great with > only 2GB memory. Is there any kernel compiling option in the LINT, like > the "high mem" option in Linux? > > BTW, we also tried 4.6 release, didn't have this problem but had some > different issues. Some of the kernel autoscaling values may be off with 4GB machines; I believe that this has been fixed with 4.9, so running 4.9-RC3 might be the easiest answer. Alternately, try the following: 1. Check the mailing list archives, there might be a better explanation than I'm about to give. 2. Play with the amount of memory available using the hw.physmem tunable in loader.conf; you can set to to intermediate values, such as 3G, etc. 3. Tweak the tunable kern.vm.kmem.size upwards, it defaults to 200M, which is probably too small for a 4G machine; try 300 or 400M. Don't worry about PAE, that's only needed if you have _more_ than 4G of ram. Mike "Silby" Silbersack