xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Dario Faggioli <dario.faggioli@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel <xen-devel@lists.xenproject.org>,
	Yechen Li <lccycc123@gmail.com>
Subject: Re: [PATCH v1][RFC] xen balloon driver numa support, libxl interface
Date: Mon, 12 Aug 2013 18:16:58 +0200	[thread overview]
Message-ID: <1376324218.15390.188.camel@Solace> (raw)
In-Reply-To: <5209068002000078000EB3D8@nat28.tlf.novell.com>


[-- Attachment #1.1: Type: text/plain, Size: 3257 bytes --]

On lun, 2013-08-12 at 15:00 +0100, Jan Beulich wrote:
> >>> On 12.08.13 at 15:18, Yechen Li <lccycc123@gmail.com> wrote:
> > @@ -3754,7 +3761,10 @@ retry_transaction:
> >          abort_transaction = 1;
> >          goto out;
> >      }
> > -
> > +    //lcc:
> > +    LIBXL__LOG(ctx, LIBXL__LOG_DEBUG, "target_nid = %d focus= %d", node_specify, (int) nodeexact);
> > +    libxl__xs_write(gc, t, libxl__sprintf(gc, "%s/memory/target_nid",
> > +                dompath), "%"PRId32" %"PRId32, node_specify, (int)nodeexact);
> 
> ... new Xenbus node. Without (so far) a true view into the
> host topology, even if you added a respective consumer to the
> balloon driver, how would that driver honor such a request?
>
Right. So, as I asked in another e-mail, Yechen, could you provide
(either here or when submitting an new/updated version of the patch)
some more details about the overall design, so that people wanting to
review the patch could have an insight of the big picture? :-)

Really quickly, Jan, this is meant to be effective once:
 1. we will have a way to specify and build a virtual NUMA topology for
    the guests;
 2. we will have a way for a virtual NUMA enabled guest to figure out
    what physical host NUMA node X has the pages of its virtual NUMA
    node Y.

As Yechen said, Elena is working on the PV side of 1., while Matt has
something for the HVM side of it. Once we will have both in place, we
can figure out 2., and then have Yechen's work integrate with that all.

Yes, I know, sending this patch as the first item _is_ a bit confusing,
but we thought that, since this involves new interfaces (e.g., the new
xenstore node), it could be useful to start gathering some early
feedback. :-)

Hope Yechen can explain the problem better, and make things even more
clear.

> And even if it knew about host topology, unless the virtual
> topology in the subject domain sufficiently closely resembled the
> host's, it would - afaict - still have no way of obtaining suitable
> memory from the page allocator.
> 
Not sure I get entirely what you mean... Are you saying that, if the
pages for a guest virtual NUMA node X come from multiple host nodes
(instead than from just one single host NUMA node Y), this won't work
properly?

If yes, well, I agree. In that case, we'll more or less fall back on
what we have right now (and if that is not the case in the code, well,
we should make it so), so no better, no worse, right?
However, what about the case in which we do manage in putting a guest's
virtual node onto a host's virtual node? That should work a lot better
(than now), right?

In summary, this is meant at being a performance and resource
optimization, for all the cases and setups where a specific set of
conditions can be satisfied. I think this is the case for most
performance and resource optimization, and I think this would be a nice
one to have.

Thanks for your feedback 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

  parent reply	other threads:[~2013-08-12 16:17 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-12 13:18 [PATCH v1][RFC] xen balloon driver numa support, libxl interface Yechen Li
2013-08-12 14:00 ` Jan Beulich
2013-08-12 14:18   ` Li Yechen
2013-08-12 14:31     ` Jan Beulich
2013-08-12 14:57       ` Li Yechen
2013-08-12 15:15         ` Li Yechen
2013-08-12 15:29           ` Jan Beulich
2013-08-12 15:51         ` Dario Faggioli
2013-08-13 20:56           ` Ian Campbell
2013-08-13 23:32             ` Dario Faggioli
2013-08-12 16:16   ` Dario Faggioli [this message]
2013-08-12 16:58 ` Dario Faggioli
2013-08-12 17:07 ` Dario Faggioli
2013-08-13 20:53 ` Ian Campbell

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=1376324218.15390.188.camel@Solace \
    --to=dario.faggioli@citrix.com \
    --cc=JBeulich@suse.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).