From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ryan Harper Subject: Re: Re: NUMA and SMP Date: Thu, 22 Mar 2007 08:02:38 -0500 Message-ID: <20070322130238.GS17518@us.ibm.com> References: <907625E08839C4409CE5768403633E0B018E1879@sefsexmb1.amd.com> <8790346913e7b2e96fdc58199e039895@xensource.com> <45FFDD32.8030607@ncic.ac.cn> <1174398691.5642.43.camel@lapbode42.lrr.in.tum.de> <46008592.5070603@ncic.ac.cn> <1174445110.4426.72.camel@lapbode42.lrr.in.tum.de> <4601D8DE.1070602@ncic.ac.cn> <1174560170.28163.67.camel@lapbode42.lrr.in.tum.de> <460272F7.8030407@ncic.ac.cn> <1174566510.30554.8.camel@lapbode42.lrr.in.tum.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1174566510.30554.8.camel@lapbode42.lrr.in.tum.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Daniel Stodden Cc: Xen Developers , tgh List-Id: xen-devel@lists.xenproject.org * Daniel Stodden [2007-03-22 07:29]: > On Thu, 2007-03-22 at 20:13 +0800, tgh wrote: > > Thank you for your reply > > > > > > > > > > > >> in the smp with adm64 with the hardware of numa, its linux is a smp os > > >> ,then there is only one node (struct pglist_data) in the os when running > > >> or there are as many nodes as cpus in the system, does linux smp > > >> support two or more nodes when running? or in this case linux support > > >> numa feature? > > >> > > > > > > the number of nodes corresponds to the number of memory areas which > > > allocators need distinguish. in the case of integrated memory > > > controllers like amd64, expect to find as many nodes as there are > > > processors. > > > > > > yes, linux has numa support. see linux/Documentation/vm/ > > > > > > > linux has numa support,and in the case of integrated memory controllers > > like amd64, CONFIG_NUMA should be choice and linux support numa,is it > > right? if CONFIG_NUMA is not choice ,then linux could not work well in > > the case of integrated memory controllers even for amd64,is it right? > > > > and for the paravirt xen-guest-linux do not support numa-aware now ,or > > does it support numa-aware if CONFIG_NUMA choiced? > > no. there is num-support in xen, as far as inspection of the memory > topology and inclusion in the memory management is concerned. so > basically, you can add the desired node number to get_free_pages(). There is NUMA support in Xen since 3.0.4 in the hypervisor, and we have the capability to ensure a guest memory is local to the processors being used. The topology of the system is not exported to the guest so CONFIG_NUMA in the guest kernel config will be of no value. -- Ryan Harper Software Engineer; Linux Technology Center IBM Corp., Austin, Tx (512) 838-9253 T/L: 678-9253 ryanh@us.ibm.com