From: Dario Faggioli <dario.faggioli@citrix.com>
To: Kun Cheng <chengkunck@gmail.com>
Cc: "xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Subject: Re: VM Migration on a NUMA server?
Date: Mon, 3 Aug 2015 14:48:22 +0200 [thread overview]
Message-ID: <1438606102.16912.187.camel@citrix.com> (raw)
In-Reply-To: <CAO3v1VTpC+8K73_Whgr-pnME6uJ8yF9U4-bTwM0PHP7obBmVfA@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 2496 bytes --]
On Mon, 2015-08-03 at 12:23 +0000, Kun Cheng wrote:
> On Mon, Aug 3, 2015 at 6:10 PM Dario Faggioli
> <dario.faggioli@citrix.com> wrote:
>
> On Sat, 2015-08-01 at 06:21 +0000, Kun Cheng wrote:
> > I've looked into those settings and vcpu affinities on Xen
> wiki page.
> > However what I'm trying to argue about is memory should be
> migrated
> > when vcpus are moved to another node.
> >
> I still struggle a bit to understand what you mean. It's
> exactly what I
> said (or, at least, what I tried to do) that memory is *not*
> moved right
> now.
> OK I get it, memory is not moved right now.
>
Right.
> What I said was discussing the necessity of doing that. As according
> to the locality theory (e.g. programs always prone to access the data
> that is recently accessed) and potential memory access delay (memory
> pages are on Node A but vcpus are moved to Node B), then I suppose
> moving memory pages along with the vcpus are necessary.
>
Ok, then, yes, being able to move memory would be a good thing in my
opinion too.
Of course, given the particular workload we are talking about (virtual
machines), it remains to be seen whether and how much benefit we get
from that, which is really hard to tell without being able to
try/benchmark.
For instance, locality principles applies to single programs, but,
inside a VM, there are multiple programs running, which may limit the
reliability of such principles (or require them to be adapted
accordingly).
> If it can be achieved we should be able to improve the VM execution
> performance, I suppose.(But probably it will introduce overhead as
> moving memory is really really annoying...) .
>
Exactly. So, yes, nce we are able to do it, we'll need to think to what
pages we want to move, and at how much and how often we want to move
them... not just start moving pages around like mad, just because a vcpu
happen to have been scheduled on a "foreign node" for in instance!
> And If my words still confuses you, please feel free to tell me which
> part misleads you :)
>
No, I think it's clear now.
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: 181 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:[~2015-08-03 12:48 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-31 2:32 VM Migration on a NUMA server? Kun Cheng
2015-07-31 11:41 ` Kun Cheng
2015-07-31 12:10 ` Wei Liu
2015-07-31 12:50 ` Dario Faggioli
2015-08-01 6:21 ` Kun Cheng
2015-08-03 10:10 ` Dario Faggioli
2015-08-03 12:23 ` Kun Cheng
2015-08-03 12:48 ` Dario Faggioli [this message]
2015-07-31 12:46 ` Dario Faggioli
2015-07-31 15:51 ` Kun Cheng
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=1438606102.16912.187.camel@citrix.com \
--to=dario.faggioli@citrix.com \
--cc=chengkunck@gmail.com \
--cc=xen-devel@lists.xen.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 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.