From: Daniel Stodden Subject: Re: Re: NUMA and SMP Date: Thu, 22 Mar 2007 13:28:30 +0100 Message-ID: <1174566510.30554.8.camel@lapbode42.lrr.in.tum.de> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <460272F7.8030407@ncic.ac.cn> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: tgh Cc: Xen Developers List-Id: xen-devel@lists.xenproject.org On Thu, 2007-03-22 at 20:13 +0800, tgh wrote: > Thank you for your reply >=20 >=20 >=20 > > =20 > >> in the smp with adm64 with the hardware of numa, its linux is a smp = os=20 > >> ,then there is only one node (struct pglist_data) in the os when run= ning=20 > >> or there are as many nodes as cpus in the system, does linux smp=20 > >> support two or more nodes when running? or in this case linux suppor= t=20 > >> numa feature? > >> =20 > > > > 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.=20 > > > > yes, linux has numa support. see linux/Documentation/vm/ > > =20 >=20 > linux has numa support,and in the case of integrated memory controllers= =20 > like amd64, CONFIG_NUMA should be choice and linux support numa,is it=20 > right? if CONFIG_NUMA is not choice ,then linux could not work well in=20 > the case of integrated memory controllers even for amd64,is it right?=20 > and for the paravirt xen-guest-linux do not support numa-aware now ,o= r=20 > 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 linux to a somewhat larger degree. but... config NUMA bool "Non Uniform Memory Access (NUMA) Support" depends on SMP && !X86_64_XEN ...there is no numa-support for paravirtual kernels at this point in time. see, you can't just switch it on and expect anything to improve. the vm may typically see a subset of the cpus/nodes physically available, with no reflection on their mapping to physical nodes. page migration between logical cpus is pointless if logical cpus migrate across physical ones, right? regards, daniel --=20 Daniel Stodden LRR - Lehrstuhl f=C3=BCr Rechnertechnik und Rechnerorganisation Institut f=C3=BCr Informatik der TU M=C3=BCnchen D-85748 Garc= hing http://www.lrr.in.tum.de/~stodden mailto:stodden@cs.tum.edu PGP Fingerprint: F5A4 1575 4C56 E26A 0B33 3D80 457E 82AE B0D8 735B