From: Keir Fraser <keir.fraser@eu.citrix.com>
To: Apoorva Kulkarni <apoorva@3tera.com>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: HVM and free_memory query
Date: Fri, 10 Jul 2009 14:46:40 +0100 [thread overview]
Message-ID: <C67D04D0.F4DA%keir.fraser@eu.citrix.com> (raw)
In-Reply-To: <4A5644C8.4040306@3tera.com>
On 09/07/2009 20:28, "Apoorva Kulkarni" <apoorva@3tera.com> wrote:
> #xm list
> Name ID Mem VCPUs State
> Time(s)
> Domain-0 0 512 1 r----- 25251.4
> controller 1 512 1 -b---- 39948.6
> vm.windows03 44 30720 1 r----- 22.0
>
> As you can see, the free_memory shown is 337M which is a good 241M less than
> what it should have been (31298M - 30720M = 578M) after the Windows VM was
> created. My question here is where/why does xen use that extra 241M. Any
> pointers much appreciated.
It's used for shadow pagetables and other memory book-keeping structures.
This reservation is sized as a fraction of the domain's configured memory
allocation -- the fraction is just under 0.8%. And 0.8% of 30720MB is 245MB,
so that works out just about right.
This is one of those cases where a small fraction of a very big number is
still a big number. ;-)
-- Keir
next prev parent reply other threads:[~2009-07-10 13:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-09 19:28 HVM and free_memory query Apoorva Kulkarni
2009-07-10 13:46 ` Keir Fraser [this message]
2009-07-10 18:33 ` Apoorva Kulkarni
2009-07-10 18:41 ` Keir Fraser
2009-07-10 18:48 ` Apoorva Kulkarni
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=C67D04D0.F4DA%keir.fraser@eu.citrix.com \
--to=keir.fraser@eu.citrix.com \
--cc=apoorva@3tera.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.