xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Dario Faggioli <dario.faggioli@citrix.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: xen-devel <xen-devel@lists.xensource.com>,
	"Keir (Xen.org)" <keir@xen.org>,
	Stefano Stabellini <Stefano.Stabellini@eu.citrix.com>,
	George Dunlap <George.Dunlap@eu.citrix.com>,
	"Tim (Xen.org)" <tim@xen.org>,
	Ian Jackson <Ian.Jackson@eu.citrix.com>,
	Jan Beulich <JBeulich@suse.com>
Subject: Re: RFC: Still TODO for 4.2? xl domain numa memory allocation vs xm/xend
Date: Fri, 20 Jan 2012 12:44:34 +0100	[thread overview]
Message-ID: <1327059874.2337.38.camel@Abyss> (raw)
In-Reply-To: <1327058562.17599.134.camel@zakaz.uk.xensource.com>


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

On Fri, 2012-01-20 at 11:22 +0000, Ian Campbell wrote: 
> > It seems that xend is retrieving numa info about the platform, see
> > pyxc_numainfo, then using those info to pin vcpus to pcpus, see
> > _setCPUAffinity.
> > Still it seems to me more of an hack than the right way to solve the
> > problem.
> 
> Right, so in the absence of any explicit configuration it basically
> picks a NUMA node (via some heuristic) and automatically puts the guest
> into it.
> 
Seems so. As Stefano is saying I don't think this is something that
should be done at the toolstack level, or at least not at the xl-level
of the toolstack. :-)

> It seems to me that xl's behaviour isn't wrong as such, it's just
> different.
> 
Indeed.

> I think the important thing is that xl should honour user's explicit
> requests to use a particular node, either via vcpu pinning or cpupools
> etc.
> 
And I agree again, honouring explicit user requests is key point. I
think the issue here is what should be dona, say by default, i.e., if
the user doesn't say anything about CPU/memory allocation. My idea was
to have Xen supporting a "NUMA-aware operational mode" where (and this
will actually be the first step!) it does exactly what xend is doing
right now --- that is, choosing a node and putting the new guest there,
both memory and CPU-wise. However, having this logic in the hypervisor
would allow Xen itself, for example, while investigating which node to
use for a new guest, or during a sort of periodic load balancing or
whatever, to change its mind and move a guest to a different node from
where it was put in the first place, as well as a bunch of other things.
I'm not sure the same can be done within the toolstack but I think I can
say that if it can, it would be way more complex and probably less
effective... Am I wrong?

Of course, even in such mode, if the user explicitly tells us what he
wants, e.g., by means of cpupools, pinning, etc., we should still honour
such request.

Then the question is whether or nod this mode would be the default, or
would need to be explicitly requested (boot parameter or something), but
that would become important only when we will have it up and
running... :-)

What do you think? Does this look reasonable? As the topic has been
raised, I'd very much enjoy some early feedback! :-P

Regards,
Dario

-- 
<<This happens because I choose it to happen!>> (Raistlin Majere)
-------------------------------------------------------------------
Dario Faggioli, PhD, 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: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

  parent reply	other threads:[~2012-01-20 11:44 UTC|newest]

Thread overview: 97+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-04 16:29 RFC: Still TODO for 4.2? Ian Campbell
2012-01-04 16:47 ` Konrad Rzeszutek Wilk
2012-01-04 16:51   ` Stefano Stabellini
2012-01-16 13:42     ` Ian Campbell
2012-01-04 16:55 ` Jan Beulich
2012-01-16 13:39   ` Ian Campbell
2012-01-16 14:48     ` Jan Beulich
2012-01-16 15:00       ` Stefano Stabellini
2012-01-04 17:25 ` Pasi Kärkkäinen
2012-01-04 17:36   ` George Dunlap
2012-01-04 18:20   ` Tim Deegan
2012-01-05 10:39     ` Ian Campbell
2012-01-06 15:24       ` RFC: Still TODO for 4.2? Nested Paging for Intel Nested Virt Pasi Kärkkäinen
2012-01-04 19:21   ` RFC: Still TODO for 4.2? Wei Huang
2012-01-04 19:43     ` Pasi Kärkkäinen
2012-01-04 19:57       ` Wei Huang
2012-01-05  7:27         ` Pasi Kärkkäinen
2012-01-06 15:37         ` Konrad Rzeszutek Wilk
2012-01-06 19:08           ` Wei Huang
2012-02-06 17:57           ` Pasi Kärkkäinen
2012-02-13 17:52             ` Extracting ATI/AMD Radeon VBIOS ROM Pasi Kärkkäinen
2012-01-05 13:19       ` Re : RFC: Still TODO for 4.2? David TECHER
2012-01-05 13:25         ` Ian Campbell
2012-01-05 13:41           ` Re : " David TECHER
2012-01-05 16:18             ` Ian Campbell
2012-01-16 13:28   ` Ian Campbell
2012-01-16 14:39     ` Re : " David TECHER
2012-01-04 17:39 ` Roger Pau Monné
2012-01-05 18:07   ` Driver domains and hotplug scripts, redux Ian Jackson
2012-01-06 12:01     ` Stefano Stabellini
2012-01-09 10:08     ` Roger Pau Monné
2012-01-09 12:26       ` Stefano Stabellini
2012-01-09 17:39         ` Ian Jackson
     [not found]           ` <alpine.DEB.2.00.1201101448030.3150@kaball-desktop>
     [not found]             ` <20236.23822.715733.455559@mariner.uk.xensource.com>
     [not found]               ` <alpine.DEB.2.00.1201101547540.3150@kaball-desktop>
     [not found]                 ` <20236.24780.865152.458124@mariner.uk.xensource.com>
     [not found]                   ` <alpine.DEB.2.00.1201101619460.3150@kaball-desktop>
     [not found]                     ` <20236.27158.706017.813195@mariner.uk.xensource.com>
     [not found]                       ` <alpine.DEB.2.00.1201101655390.3150@kaball-desktop>
     [not found]                         ` <20236.28931.127139.752426@mariner.uk.xensource.com>
2012-01-11 11:50                           ` Roger Pau Monné
2012-01-11 12:17                             ` Ian Campbell
2012-01-11 14:26                               ` Dave Scott
2012-01-12 16:50                                 ` Ian Jackson
2012-01-12 18:07                                   ` Dave Scott
2012-01-11 14:44                               ` Roger Pau Monné
2012-01-12 16:48                               ` Ian Jackson
2012-01-16 17:52                                 ` Roger Pau Monné
2012-01-16 17:58                                   ` Ian Jackson
2012-01-17  9:17                                     ` Ian Campbell
2012-01-17  9:30                                       ` Roger Pau Monné
2012-01-17  9:43                                         ` Ian Campbell
2012-01-17  9:40                                       ` Roger Pau Monné
2012-01-17  9:52                                         ` Ian Campbell
2012-01-17 10:00                                           ` Roger Pau Monné
2012-01-17 10:39                                             ` Ian Campbell
2012-01-23 11:40                                               ` Roger Pau Monné
2012-01-27  8:43                                                 ` Roger Pau Monné
2012-01-27 10:57                                                   ` Stefano Stabellini
2012-01-31  9:57                                                     ` Roger Pau Monné
2012-01-31 10:06                                                       ` Tim Deegan
2012-01-31 13:47                                                         ` Stefano Stabellini
2012-01-31 13:51                                                           ` Ian Campbell
2012-01-31 13:51                                                       ` Stefano Stabellini
2012-01-31 20:02                                                       ` Ian Campbell
2012-01-17  9:22                                     ` Roger Pau Monné
2012-01-11 12:50                             ` Stefano Stabellini
2012-01-05 17:49 ` RFC: Still TODO for 4.2? Ian Jackson
2012-01-06 13:37   ` Ian Campbell
2012-01-10 16:06     ` Ian Jackson
2012-01-16 11:55 ` George Dunlap
2012-01-19 21:14 ` RFC: Still TODO for 4.2? xl domain numa memory allocation vs xm/xend Pasi Kärkkäinen
2012-01-20  7:59   ` Ian Campbell
2012-01-20  8:15     ` Pasi Kärkkäinen
2012-01-20  9:01       ` Ian Campbell
2012-01-20  9:47         ` Dario Faggioli
2012-01-20 11:56           ` Ian Campbell
2012-01-23  9:59         ` Juergen Gross
2012-01-20 10:55     ` Stefano Stabellini
2012-01-20 11:22       ` Ian Campbell
2012-01-20 11:25         ` Stefano Stabellini
2012-01-20 11:44         ` Dario Faggioli [this message]
2012-01-20 11:54           ` Ian Campbell
2012-01-20 12:04             ` Dario Faggioli
2012-01-20 12:33               ` Ian Campbell
2012-01-20 13:11                 ` Ian Campbell
2012-01-20 15:06                   ` Ian Campbell
2012-01-20 16:02                     ` Dario Faggioli
2012-01-20 16:21                       ` Ian Campbell
2012-01-20 16:28                         ` Ian Campbell
2012-01-20 16:31                           ` George Dunlap
2012-01-20 16:39                             ` Ian Campbell
2012-01-20 16:43                               ` George Dunlap
2012-01-20 16:54                                 ` Ian Campbell
2012-01-20 17:32                                   ` Dario Faggioli
2012-01-23 10:19                                     ` Ian Campbell
2012-01-23 13:14                                       ` Dario Faggioli
2012-01-23 13:20                                         ` Ian Campbell
2012-01-20 16:55                                 ` Ian Campbell
2012-01-20 16:59                                   ` George Dunlap
2012-01-20 16:58                         ` Dario Faggioli
2012-01-20 17:23                           ` Ian Campbell
2012-01-20 17:28                             ` Dario Faggioli
2012-01-20 11:26       ` 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=1327059874.2337.38.camel@Abyss \
    --to=dario.faggioli@citrix.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=JBeulich@suse.com \
    --cc=Stefano.Stabellini@eu.citrix.com \
    --cc=keir@xen.org \
    --cc=tim@xen.org \
    --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 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).