All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Fitzhardinge <jeremy@goop.org>
To: benian <bestwish.happiness@gmail.com>
Cc: xen-devel@lists.xensource.com,
	Ian Jackson <Ian.Jackson@eu.citrix.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Subject: Re: Xen Hypervisor's memory get roughly less 700MB(even 1400MB) memory than actual grub setting when >4GB
Date: Wed, 01 Dec 2010 00:25:57 -0800	[thread overview]
Message-ID: <4CF60695.7080303@goop.org> (raw)
In-Reply-To: <AANLkTikTvQazS54xKHRUGAg91D6AJc=zAVY9kt42E__R@mail.gmail.com>

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

  reply	other threads:[~2010-12-01  8:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-01  8:00 Xen Hypervisor's memory get roughly less 700MB(even 1400MB) memory than actual grub setting when >4GB benian
2010-12-01  8:25 ` Jeremy Fitzhardinge [this message]
2010-12-01 11:18   ` Stefano Stabellini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CF60695.7080303@goop.org \
    --to=jeremy@goop.org \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=bestwish.happiness@gmail.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.