docs/94454: [patch] add FAQ entry for memory probing incorrectly

Bill Moran wmoran at collaborativefusion.com
Tue Mar 14 21:40:17 UTC 2006


>Number:         94454
>Category:       docs
>Synopsis:       [patch] add FAQ entry for memory probing incorrectly
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 14 21:40:16 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Bill Moran
>Release:        FreeBSD 6.0-RELEASE-p5 i386
>Organization:
Collaborative Fusion Inc.
>Environment:
System: FreeBSD vanquish.pgh.priv.collaborativefusion.com 6.0-RELEASE-p5 FreeBSD 6.0-RELEASE-p5 #2: Thu Mar 2 10:57:03 EST 2006 root at vanquish.pgh.priv.collaborativefusion.com:/usr/obj/usr/src/sys/VANQUISH i386


	
>Description:
	non PAE kernel probes 3.5G RAM when there is 4G
        PAE kernel (or 64 bit kernel) probes 4.5G when there is 4G
	By the response from the amd64 mailing list, this deserves to be
        in the FAQ.
>How-To-Repeat:
	boot some different kernels on a machine with 4G of RAM
>Fix:

This is the source material I used:
http://lists.freebsd.org/pipermail/freebsd-amd64/2005-August/005849.html

--- faq.diff begins here ---
--- book.sgml.old	Tue Mar 14 16:28:40 2006
+++ book.sgml	Tue Mar 14 16:27:34 2006
@@ -2871,6 +2871,45 @@
 
     <qandaset>
       <qandaentry>
+        <question id="pae">
+          <para>Why is &os; finding the wrong amount of memory?</para>
+        </question>
+
+        <answer>
+          <para>The reason is the difference between physical memory
+            addresses and virtual addresses.</para>
+
+          <para>The convention for most PC hardware is to use memory
+            between 3.5G and 4G for special use (usually for PCI).
+            This is physical memory address space that is used to access
+            the PCI hardware.  As a result real memory (RAM) can not
+            exist there.</para>
+
+          <para>What happens to the memory that should appear in that
+            location is dependent on your hardware.  Unfortunately,
+            some hardware does nothing and the ability to use that
+            last 500M of RAM is lost.</para>
+
+          <para>Luckily, most hardware remaps the memory to a higher
+            location so that it can still be used.  However, this can
+            cause some confusion if you watch the boot messages.</para>
+
+          <para>On a 32 bit version of &os;, the memory appears lost,
+            since it will be remapped above 4G, which a 32 bit kernel
+            is unable to access.  In this case, the solution is to
+            build a PAE enabled kernel.  See
+            <link linkend="memory-limits">this FAQ entry</link> for
+            more information.</para>
+            
+          <para>On a 64 bit version of &os;, or when running a PAE-enabled
+            kernel, &os; will correctly detect and remap the memory so
+            it is usable.  During boot, however, it may seem as if &os;
+            is detecting more memory than the system really has.  This
+            is normal and the available memory will be corrected as the
+            boot process completes.<para>
+        </answer>
+      </qandaentry>
+      <qandaentry>
         <question id="awre">
           <para>What do I do when I have bad blocks on my hard drive?</para>
         </question>
--- faq.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-doc mailing list