Andre Przywara
2008-Jul-04 08:01 UTC
[Xen-devel] [PATCH 3/4] hvm: NUMA guest: allocate memory and pin cpus according to guestnodes number
This patch introduces a new config file option called guestnodes. Depending on the specified number (which can be 0 (the default) to return to current behavior) a set of suitable nodes (which have enough memory and are the least used ones) is selected and memory allocation is split evenly across these host nodes. CPU affinity is set accordingly. Signed-off-by: Andre Przywara <andre.przywara@amd.com> Regards, Andre -- Andre Przywara AMD-Operating System Research Center (OSRC), Dresden, Germany Tel: +49 351 277-84917 ----to satisfy European Law for business letters: AMD Saxony Limited Liability Company & Co. KG, Wilschdorfer Landstr. 101, 01109 Dresden, Germany Register Court Dresden: HRA 4896, General Partner authorized to represent: AMD Saxony LLC (Wilmington, Delaware, US) General Manager of AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Masaki Kanno
2008-Jul-04 08:45 UTC
Re: [Xen-devel] [PATCH 3/4] hvm: NUMA guest: allocate memory and pin cpus according to guestnodes number
Hi Andre, Your patch includes tab-indent in the following lines. XendDomainInfo.py + if numnodes == 0: + return nodeload.index( min(nodeload) ) <-- here + if self.image.guestnodes > 1: + needmem = needmem / self.image.guestnodes <-- here Best regards, Kan Fri, 4 Jul 2008 10:01:06 +0200, Andre Przywara wrote:>This patch introduces a new config file option called guestnodes. >Depending on the specified number (which can be 0 (the default) to >return to current behavior) a set of suitable nodes (which have enough >memory and are the least used ones) is selected and memory allocation is >split evenly across these host nodes. CPU affinity is set accordingly. > >Signed-off-by: Andre Przywara <andre.przywara@amd.com> > >Regards, >Andre > >-- >Andre Przywara >AMD-Operating System Research Center (OSRC), Dresden, Germany >Tel: +49 351 277-84917 >----to satisfy European Law for business letters: >AMD Saxony Limited Liability Company & Co. KG, >Wilschdorfer Landstr. 101, 01109 Dresden, Germany >Register Court Dresden: HRA 4896, General Partner authorized >to represent: AMD Saxony LLC (Wilmington, Delaware, US) >General Manager of AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy > >-------------------------------text/plain------------------------------- >_______________________________________________ >Xen-devel mailing list >Xen-devel@lists.xensource.com >http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Andre Przywara
2008-Jul-04 09:55 UTC
Re: [Xen-devel] [PATCH 3/4] hvm: NUMA guest: allocate memory and pin cpus according to guestnodes number
Masaki,> Your patch includes tab-indent in the following lines. > > XendDomainInfo.py > + if numnodes == 0: > + return nodeload.index( min(nodeload) ) <-- here > > + if self.image.guestnodes > 1: > + needmem = needmem / self.image.guestnodes <-- hereThanks for the hint, fixed (together with two other lines) in the attached patch. Signed-off-by: Andre Przywara <andre.przywara@amd.com> Regards, Andre.> Fri, 4 Jul 2008 10:01:06 +0200, Andre Przywara wrote: > >> This patch introduces a new config file option called guestnodes. >> Depending on the specified number (which can be 0 (the default) to >> return to current behavior) a set of suitable nodes (which have enough >> memory and are the least used ones) is selected and memory allocation is >> split evenly across these host nodes. CPU affinity is set accordingly. >> >> Signed-off-by: Andre Przywara <andre.przywara@amd.com>-- Andre Przywara AMD-Operating System Research Center (OSRC), Dresden, Germany Tel: +49 351 277-84917 ----to satisfy European Law for business letters: AMD Saxony Limited Liability Company & Co. KG, Wilschdorfer Landstr. 101, 01109 Dresden, Germany Register Court Dresden: HRA 4896, General Partner authorized to represent: AMD Saxony LLC (Wilmington, Delaware, US) General Manager of AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel