From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: Re: VM Migration on a NUMA server? Date: Mon, 3 Aug 2015 14:48:22 +0200 Message-ID: <1438606102.16912.187.camel@citrix.com> References: <20150731121019.GQ26074@zion.uk.xensource.com> <1438347051.16912.130.camel@citrix.com> <1438596641.16912.154.camel@citrix.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4621399017373085858==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Kun Cheng Cc: "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org --===============4621399017373085858== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-mjPCykwPZDw4Ya8HbzcX" --=-mjPCykwPZDw4Ya8HbzcX Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 2015-08-03 at 12:23 +0000, Kun Cheng wrote: > On Mon, Aug 3, 2015 at 6:10 PM Dario Faggioli > wrote: >=20 > 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.=20 > 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.=20 > 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 --=20 <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) --=-mjPCykwPZDw4Ya8HbzcX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEABECAAYFAlW/YxcACgkQk4XaBE3IOsTYTACghtkKlfnb13krRbeOmmVYfUTP 6MwAn3dY8/l5LOBhtD5qdFDd24ON4ZCp =dMe6 -----END PGP SIGNATURE----- --=-mjPCykwPZDw4Ya8HbzcX-- --===============4621399017373085858== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============4621399017373085858==--