From owner-freebsd-hackers Tue Jan 1 16:20:11 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from spitfire.velocet.net (spitfire.velocet.net [216.138.223.227]) by hub.freebsd.org (Postfix) with ESMTP id 5AAD037B422 for ; Tue, 1 Jan 2002 16:20:07 -0800 (PST) Received: from nomad.tor.lets.net (H74.C220.tor.velocet.net [216.138.220.74]) by spitfire.velocet.net (Postfix) with SMTP id 26E6344A9C5 for ; Tue, 1 Jan 2002 19:20:06 -0500 (EST) Received: (qmail 80977 invoked by uid 1001); 2 Jan 2002 00:14:35 -0000 Date: Tue, 1 Jan 2002 19:14:35 -0500 From: Steve Shorter To: Terry Lambert Cc: freebsd-hackers@freebsd.org Subject: Re: kernel panic on boot with 4G RAM Message-ID: <20020101191435.A80969@nomad.lets.net> References: <20020101165106.A80908@nomad.lets.net> <3C3231B8.38C5A741@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C3231B8.38C5A741@mindspring.com>; from tlambert2@mindspring.com on Tue, Jan 01, 2002 at 02:01:28PM -0800 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Jan 01, 2002 at 02:01:28PM -0800, Terry Lambert wrote: > Steve Shorter wrote: > > I need an NFS server with 4G ram. When I boot a 4.5-PRE kernel > > it panics during the boot process, not always at the same place though. > > My first instinct is bad hardware because of the lack of consistency > > in panic location, however I was wondering if there were some issues > > with kernel tuning for machines with large memory that I should be aware of. > > This machine boots OK with 3G or less. > > You really need to change the allocation of swap page descriptors > in /sys/i386/machdep.c (among other things). Is this a trivial change? I don't know much about FreeBSD kernel internals but can edit source with some guidance OR can these changes be effected in the kernel config? How about changing NKPT in sys/i386/include/pmap.h to something bigger? .. like 60? What "other things" should be done to tune a high memory machine, or to get it to boot. > > I personally suggest compiling your kernel with 3G KVA/1G User, > instead of the default of 1G KVA/3G User. > Ok. This can be done with options KVA_PAGES=768 What about the other KVA stuff in kernel config options VM_BCACHE_SIZE_MAX= The comments in LINT mention that this is capped at 260M "effecting > 1G of ram". Should this be increased with machines with 4G? thanx - steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message