WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Xen Hypervisor's memory get roughly less 700MB(even 1400

To: benian <bestwish.happiness@xxxxxxxxx>
Subject: Re: [Xen-devel] Xen Hypervisor's memory get roughly less 700MB(even 1400MB) memory than actual grub setting when >4GB
From: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Date: Wed, 01 Dec 2010 00:25:57 -0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Delivery-date: Wed, 01 Dec 2010 00:26:46 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTikTvQazS54xKHRUGAg91D6AJc=zAVY9kt42E__R@xxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <AANLkTikTvQazS54xKHRUGAg91D6AJc=zAVY9kt42E__R@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101103 Fedora/1.0-0.33.b2pre.fc14 Lightning/1.0b3pre Thunderbird/3.1.6
On 12/01/2010 12:00 AM, benian wrote:
>
> Hi,
>
> I am using Xen 4.0.1-6 and fedora2.6.32.23-170.xendom0.fc12.x86_64
>
>  
>
> When I try to set the a fix value for memory on grub
>
>  
>
> For example
>
>  
>
> title Xen_Fedora (2.6.32.23-170.xendom0.fc12.x86_64)
>
>         root (hd0,0)
>
>         kernel /xen-4.0.1.gz dom0_mem=5120M
>
>  
>
> I found that when I set dom0_mem<=3GB, the system memory report by
> “free” “xm list” “xl list” and “xentop” are both approximately conform
> with the setting in grub.
>
> But when dom_mem>=4GB(roughly), the system memory is obviously
> different from the grub.
>

Yes, that's expected.  The BIOS reserves a chunk of address space
between 3-4G to map PCI devices into.  Since dom0 needs to get access to
those devices, we free the Xen-supplied memory in that range back to the
hypervisor.  You should see that reflected in the free memory output of
"xl info".

In recent versions of xen/stable-2.6.32.x you can balloon dom0 back up
again to its full size with "xl mem-set 0 <size>", but I don't think
that's implemented in the version you're using.

> “xm list”
>
> Name                 ID   Mem VCPUs      State   Time(s)
>
> Domain-0              0 * 4384*     8     r-----    136.8
>
>  
>
>  
>
>  
>
> “xl list”
>
> Name                 ID   Mem VCPUs       State        Time(s)
>
> Domain-0              0  *3648*     8        r--    139.8
>

That's just strange: xl and xm should show the same results here.

    J

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>