From: Keir Fraser Subject: Re: Available Memory on 4GB system Date: Fri, 29 Jul 2005 11:15:08 +0100 Message-ID: References: <42E98C94.7070101@rimuhosting.com> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <42E98C94.7070101@rimuhosting.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Peter Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 29 Jul 2005, at 02:55, Peter wrote: > We have a dual Xeon server with 4x1GB memory sticks. With a non-Xen > kernel it boots up with ~4GB of memory. With the Xen kernel it boots > up with ~3.3GB of memory. > > I know this has been discussed before, but I'm still not clear why the > xen kernel boots up with less memory available than a regular Linux > kernel. Would someone mind patiently explaining it once more? > > I want to make sure there is no kernel .config option we're setting > which is making memory unavailable to us. And from what I read the > pae changes in 3.0 should allow us to see more (all?) of the memory. Memory-mapped I/o spaces (e.g., the video frame buffer) are always mapped below 4GB and consume many megabytes of space. If all 4GB of your RAM were mapped contiguously from address 0, some of this RAM would inevitably overlap with the I/O space and would hence be inaccessible (and so wasted). The BIOS avoids this by mapping some of your RAM (anything up to a gigabyte, typically) above the 4GB boundary. However, this makes it inaccessible without PAE. So, you cannot get at that memory until you switch to pae Xen (which is probably not advisable just yet). -- Keir