From: "Jan Beulich" Subject: Re: [PATCH v6 02/23] xen: move NUMA_NO_NODE to public memory.h as XEN_NUMA_NO_NODE Date: Tue, 03 Mar 2015 08:55:17 +0000 Message-ID: <54F58505020000780006582B@mail.emea.novell.com> References: <1424966166-2388-3-git-send-email-wei.liu2@citrix.com> <54F0AC920200007800064BFB@mail.emea.novell.com> <20150227165139.GF29195@zion.uk.xensource.com> <54F0A0DA.8020809@citrix.com> <54F40B7E02000078000C9AE2@mail.emea.novell.com> <1425310221.21151.87.camel@citrix.com> <20150302153814.GJ11855@zion.uk.xensource.com> <54F495190200007800065383@mail.emea.novell.com> <20150302160832.GM11855@zion.uk.xensource.com> <54F49D7D020000780006540C@mail.emea.novell.com> <20150302163918.GP11855@zion.uk.xensource.com> <54F4A2F80200007800065471@mail.emea.novell.com> <54F49777.3040506@citrix.com> <54F4AB4D02000078000654F0@mail.emea.novell.com> <54F49F36.10201@citrix.com> <54F4A153.4080504@citrix.com> <54F4A255.4040200@citrix.com> <1425318759.24959.49.camel@citrix.com> <54F4A9A7.6@citrix.com> <1425354156.10194.261.camel@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1425354156.10194.261.camel@gmail.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Dario Faggioli Cc: Andrew Cooper , xen-devel@lists.xen.org, Wei Liu , David Vrabel , Ian Campbell List-Id: xen-devel@lists.xenproject.org >>> On 03.03.15 at 04:42, wrote: > On Mon, 2015-03-02 at 18:19 +0000, Andrew Cooper wrote: >> In this case, a pnode of XEN_NO_NUMA_NODE seems like precisely the >> correct value to report. >> > Indeed. It tells Xen: < could not come up with any sane vnode-to-pnode mapping, please figure > that out yourself>>. > > That makes the code, IMO, simpler at any level. In fact, at Xen level, > there is a default way to deal with the situation (the striping) > already. At the toolstack level, we can only care about trying to come > up with some super-cool and super-good (for performance) configuration > and just give up, if anything like what David and Andrew said occurs. See my earlier reply - the tool stack at least giving hints to the hypervisor in such a case would likely still be better (for the final result) than leaving it entirely up to the hypervisor: "No node" really means allocate from anywhere, whereas some specific node passed in still allows the hypervisor to find second best fits when having to fall back. Jan