All of lore.kernel.org
 help / color / mirror / Atom feed
From: George Dunlap <George.Dunlap@eu.citrix.com>
To: Chu Rui <ruichu@gmail.com>
Cc: tinnycloud <tinnycloud@hotmail.com>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Dan Magenheimer <dan.magenheimer@oracle.com>
Subject: Re: 答复: [Xen-devel] Xen balloon driver discuss
Date: Tue, 30 Nov 2010 11:08:31 +0000	[thread overview]
Message-ID: <4CF4DB2F.1090806@eu.citrix.com> (raw)
In-Reply-To: <AANLkTikUVhze16=sfn2f3Roed5-yT10Ge8HCQo-64kk+@mail.gmail.com>

On 30/11/10 03:51, Chu Rui wrote:
> George, I wonder why do you implement it as this? It looks better to 
> used a resilient PoD cache, intead of a fixed one. Your wonderful work 
> was appreciated, I just want to know your thought.

The main reason it was implemented this way was to make things
predictable for the toolstack.  The XenServer control stack recently
implmented an automatic dynamic memory control functionality that would
allow you to simply set some ranges for memory, and it would
automatically change the ballooning for you.  To do that effectively, it
needs to know how much memory is in use by every guest, and be able to
guarantee that a guest can get memory if it needs it.  Furthermore,
XenServer has a High Availability (HA) option, which will allow you to
guarantee that if a given number of hosts go down, certain VMs can be
guaranteed to restart on other hosts.  For both of these options, having
strong control of the memory is a necessity.

As I said in another e-mail, the Xen free page list is an
already-existing, system-wide pool from which VMs can (in theory)
allocate RAM.  We could make it such that when a VM runs too low on PoD
memory, it pauses and notifies the toolstack somehow.  A toolstack which
wanted to be more flexible with the balloon drivers could then increase
its PoD cache size from the free cache pool if available; if not
available, it could even create more free memory by ballooning down
other VMs.  Xen doesn't need to be involved.

If you want to implement that functionality, I'm sure your patches would
be welcome. :-)

 -George

      reply	other threads:[~2010-11-30 11:08 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
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 [this message]

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=4CF4DB2F.1090806@eu.citrix.com \
    --to=george.dunlap@eu.citrix.com \
    --cc=dan.magenheimer@oracle.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.