From: Keir Fraser Subject: Re: [RFC][PATCH] domheap optimization for NUMA Date: Mon, 31 Mar 2008 11:47:36 +0100 Message-ID: References: <20080331104015.GM18363@edwin-srv.sh.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080331104015.GM18363@edwin-srv.sh.intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Zhai, Edwin" , ryanh@us.ibm.com Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 31/3/08 11:40, "Zhai, Edwin" wrote: > A new interface alloc_domheap_pages_on_node is introduced instead of changing > current implementation, which is invasive. > > There are still many places left for the new interface, but we can change them > in a incremental way if needed. A function called alloc_domheap_pages_on_node() should take a *node* argument not a vcpu. Perhaps have a helper domain_default_node() which returns node for d->vcpu[0] if d->vcpu[0] is non-NULL, else returns some value meaning 'any'. This will probably require some changes to page_alloc.c. That file currently likes to pass cpu ids around rather than node ids, but it would really be cleaner to pass around the latter. -- Keir