From: "Charles Coffing" <ccoffing@novell.com>
To: Kevin Tian <kevin.tian@intel.com>,
Yunhong Jiang <yunhong.jiang@intel.com>,
xen-devel@lists.xensource.com
Cc: xen-ia64-devel@lists.xensource.com
Subject: RE: [PATCH] Fix auto-ballooning of dom0 for HVM domains
Date: Mon, 22 May 2006 08:51:02 -0600 [thread overview]
Message-ID: <44717C34.D169.003C.0@novell.com> (raw)
In-Reply-To: <571ACEFD467F7749BC50E0A98C17CDD8094E7C7E@pdsmsx403>
>>> On Mon, May 22, 2006 at 2:51 AM, in message
<571ACEFD467F7749BC50E0A98C17CDD8094E7C7E@pdsmsx403>, "Tian, Kevin"
<kevin.tian@intel.com> wrote:
> BTW, could you please explain why following change is required:
>
> + given amount, also in KiB. This is normally just mem, but
if
> HVM is
> + supported, keep a little extra free."""
> + if 'hvm' in xc.xeninfo()['xen_caps']:
> + mem_kb += 4*1024;
> + return mem_kb
>
> Why do you need to reserve extra memory even for domU as long as
> the platform supports hvm feature?
HVM domains need some extra memory free for the shadow page tables,
otherwise they may crash the entire machine while they are running, or
the HVM domain itself may crash (exact behavior depends on whether you
have Yunhong's patch to change BUGs to domain_crash).
This slack space is calculated into the memory size for HVM domains,
but what happens if you then start a PV domain afterwards? Only the
minimally required memory is freed up, then the PV domain takes it all,
leaving the HVM domain with no slack == crash.
Admittedly, a better solution is to only add on the slack to PV if an
HVM domain is actually running, not merely supported.
BTW, in my testing on 32 bit, a Linux HVM domain consumes an additional
~3 MB over the course of fully booting and starting a few apps. As I
start more apps, the memory consumption goes up more...
next prev parent reply other threads:[~2006-05-22 14:51 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-22 8:51 [PATCH] Fix auto-ballooning of dom0 for HVM domains Tian, Kevin
2006-05-22 9:06 ` Keir Fraser
2006-05-22 14:51 ` Charles Coffing [this message]
2006-05-22 15:03 ` Keir Fraser
2006-05-22 15:15 ` Charles Coffing
2006-05-22 15:38 ` [Xen-devel] " Keir Fraser
2006-05-22 16:10 ` Keir Fraser
-- strict thread matches above, loose matches on Subject: below --
2006-05-22 9:09 Tian, Kevin
2006-05-19 16:29 Jiang, Yunhong
2006-05-19 4:23 Jiang, Yunhong
2006-05-19 15:15 ` Ewan Mellor
2006-05-19 19:59 ` Charles Coffing
2006-05-18 17:04 Charles Coffing
2006-05-18 18:11 ` Charles Coffing
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=44717C34.D169.003C.0@novell.com \
--to=ccoffing@novell.com \
--cc=kevin.tian@intel.com \
--cc=xen-devel@lists.xensource.com \
--cc=xen-ia64-devel@lists.xensource.com \
--cc=yunhong.jiang@intel.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.