From: Dario Faggioli <dario.faggioli@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel <xen-devel@lists.xenproject.org>,
David Vrabel <david.vrabel@citrix.com>,
Li Yechen <lccycc123@gmail.com>
Subject: Re: [RFC v2][PATCH 1/3] docs: design and intended usage for NUMA-aware ballooning
Date: Sat, 17 Aug 2013 00:53:03 +0200 [thread overview]
Message-ID: <1376693583.2757.18.camel@Abyss> (raw)
In-Reply-To: <520E437802000078000EC95D@nat28.tlf.novell.com>
[-- Attachment #1.1: Type: text/plain, Size: 4092 bytes --]
On ven, 2013-08-16 at 14:21 +0100, Jan Beulich wrote:
> >>> On 16.08.13 at 12:12, Li Yechen <lccycc123@gmail.com> wrote:
> > On Fri, Aug 16, 2013 at 5:09 PM, Jan Beulich <JBeulich@suse.com> wrote:
> >> And finally, coming back what Tim had already pointed out - doing
> >> things the way you propose can cause an imbalance in the
> >> ballooned down guest, penalizing it in favor of not penalizing the
> >> intended consumer of the recovered memory. Therefore I wonder
> >> whether, without any new xenstore node, it wouldn't be better to
> >> simply require conforming balloon drivers to balloon out memory
> >> evenly across the domain's virtual nodes.
> >
> > I should say sorry here, but I'm not quite understand the "whether" part.
> > the "new xenstore node" just store the requirement from user, so that
> > balloon could read it. It's similar to ~/memory/target. This new node
> > could store either p-nodeid, or v-nodeid, according to the interfaces we
> > talked above is placed inside of xen, or inside of guest OS.
> > Do you have a better way to pass this requirement to balloon, instead of
> > create a new xenstore node? I'd be very happy if you have one, since
> > nor do I like the way I have done(create a new node) already!
>
> As said - I'd want you to evaluate a model without such a new node,
> and with instead the requirement placed on the balloon driver to
> balloon out pages evenly allocated across the guest's virtual nodes.
>
Why not supporting both modes? I mean, Jan, I totally see what you mean,
and I agree, a very important use case is where the user just says
"balloon down/up", in which case reclaiming/populating evenly is the
most sane thing to do (as also said by David --I think he was him rather
than Tim).
However, what about the use case when the user actually want to make
space on a specific p-node, no matter what it will cost to the existing
guests? I don't have that much "ballooning experience", so I am
genuinely asking here, is that use case completely irrelevant? I
personally thing it would be something nice to have, although, again,
probably not as the default behaviour...
What about something like, the default is the even distribution, but if
the user makes it clear he wants a specific p-node (whatever v-node or
v-nodes that will mean for the guest), we also allow that?
For actually doing it, I'm not sure what the best interface would be...
The new xenstore key did not look perfect, but not that bad even. FWIW,
if we'd stick with it, I agree with you that it should host v-nodes (so
the hypercall doing the translation should happen in the toolstack), and
that it should host a mask.
> > You are exactly right again, this design is only for Linux balloon driver.
> > For Linux, balloon can choose which page to balloon in/out. So we can
> > assocate the pages with v-nodeid.
> > For the other kinds of architechure, please forgive me that I haven't think
> > of that far...
>
> The abstract model shouldn't take OS implementation details or
> policies into account; the implementation later of course can (and
> frequently will need to).
>
You are right. Although it is true that this series is specifically for
Linux, Linux specific concepts populates the design document too much,
or at least in the wrong places. :-)
That being said (and perhaps Yechen could make a not about this, so that
if he send another version, he could reorganize this patch/document a
bit, to achieve a better separation between the generic model
description and the implementation details), if you consider all this
the description of the Linux specific implementation, it would be
interesting to know what you think of such specific implementation. :-)
Thanks a lot for taking a look and Regards,
Dario
--
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)
[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2013-08-16 22:53 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-16 4:13 [RFC v2][PATCH 1/3] docs: design and intended usage for NUMA-aware ballooning Yechen Li
2013-08-16 9:09 ` Jan Beulich
2013-08-16 10:18 ` Li Yechen
[not found] ` <CAP5+zHQ128UVGsGjxsNdvSOupt42Gue2+1nLVg-KYrb=exqqCw@mail.gmail.com>
2013-08-16 13:21 ` Jan Beulich
2013-08-16 14:17 ` Li Yechen
2013-08-16 14:55 ` Jan Beulich
2013-08-16 22:53 ` Dario Faggioli [this message]
2013-08-19 9:22 ` Jan Beulich
2013-08-20 14:18 ` Dario Faggioli
2013-08-16 23:30 ` Dario Faggioli
2013-08-19 9:17 ` Jan Beulich
2013-08-20 14:05 ` Dario Faggioli
2013-08-20 14:24 ` Jan Beulich
2013-08-19 11:05 ` George Dunlap
2013-08-20 14:31 ` Dario Faggioli
2013-08-19 12:58 ` David Vrabel
2013-08-19 13:26 ` George Dunlap
2013-08-20 14:20 ` David Vrabel
2013-08-20 14:55 ` Dario Faggioli
2013-08-20 15:15 ` Li Yechen
2013-08-25 21:24 ` Dario Faggioli
2013-09-26 14:15 ` Li Yechen
2013-09-26 14:15 ` Li Yechen
2013-08-23 20:53 ` Konrad Rzeszutek Wilk
2013-08-25 21:18 ` Dario Faggioli
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=1376693583.2757.18.camel@Abyss \
--to=dario.faggioli@citrix.com \
--cc=JBeulich@suse.com \
--cc=david.vrabel@citrix.com \
--cc=lccycc123@gmail.com \
--cc=xen-devel@lists.xenproject.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).