From sagi@blue.webair.com  Mon Aug 13 10:41:39 2001
Return-Path: <sagi@blue.webair.com>
Received: from blue.webair.com (ftp14.webair.com [216.130.161.105])
	by hub.freebsd.org (Postfix) with ESMTP id 56A4737B409
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 13 Aug 2001 10:41:39 -0700 (PDT)
	(envelope-from sagi@blue.webair.com)
Received: (from root@localhost)
	by blue.webair.com (8.9.3/8.9.3) id NAA26719;
	Mon, 13 Aug 2001 13:41:38 -0400 (EDT)
	(envelope-from sagi)
Message-Id: <200108131741.NAA26719@blue.webair.com>
Date: Mon, 13 Aug 2001 13:41:38 -0400 (EDT)
From: sagi <sagi@webair.com>
Reply-To: sagi <sagi@webair.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: FreeBSD and 4GB of ram not working
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         29679
>Category:       i386
>Synopsis:       FreeBSD and 4GB of ram not working
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 13 10:50:02 PDT 2001
>Closed-Date:    Thu Jan 17 19:00:34 PST 2002
>Last-Modified:  Thu Jan 17 19:01:00 PST 2002
>Originator:     Sagi Brody
>Release:        FreeBSD 4.3-STABLE i386
>Organization:
Webair Internet Development Inc
>Environment:
System: FreeBSD blue.webair.com 4.3-STABLE FreeBSD 4.3-STABLE #0: Thu Jul 5 18:39:57 EDT 2001 root@blue.webair.com:/usr/src/sys/compile/BLUE i386
>Description:
This problem has been tested on 2 machines:
1 is a DELL 6450 PowerEdge, with 4GB of memory (16 256mb dimms) 2 700 
Xeons processors.
a Intel board (SRKA4) with 4GB of memory (4 512mb dimms) and 4 700 Xeons 
processors.
I'm unable to get FreeBSD to work with 4GB of memory at all. 2GB works 
fine. When booting off a 4.3-release CD, after the kernel finishes loading 
and before  /stand/sysinstall starts i get:
swap_pager_swap == NULL and it crashes.
The intel machine is fully functional with the 2GB. When bringing it to 
4GB the error persists, right before it goes to mount the drives. I've 
attempted to remove the swap area from /etc/fstab and  not use swap at 
all. Please let me know if this issue has been resolved, and if so what is 
the work around.

When trying to install on 4.1.1 it traps immediatly (trap 12?).
>How-To-Repeat:
	Attempt to use FreeBSD on a machine with 4GB of memory. 
>Fix:
	I've heard it will work on 3.5. However I would like to use 4.x
>Release-Note:
>Audit-Trail:

From: Hiten Pandya <hitmaster2k@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org, sagi@webair.com
Cc:  
Subject: Re: i386/29679: FreeBSD and 4GB of ram not working
Date: Wed, 02 Jan 2002 16:54:41 +0000

 hi,
 
 This issue has been discussed on the FreeBSD-Hackers mailing list, and
 possible
 fixes have been provided by various developers according to their
 situations with
 4GB of RAM.  The solution was discussed by Terry Lambert on the -hackers
 list.
 
 The specific thread to search for would be: 4G phisical memory kernel
 trap
 
 The reason is due to the limitations imposed in
 src/sys/i386/i386/machdep.c, which
 can be changed.  I am giving a short guideline on how to acomplish this:
 
 1) Try changing the KVA space in the src/sys/i386/i386/machdep.c, and
 recompile the
 kernel.
 
 2) If that doesn't work, it could be that you are running out of page
 table pages
 (originially pointed out by Tim Wiess <twiess@ahaza.com>).  The issue
 can be
 resolved by changing the NKPT #define in src/sys/i386/include/pmap.h to
 64 and
 the KVA_PAGES #define to a multiple of 4 (default value is 256).
 
 This should resolve the issue.  If there are no further more problems,
 then this
 PR can be gracefully closed.
 
 regards,
 
  - Hiten
  - <hiten@uk.FreeBSD.org>
 -- 
 1024 45:a5:9c:f2:fb:07:da:70:18:02:0b:f3:63:f1:7a:a6 hitenp@hpdi.ath.cx
State-Changed-From-To: open->closed 
State-Changed-By: ashp 
State-Changed-When: Thu Jan 17 19:00:34 PST 2002 
State-Changed-Why:  
Workarounds were listed in the PR, and are available in mailing list 
archives for those interested. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=29679 
>Unformatted:
