From: George Dunlap <George.Dunlap@eu.citrix.com>
To: tinnycloud <tinnycloud@hotmail.com>
Cc: Dan Magenheimer <dan.magenheimer@oracle.com>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
'Chu Rui' <ruichu@gmail.com>
Subject: Re: 答复: [Xen-devel] Xen balloon driver discuss
Date: Mon, 29 Nov 2010 11:19:11 +0000 [thread overview]
Message-ID: <4CF38C2F.3020605@eu.citrix.com> (raw)
In-Reply-To: <BLU157-ds19D073F9CDA3C196544C34DA240@phx.gbl>
On 29/11/10 10:55, tinnycloud wrote:
> So that is, if we run out of PoD cache before balloon works, Xen will
> crash domain(goto out_of_memory),
That's right; PoD is only meant to allow a guest to run from boot until
the balloon driver can load. It's to allow a guest to "boot ballooned."
> and at this situation, domain U swap(dom U can’t use swap memory) is not
> available , right?
I don't believe swap and PoD are integrated at the moment, no.
> And when balloon actually works, the pod cached will finally decrease to
> 0, and no longer be used any more, right?
Conceptually, yes. What actually happens is that ballooning will reduce
it so that pod_entries==cache_size. Entries will stay PoD until the
guest touches them. It's likely that eventually the guest will touch
all the pages, at which point the PoD cache will be 0.
> could we use this method to implement a tmem like memory overcommit?
PoD does require guest knowledge -- it requires the balloon driver to be
loaded soon after boot so the so the guest will limit its memory usage.
It also doesn't allow overcommit. Memory in the PoD cache is already
allocated to the VM, and can't be used for something else.
You can't to overcommit without either:
* The guest knowing that it might not get the memory back, and being OK
with that (tmem), or
* Swapping, which doesn't require PoD at all.
If you're thinking about scanning for zero pages and automatically
reclaiming them, for instance, you have to be able to deal with a
situation where the guest decides to use a page you've reclaimed but
you've already given your last free page to someone else, and there are
no more zero pages anywhere on the system. That would mean either just
pausing the VM indefinitely, or choosing another guest page to swap out.
-George
>
> *From:* Chu Rui [mailto:ruichu@gmail.com]
> *TO:* tinnycloud
> *CC:* xen-devel@lists.xensource.com; George.Dunlap@eu.citrix.com;
> dan.magenheimer@oracle.com
> *Subject:* Re: [Xen-devel] Xen balloon driver discuss
>
> I am also interested with tinnycloud's problem.
>
> It looks that the pod cache has been used up like this:
>
> if ( p2md->pod.count == 0 )
> goto out_of_memory;
>
> George, would you please take a look on this problem, and, if possbile,
> tell a little more about what does PoD cache mean? Is it a memory pool
> for PoD allocation?
>
next prev parent reply other threads:[~2010-11-29 11:19 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 [this message]
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
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=4CF38C2F.3020605@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.