From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: Re: [PATCH 2/4] libxc: report how much memory a domain has on each NUMA node Date: Mon, 10 Mar 2014 18:35:29 +0100 Message-ID: <1394472929.17832.31.camel@Solace> References: <20140305143357.6984.7729.stgit@Solace> <20140305143635.6984.34422.stgit@Solace> <21277.60093.406016.679465@mariner.uk.xensource.com> <1394471250.17832.11.camel@Solace> <21277.62587.257049.744094@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6317521208455584527==" Return-path: In-Reply-To: <21277.62587.257049.744094@mariner.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Jackson Cc: Ian Campbell , Andrew Cooper , Juergen Gross , xen-devel , Jan Beulich , Daniel De Graaf List-Id: xen-devel@lists.xenproject.org --===============6317521208455584527== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-XWDr+BI9QZlb0yUrI/6/" --=-XWDr+BI9QZlb0yUrI/6/ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On lun, 2014-03-10 at 17:20 +0000, Ian Jackson wrote: > Dario Faggioli writes ("Re: [Xen-devel] [PATCH 2/4] libxc: report how muc= h memory a domain has on each NUMA node"): > > I'm sorry, what discrepancies? >=20 > Discrepancies occuring due to the hypercalls being made at different > times. >=20 Right. I wasn't even thinking about this as, as Andrew said, I don't think there is anything we can do about it! However, my point above kind of was, if, at some point you issue the XEN_DOMCTL_domain_numainfo hypercall, and then sum what you get in each cell of the array, you have the total amount of memory which, *if* nothing changed, is exactly what you got from an instance of the other one, issued some time before (or later). If something changed, then yes you're screwed, but the bottom line, I think is, if you think you may need the information broken down in nodes, use XEN_DOMCTL_domain_numainfo, which gives you that and, indirectly, also the total size. Does that make sense? Dario --=20 <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) --=-XWDr+BI9QZlb0yUrI/6/ 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.0.22 (GNU/Linux) iEYEABECAAYFAlMd9+EACgkQk4XaBE3IOsSERwCgku7EPsv+X6/VLdKu5RJTYTpN PHMAnieL4EVGACJz9Ka2K96c5ArbzlBR =n+s1 -----END PGP SIGNATURE----- --=-XWDr+BI9QZlb0yUrI/6/-- --===============6317521208455584527== 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 --===============6317521208455584527==--