From: Andre Przywara <andre.przywara@amd.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Anil Madhavapeddy <anil@recoil.org>,
George Dunlap <George.Dunlap@eu.citrix.com>,
Andrew Cooper <Andrew.Cooper3@citrix.com>,
xen-devel <xen-devel@lists.xen.org>,
Dario Faggioli <raistlin@linux.it>,
Yang Z Zhang <yang.z.zhang@intel.com>
Subject: Re: NUMA TODO-list for xen-devel
Date: Fri, 3 Aug 2012 11:48:49 +0200 [thread overview]
Message-ID: <501B9E81.1020302@amd.com> (raw)
In-Reply-To: <501BB4C202000078000926DB@nat28.tlf.novell.com>
On 08/03/2012 11:23 AM, Jan Beulich wrote:
>>>> On 02.08.12 at 18:36, George Dunlap <George.Dunlap@eu.citrix.com> wrote:
>> On Thu, Aug 2, 2012 at 2:34 PM, Dario Faggioli <raistlin@linux.it> wrote:
>>> On Thu, 2012-08-02 at 10:43 +0100, Jan Beulich wrote:
>>>>>>> On 01.08.12 at 18:16, Dario Faggioli <raistlin@linux.it> wrote:
>>>>> - Virtual NUMA topology exposure to guests (a.k.a guest-numa). If a
>>>>> guest ends up on more than one nodes, make sure it knows it's
>>>>> running on a NUMA platform (smaller than the actual host, but
>>>>> still NUMA). This interacts with some of the above points:
>>>>
>>>> The question is whether this is really useful beyond the (I would
>>>> suppose) relatively small set of cases where migration isn't
>>>> needed.
>>>>
>>> Mmm... Not sure I'm getting what you're saying here, sorry. Are you
>>> suggesting that exposing a virtual topology is not a good idea as it
>>> poses constraints/prevents live migration?
Honestly, what would be the problems with migration? NUMA awareness is
actually a software optimization, so we will not really break something
if the advertised topology isn't the real one. This is especially true
if we lower the number of NUMA nodes. Say the guest starts with two
nodes and then gets migrated to a machine where it can happily live in
one node. There would be some extra effort by the guest OS to obey the
virtual NUMA topology, but if there isn't actually a NUMA penalty
anymore this shouldn't really hurt, right?
Even if we would need to go to a machine where we have more nodes for a
certain guest than before, this is actually what we have today: guest
NUMA unawareness. I am not sure if this is really a migration
showstopper, and certainly not a NUMA guest showstopper.
But we could make it a config file option, so we leave this decision to
the admin. I have talked to people with huge guests, they keep asking me
about this feature.
>>>
>>> If yes, well, I mostly agree that this is an huge issue, and that's why
>>> I think wee need some bright idea on how to deal with it. I mean, it's
>>> easy to make it optional and let it automatically disable migration,
>>> giving users the choice what they prefer, but I think this is more
>>> dodging the problem than dealing with it! :-P
>>>
>>>>> * consider this during automatic placement for
>>>>> resuming/migrating domains (if they have a virtual topology,
>>>>> better not to change it);
>>>>> * consider this during memory migration (it can change the
>>>>> actual topology, should we update it on-line or disable memory
>>>>> migration?)
>>
>> I think we could use cpu hot-plug to change the "virtual topology" of
>> VMs, couldn't we? We could probably even do that on a running guest
>> if we really needed to.
>
> Hmm, not sure - using hotplug behind the back of the guest might
> be possible, but you'd first need to hot-unplug the vCPU. That's
> something that I don't think you can do on HVM guests (and for
> PV guests, guest visible NUMA support makes even less sense
> than for HVM ones).
I don't think that hotplug would really work. I have checked this some
times ago, at least the Linux NUMA code cannot be really fooled by this.
The SRAT table is firmware defined and static by nature, so there is no
code in Linux to change the NUMA topology at runtime. This is especially
true for the memory layout.
But as said above, I don't really buy this as an argument against guest
NUMA. At least provide it as an option to people who know what they do.
Regards,
Andre.
--
Andre Przywara
AMD-OSRC (Dresden)
Tel: x29712
next prev parent reply other threads:[~2012-08-03 9:48 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-01 16:16 NUMA TODO-list for xen-devel Dario Faggioli
2012-08-01 16:24 ` Dario Faggioli
2012-08-01 16:30 ` Andrew Cooper
2012-08-01 16:47 ` Dario Faggioli
2012-08-01 16:53 ` Andrew Cooper
2012-08-02 9:40 ` Jan Beulich
2012-08-02 13:21 ` Dario Faggioli
2012-08-01 16:32 ` Anil Madhavapeddy
2012-08-01 16:58 ` Dario Faggioli
2012-08-02 0:04 ` Malte Schwarzkopf
2012-08-07 23:53 ` Dario Faggioli
2012-08-02 1:04 ` Zhang, Yang Z
2012-08-07 22:56 ` Dario Faggioli
2012-08-02 9:43 ` Jan Beulich
2012-08-02 13:34 ` Dario Faggioli
2012-08-02 14:07 ` Jan Beulich
2012-08-02 16:36 ` George Dunlap
2012-08-03 9:23 ` Jan Beulich
2012-08-03 9:48 ` Andre Przywara [this message]
2012-08-03 10:03 ` Jan Beulich
2012-08-03 22:40 ` Dan Magenheimer
2012-08-03 11:00 ` George Dunlap
2012-08-03 22:34 ` Dan Magenheimer
2012-08-06 7:15 ` Jan Beulich
2012-08-06 16:28 ` Dan Magenheimer
2012-08-03 10:02 ` Andre Przywara
2012-08-03 10:40 ` Jan Beulich
2012-08-03 11:26 ` Andre Przywara
2012-08-03 11:38 ` Jan Beulich
2012-08-03 13:14 ` Dario Faggioli
2012-08-03 13:52 ` Jan Beulich
2012-08-03 22:42 ` Dan Magenheimer
2012-08-08 7:07 ` Dario Faggioli
2012-08-08 7:43 ` Dario Faggioli
2012-08-03 22:22 ` Dan Magenheimer
2012-08-07 23:49 ` 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=501B9E81.1020302@amd.com \
--to=andre.przywara@amd.com \
--cc=Andrew.Cooper3@citrix.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=anil@recoil.org \
--cc=raistlin@linux.it \
--cc=xen-devel@lists.xen.org \
--cc=yang.z.zhang@intel.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).