All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Magenheimer <dan.magenheimer@oracle.com>
To: George Dunlap <George.Dunlap@eu.citrix.com>,
	hotmaim <tinnycloud@hotmail.com>
Cc: xen-devel@lists.xensource.com, Chu Rui <ruichu@gmail.com>
Subject: RE: Xen balloon driver discuss
Date: Tue, 30 Nov 2010 08:39:46 -0800 (PST)	[thread overview]
Message-ID: <4fd283fa-d6fd-42a3-9d04-104fbc644659@default> (raw)
In-Reply-To: <4CF4D70D.8030500@eu.citrix.com>

> One of the explicit purposes of PoD is to set aside a fixed amount of
> memory for a guest, so that no other domains / processes can claim it.
> It's guaranteed that memory, and as long as it has a working balloon
> driver, shouldn't have any issues using it properly.  Sharing it with
> other VMs would undermine this, and make it pretty much the same as the
> Xen free page list.
>   :
> It sounds like what you're advocating is *allocate*-on-demand (as
> opposed to PoD, which allocates all the memory at the beginning but
> *populates* the p2m table on demand): tell all the guests they have
> more
> memory than is available total, assuming that only some of them are
> going to try to use all of it; and allocating the memory as it's used.
> This works well for processes, but operating systems are typically
> built
> with the assumption that memory not used is memory completely wasted.
> They therefore keep disk cache pages and unused memory pages around
> "just in case", and I predict that any guest which has an active
> workload will eventually use all the memory it's been told it has, even
> if it's only actively using a small portion of it.  At that point, Xen
> will be forced to try to guess which page is the least important to
> have
> around and swap it out.

Maybe another key point about PoD is worth mentioning here (and
probably very obvious to George and possibly mentioned somewhere
else in this thread and I just missed it): The guest will *crash*
if it attempts to write to a PoD page and Xen has no real physical
page to back it.  Or alternately, the guest must be stopped
(perhaps for a long time) until Xen does have a real physical page
to back it.  Real Windows guest users won't like that, so the
memory should be pre-allocated and remain reserved for that guest.
Or the toolset/dom0 must implement host-swapping, which has all
sorts of nasty unpredictable performance issues.

Dan

  parent reply	other threads:[~2010-11-30 16:39 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <SNT0-MC3-F148nSuKiM000aac29@SNT0-MC3-F14.Snt0.hotmail.com>
2010-11-21  6:26 ` Xen balloon driver discuss tinnycloud
2010-11-22  4:33   ` MaoXiaoyun
2010-11-22 17:46     ` Dan Magenheimer
2010-11-23 14:58       ` tinnycloud
2010-11-27  6:54       ` cloudroot
2010-11-28  2:36         ` Dan Magenheimer
2010-11-29  4:20           ` tinnycloud
2010-11-29  6:34           ` xiaoyun.maoxy
     [not found]           ` <002b01cb8f8f$852bda10$8f838e30$@maoxy@aliyun-inc.com>
2010-11-29  8:37             ` tinnycloud
2010-11-29 10:09             ` George Dunlap
2010-11-29 10:12           ` George Dunlap
2010-11-29 15:42             ` Dan Magenheimer
2010-11-28 13:00         ` Pasi Kärkkäinen
2010-11-29  6:56   ` Chu Rui
2010-11-29 10:55     ` 答复: [Xen-devel] " tinnycloud
2010-11-29 11:19       ` George Dunlap
2010-11-29 15:41         ` hotmaim
2010-11-30 10:50           ` George Dunlap
2010-11-30 13:58             ` tinnycloud
2010-11-30 16:39             ` Dan Magenheimer [this message]
2010-12-01  5:07             ` xiaoyun.maoxy
     [not found]             ` <00fe01cb9115$98319c80$c894d580$@maoxy@aliyun-inc.com>
2010-12-01  6:29               ` tinnycloud
2011-01-12 14:41                 ` strange CPU utilization, could related to credit schedule ? tinnycloud
2011-01-12 16:41                   ` George Dunlap
2011-01-13  4:29                     ` MaoXiaoyun
2011-01-17  3:52                       ` MaoXiaoyun
2011-01-17 10:41                         ` George Dunlap
2011-01-17 10:51                           ` Re: [Xen-devel] strange CPU utilization, could related to creditschedule ? kim.jin
2011-01-17 10:56                             ` George Dunlap
2011-01-17 11:30                             ` Re: Re: strange CPU utilization, could related tocreditschedule ? kim.jin
2010-11-30  3:51         ` 答复: [Xen-devel] Xen balloon driver discuss Chu Rui
2010-11-30 11:08           ` George Dunlap

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=4fd283fa-d6fd-42a3-9d04-104fbc644659@default \
    --to=dan.magenheimer@oracle.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=ruichu@gmail.com \
    --cc=tinnycloud@hotmail.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.